Documentation
¶
Index ¶
- Constants
- Variables
- func ACLBodyDiffFunc(olds, news string, d *schema.ResourceData) (result bool)
- func DataSourceTencentCloudCosBatchs() *schema.Resource
- func DataSourceTencentCloudCosBucketInventorys() *schema.Resource
- func DataSourceTencentCloudCosBucketMultipartUploads() *schema.Resource
- func DataSourceTencentCloudCosBucketObject() *schema.Resource
- func DataSourceTencentCloudCosBuckets() *schema.Resource
- func GetBucketPublicACL(acl *cos.BucketGetACLResult) string
- func ResourceTencentCloudCosBatch() *schema.Resource
- func ResourceTencentCloudCosBucket() *schema.Resource
- func ResourceTencentCloudCosBucketDomainCertificateAttachment() *schema.Resource
- func ResourceTencentCloudCosBucketGenerateInventoryImmediatelyOperation() *schema.Resource
- func ResourceTencentCloudCosBucketInventory() *schema.Resource
- func ResourceTencentCloudCosBucketObject() *schema.Resource
- func ResourceTencentCloudCosBucketPolicy() *schema.Resource
- func ResourceTencentCloudCosBucketReferer() *schema.Resource
- func ResourceTencentCloudCosBucketVersion() *schema.Resource
- func ResourceTencentCloudCosObjectAbortMultipartUploadOperation() *schema.Resource
- func ResourceTencentCloudCosObjectCopyOperation() *schema.Resource
- func ResourceTencentCloudCosObjectDownloadOperation() *schema.Resource
- func ResourceTencentCloudCosObjectRestoreOperation() *schema.Resource
- type CamService
- func (me *CamService) AddGroupPolicyAttachment(ctx context.Context, groupId string, policyId string) error
- func (me *CamService) AddUserPolicyAttachment(ctx context.Context, userId string, policyId string) error
- func (me *CamService) DeleteCamAccessKeyById(ctx context.Context, uin, accessKeyId string) (errRet error)
- func (me *CamService) DeleteCamPolicyVersionById(ctx context.Context, policyId uint64, versionId uint64) (errRet error)
- func (me *CamService) DeleteCamRolePermissionBoundaryAttachmentById(ctx context.Context, roleId string, roleName string) (errRet error)
- func (me *CamService) DeleteCamServiceLinkedRoleById(ctx context.Context, roleId string) (deletionTaskId string, errRet error)
- func (me *CamService) DeleteCamTagRoleById(ctx context.Context, roleName, roleId string, keys []*string) (errRet error)
- func (me *CamService) DeleteCamUserPermissionBoundaryById(ctx context.Context, targetUin string) (errRet error)
- func (me *CamService) DeleteCamUserSamlConfigById(ctx context.Context) (errRet error)
- func (me *CamService) DeleteGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) error
- func (me *CamService) DeleteRoleById(ctx context.Context, roleId string) error
- func (me *CamService) DeleteRoleByName(ctx context.Context, roleName string) error
- func (me *CamService) DeleteRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) error
- func (me *CamService) DeleteRolePolicyAttachmentByName(ctx context.Context, roleName, policyName string) error
- func (me *CamService) DeleteUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) error
- func (me *CamService) DescribeCamAccessKeyById(ctx context.Context, targetUin uint64, accessKey string) (AccessKey *cam.AccessKey, errRet error)
- func (me *CamService) DescribeCamAccountSummaryByFilter(ctx context.Context) (AccountSummary *cam.GetAccountSummaryResponseParams, errRet error)
- func (me *CamService) DescribeCamGroupUserAccountByFilter(ctx context.Context, param map[string]interface{}) (GroupUserAccount []*cam.GroupInfo, errRet error)
- func (me *CamService) DescribeCamListAttachedUserPolicyByFilter(ctx context.Context, param map[string]interface{}) (ListAttachedUserPolicy []*cam.AttachedUserPolicy, errRet error)
- func (me *CamService) DescribeCamListEntitiesForPolicyByFilter(ctx context.Context, param map[string]interface{}) (ListEntitiesForPolicy []*cam.AttachEntityOfPolicy, errRet error)
- func (me *CamService) DescribeCamMfaFlagById(ctx context.Context, id uint64) (loginFlag *cam.LoginActionFlag, actionFlag *cam.LoginActionFlag, errRet error)
- func (me *CamService) DescribeCamPolicyGrantingServiceAccessByFilter(ctx context.Context, param map[string]interface{}) (PolicyGrantingServiceAccess []*cam.ListGrantServiceAccessNode, errRet error)
- func (me *CamService) DescribeCamPolicyVersionById(ctx context.Context, policyId uint64, versionId uint64) (policyVersion *cam.PolicyVersionDetail, errRet error)
- func (me *CamService) DescribeCamRolePermissionBoundaryAttachmentById(ctx context.Context, roleId string, policyId string) (RolePermissionBoundaryAttachment *cam.GetRolePermissionBoundaryResponseParams, ...)
- func (me *CamService) DescribeCamSecretLastUsedTimeByFilter(ctx context.Context, param map[string]interface{}) (SecretLastUsedTime []*cam.SecretIdLastUsed, errRet error)
- func (me *CamService) DescribeCamServiceLinkedRole(ctx context.Context, roleId string) (serviceLinkedRole *cam.RoleInfo, errRet error)
- func (me *CamService) DescribeCamServiceLinkedRoleDeleteStatus(ctx context.Context, deletionTaskId string) (response *cam.GetServiceLinkedRoleDeletionStatusResponse, errRet error)
- func (me *CamService) DescribeCamSetPolicyVersionById(ctx context.Context, policyId, versionId string) (SetPolicyVersion *cam.PolicyVersionItem, errRet error)
- func (me *CamService) DescribeCamTagRoleById(ctx context.Context, roleName, roleId string) (TagRole *cam.RoleInfo, errRet error)
- func (me *CamService) DescribeCamUserPermissionBoundaryById(ctx context.Context, targetUin string) (UserPermissionBoundary *cam.GetUserPermissionBoundaryResponse, errRet error)
- func (me *CamService) DescribeCamUserSamlConfigById(ctx context.Context) (userSamlConfig *cam.DescribeUserSAMLConfigResponse, errRet error)
- func (me *CamService) DescribeGroupById(ctx context.Context, groupId string) (camInstance *cam.GetGroupResponse, errRet error)
- func (me *CamService) DescribeGroupMembershipById(ctx context.Context, groupId string) (members []*string, errRet error)
- func (me *CamService) DescribeGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)
- func (me *CamService) DescribeGroupPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)
- func (me *CamService) DescribeGroupsByFilter(ctx context.Context, params map[string]interface{}) (groups []*cam.GroupInfo, errRet error)
- func (me *CamService) DescribePoliciesByFilter(ctx context.Context, params map[string]interface{}) (policies []*cam.StrategyInfo, errRet error)
- func (me *CamService) DescribePolicyById(ctx context.Context, policyId string) (result *cam.GetPolicyResponse, errRet error)
- func (me *CamService) DescribeRoleById(ctx context.Context, roleId string) (camInstance *cam.RoleInfo, errRet error)
- func (me *CamService) DescribeRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) (policyOfRole *cam.AttachedPolicyOfRole, errRet error)
- func (me *CamService) DescribeRolePolicyAttachmentByName(ctx context.Context, roleName string, params map[string]interface{}) (policyOfRole *cam.AttachedPolicyOfRole, errRet error)
- func (me *CamService) DescribeRolePolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyOfRoles []*cam.AttachedPolicyOfRole, errRet error)
- func (me *CamService) DescribeRolesByFilter(ctx context.Context, params map[string]interface{}) (roles []*cam.RoleInfo, errRet error)
- func (me *CamService) DescribeSAMLProviderById(ctx context.Context, providerName string) (result *cam.GetSAMLProviderResponse, errRet error)
- func (me *CamService) DescribeSAMLProvidersByFilter(ctx context.Context, params map[string]interface{}) (providers []*cam.SAMLProviderInfo, errRet error)
- func (me *CamService) DescribeUserById(ctx context.Context, userId string) (response *cam.GetUserResponse, errRet error)
- func (me *CamService) DescribeUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)
- func (me *CamService) DescribeUserPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)
- func (me *CamService) DescribeUsersByFilter(ctx context.Context, params map[string]interface{}) (result []*cam.SubAccountInfo, errRet error)
- func (me *CamService) PolicyDocumentForceCheck(document string) error
- type CosBucketDomainCertItem
- type CosService
- func (me *CosService) BucketGetIntelligentTiering(ctx context.Context, bucket string) (result *cos.BucketGetIntelligentTieringResult, errRet error)
- func (me *CosService) BucketPutIntelligentTiering(ctx context.Context, bucket string, ...) (errRet error)
- func (me *CosService) DeleteBucket(ctx context.Context, bucket string, forced bool, versioned bool) (errRet error)
- func (me *CosService) DeleteBucketOriginDomain(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) DeleteBucketPolicy(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) DeleteBucketPullOrigin(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) DeleteBucketReplication(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) DeleteCosBucketDomainCertificate(ctx context.Context, certId string) (errRet error)
- func (me *CosService) DeleteObject(ctx context.Context, bucket, key string) (errRet error)
- func (me *CosService) DescribeCosBucketDomainCertificate(ctx context.Context, certId string) (result *cos.BucketGetDomainCertificateResult, bucket string, errRet error)
- func (me *CosService) DescribeCosBucketRefererById(ctx context.Context, bucket string) (*cos.BucketGetRefererResult, error)
- func (me *CosService) DescribeCosBucketVersionById(ctx context.Context, bucket string) (*cos.BucketGetVersionResult, error)
- func (me *CosService) DescribePolicyByBucket(ctx context.Context, bucket string) (bucketPolicy string, errRet error)
- func (me *CosService) ForceCleanObject(ctx context.Context, bucket string, versioned bool) error
- func (me *CosService) GetBucketACL(ctx context.Context, bucket string) (result *cos.BucketGetACLResult, errRet error)
- func (me *CosService) GetBucketAccleration(ctx context.Context, bucket string) (accelerationEnable bool, errRet error)
- func (me *CosService) GetBucketCors(ctx context.Context, bucket string) (corsRules []map[string]interface{}, errRet error)
- func (me *CosService) GetBucketEncryption(ctx context.Context, bucket string) (encryption string, errRet error)
- func (me *CosService) GetBucketLifecycle(ctx context.Context, bucket string) (lifecycleRules []map[string]interface{}, errRet error)
- func (me *CosService) GetBucketLogStatus(ctx context.Context, bucket string) (logEnable bool, logTargetBucket string, logPrefix string, errRet error)
- func (me *CosService) GetBucketOriginDomain(ctx context.Context, bucket string) (result []map[string]interface{}, errRet error)
- func (me *CosService) GetBucketPullOrigin(ctx context.Context, bucket string) (result []map[string]interface{}, errRet error)
- func (me *CosService) GetBucketReplication(ctx context.Context, bucket string) (result *cos.GetBucketReplicationResult, errRet error)
- func (me *CosService) GetBucketTags(ctx context.Context, bucket string) (map[string]string, error)
- func (me *CosService) GetBucketVersioning(ctx context.Context, bucket string) (versioningEnable bool, errRet error)
- func (me *CosService) GetBucketWebsite(ctx context.Context, bucket string) (websites []map[string]interface{}, errRet error)
- func (me *CosService) GetDataSourceBucketLifecycle(ctx context.Context, bucket string) (lifecycleRules []map[string]interface{}, errRet error)
- func (me *CosService) GetObjectTags(ctx context.Context, bucket string, key string) (map[string]string, error)
- func (me *CosService) HeadBucket(ctx context.Context, bucket string) (errRet error)
- func (me *CosService) HeadObject(ctx context.Context, bucket, key string) (info *s3.HeadObjectOutput, errRet error)
- func (me *CosService) ListBuckets(ctx context.Context) (buckets []*s3.Bucket, errRet error)
- func (me *CosService) ListObjects(ctx context.Context, bucket string) (objects []*s3.Object, errRet error)
- func (me *CosService) PutBucket(ctx context.Context, bucket, acl string) (errRet error)
- func (me *CosService) PutBucketOriginDomain(ctx context.Context, bucket string, rules []cos.BucketDomainRule) (errRet error)
- func (me *CosService) PutBucketPolicy(ctx context.Context, bucket, policy string) (errRet error)
- func (me *CosService) PutBucketPullOrigin(ctx context.Context, bucket string, rules []cos.BucketOriginRule) (errRet error)
- func (me *CosService) PutBucketReplication(ctx context.Context, bucket string, role string, ...) (errRet error)
- func (me *CosService) PutObjectAcl(ctx context.Context, bucket, key, acl string) (errRet error)
- func (me *CosService) SetBucketTags(ctx context.Context, bucket string, tags map[string]string) error
- func (me *CosService) SetObjectTags(ctx context.Context, bucket string, key string, tags map[string]string) error
- func (me *CosService) TencentCosBucketGetLocation(ctx context.Context, bucket string, opt *cos.BucketPutOptions) (location string, errRet error)
- func (me *CosService) TencentCosPutBucket(ctx context.Context, bucket string, opt *cos.BucketPutOptions) (errRet error)
- func (me *CosService) TencentCosPutBucketACLBody(ctx context.Context, bucket string, reqBody string, header string) (errRet error)
- func (me *CosService) TencentcloudHeadBucket(ctx context.Context, bucket string) (code int, header http.Header, errRet error)
- type Document
- type Principal
- type Statement
Constants ¶
View Source
const ( CAM_POLICY_CREATE_STRATEGY_CUSTOM = "User" CAM_POLICY_CREATE_STRATEGY_PRESET = "QCS" CAM_POLICY_CREATE_STRATEGY_NULL = "" )
View Source
const ( COS_ACL_GRANTEE_TYPE_USER = "CanonicalUser" COS_ACL_GRANTEE_TYPE_ANONYMOUS = "Group" )
View Source
const ( CERT_ENABLED = "Enabled" CERT_DISABLED = "Disabled" )
View Source
const PAGE_ITEM = 200
View Source
const PUBLIC_GRANTEE = "http://cam.qcloud.com/groups/global/AllUsers"
Variables ¶
View Source
var CAM_POLICY_CREATE_STRATEGY = []string{ CAM_POLICY_CREATE_STRATEGY_CUSTOM, CAM_POLICY_CREATE_STRATEGY_PRESET, CAM_POLICY_CREATE_STRATEGY_NULL, }
View Source
var COSACLGranteeTypeSeq = []string{ COS_ACL_GRANTEE_TYPE_USER, COS_ACL_GRANTEE_TYPE_ANONYMOUS, }
View Source
var COSACLPermissionSeq = []string{
"READ",
"WRITE",
"FULL_CONTROL",
"WRITE_ACP",
"READ_ACP",
}
Functions ¶
func ACLBodyDiffFunc ¶
func ACLBodyDiffFunc(olds, news string, d *schema.ResourceData) (result bool)
func GetBucketPublicACL ¶
func GetBucketPublicACL(acl *cos.BucketGetACLResult) string
Types ¶
type CamService ¶
type CamService struct {
// contains filtered or unexported fields
}
func (*CamService) AddGroupPolicyAttachment ¶
func (*CamService) AddUserPolicyAttachment ¶
func (*CamService) DeleteCamAccessKeyById ¶
func (me *CamService) DeleteCamAccessKeyById(ctx context.Context, uin, accessKeyId string) (errRet error)
func (*CamService) DeleteCamPolicyVersionById ¶
func (*CamService) DeleteCamRolePermissionBoundaryAttachmentById ¶
func (*CamService) DeleteCamServiceLinkedRoleById ¶
func (*CamService) DeleteCamTagRoleById ¶
func (*CamService) DeleteCamUserPermissionBoundaryById ¶
func (me *CamService) DeleteCamUserPermissionBoundaryById(ctx context.Context, targetUin string) (errRet error)
func (*CamService) DeleteCamUserSamlConfigById ¶
func (me *CamService) DeleteCamUserSamlConfigById(ctx context.Context) (errRet error)
func (*CamService) DeleteGroupPolicyAttachmentById ¶
func (me *CamService) DeleteGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) error
func (*CamService) DeleteRoleById ¶
func (me *CamService) DeleteRoleById(ctx context.Context, roleId string) error
func (*CamService) DeleteRoleByName ¶
func (me *CamService) DeleteRoleByName(ctx context.Context, roleName string) error
func (*CamService) DeleteRolePolicyAttachmentById ¶
func (me *CamService) DeleteRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) error
func (*CamService) DeleteRolePolicyAttachmentByName ¶
func (me *CamService) DeleteRolePolicyAttachmentByName(ctx context.Context, roleName, policyName string) error
func (*CamService) DeleteUserPolicyAttachmentById ¶
func (me *CamService) DeleteUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) error
func (*CamService) DescribeCamAccessKeyById ¶
func (*CamService) DescribeCamAccountSummaryByFilter ¶
func (me *CamService) DescribeCamAccountSummaryByFilter(ctx context.Context) (AccountSummary *cam.GetAccountSummaryResponseParams, errRet error)
func (*CamService) DescribeCamGroupUserAccountByFilter ¶
func (*CamService) DescribeCamListAttachedUserPolicyByFilter ¶
func (me *CamService) DescribeCamListAttachedUserPolicyByFilter(ctx context.Context, param map[string]interface{}) (ListAttachedUserPolicy []*cam.AttachedUserPolicy, errRet error)
func (*CamService) DescribeCamListEntitiesForPolicyByFilter ¶
func (me *CamService) DescribeCamListEntitiesForPolicyByFilter(ctx context.Context, param map[string]interface{}) (ListEntitiesForPolicy []*cam.AttachEntityOfPolicy, errRet error)
func (*CamService) DescribeCamMfaFlagById ¶
func (me *CamService) DescribeCamMfaFlagById(ctx context.Context, id uint64) (loginFlag *cam.LoginActionFlag, actionFlag *cam.LoginActionFlag, errRet error)
func (*CamService) DescribeCamPolicyGrantingServiceAccessByFilter ¶
func (me *CamService) DescribeCamPolicyGrantingServiceAccessByFilter(ctx context.Context, param map[string]interface{}) (PolicyGrantingServiceAccess []*cam.ListGrantServiceAccessNode, errRet error)
func (*CamService) DescribeCamPolicyVersionById ¶
func (me *CamService) DescribeCamPolicyVersionById(ctx context.Context, policyId uint64, versionId uint64) (policyVersion *cam.PolicyVersionDetail, errRet error)
func (*CamService) DescribeCamRolePermissionBoundaryAttachmentById ¶
func (me *CamService) DescribeCamRolePermissionBoundaryAttachmentById(ctx context.Context, roleId string, policyId string) (RolePermissionBoundaryAttachment *cam.GetRolePermissionBoundaryResponseParams, errRet error)
func (*CamService) DescribeCamSecretLastUsedTimeByFilter ¶
func (me *CamService) DescribeCamSecretLastUsedTimeByFilter(ctx context.Context, param map[string]interface{}) (SecretLastUsedTime []*cam.SecretIdLastUsed, errRet error)
func (*CamService) DescribeCamServiceLinkedRole ¶
func (*CamService) DescribeCamServiceLinkedRoleDeleteStatus ¶
func (me *CamService) DescribeCamServiceLinkedRoleDeleteStatus(ctx context.Context, deletionTaskId string) (response *cam.GetServiceLinkedRoleDeletionStatusResponse, errRet error)
func (*CamService) DescribeCamSetPolicyVersionById ¶
func (me *CamService) DescribeCamSetPolicyVersionById(ctx context.Context, policyId, versionId string) (SetPolicyVersion *cam.PolicyVersionItem, errRet error)
func (*CamService) DescribeCamTagRoleById ¶
func (*CamService) DescribeCamUserPermissionBoundaryById ¶
func (me *CamService) DescribeCamUserPermissionBoundaryById(ctx context.Context, targetUin string) (UserPermissionBoundary *cam.GetUserPermissionBoundaryResponse, errRet error)
func (*CamService) DescribeCamUserSamlConfigById ¶
func (me *CamService) DescribeCamUserSamlConfigById(ctx context.Context) (userSamlConfig *cam.DescribeUserSAMLConfigResponse, errRet error)
func (*CamService) DescribeGroupById ¶
func (me *CamService) DescribeGroupById(ctx context.Context, groupId string) (camInstance *cam.GetGroupResponse, errRet error)
func (*CamService) DescribeGroupMembershipById ¶
func (*CamService) DescribeGroupPolicyAttachmentById ¶
func (me *CamService) DescribeGroupPolicyAttachmentById(ctx context.Context, groupPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)
func (*CamService) DescribeGroupPolicyAttachmentsByFilter ¶
func (me *CamService) DescribeGroupPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)
func (*CamService) DescribeGroupsByFilter ¶
func (*CamService) DescribePoliciesByFilter ¶
func (me *CamService) DescribePoliciesByFilter(ctx context.Context, params map[string]interface{}) (policies []*cam.StrategyInfo, errRet error)
func (*CamService) DescribePolicyById ¶
func (me *CamService) DescribePolicyById(ctx context.Context, policyId string) (result *cam.GetPolicyResponse, errRet error)
func (*CamService) DescribeRoleById ¶
func (*CamService) DescribeRolePolicyAttachmentById ¶
func (me *CamService) DescribeRolePolicyAttachmentById(ctx context.Context, rolePolicyAttachmentId string) (policyOfRole *cam.AttachedPolicyOfRole, errRet error)
func (*CamService) DescribeRolePolicyAttachmentByName ¶
func (me *CamService) DescribeRolePolicyAttachmentByName(ctx context.Context, roleName string, params map[string]interface{}) (policyOfRole *cam.AttachedPolicyOfRole, errRet error)
func (*CamService) DescribeRolePolicyAttachmentsByFilter ¶
func (me *CamService) DescribeRolePolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyOfRoles []*cam.AttachedPolicyOfRole, errRet error)
func (*CamService) DescribeRolesByFilter ¶
func (*CamService) DescribeSAMLProviderById ¶
func (me *CamService) DescribeSAMLProviderById(ctx context.Context, providerName string) (result *cam.GetSAMLProviderResponse, errRet error)
func (*CamService) DescribeSAMLProvidersByFilter ¶
func (me *CamService) DescribeSAMLProvidersByFilter(ctx context.Context, params map[string]interface{}) (providers []*cam.SAMLProviderInfo, errRet error)
func (*CamService) DescribeUserById ¶
func (me *CamService) DescribeUserById(ctx context.Context, userId string) (response *cam.GetUserResponse, errRet error)
func (*CamService) DescribeUserPolicyAttachmentById ¶
func (me *CamService) DescribeUserPolicyAttachmentById(ctx context.Context, userPolicyAttachmentId string) (policyResults *cam.AttachPolicyInfo, errRet error)
func (*CamService) DescribeUserPolicyAttachmentsByFilter ¶
func (me *CamService) DescribeUserPolicyAttachmentsByFilter(ctx context.Context, params map[string]interface{}) (policyResults []*cam.AttachPolicyInfo, errRet error)
func (*CamService) DescribeUsersByFilter ¶
func (me *CamService) DescribeUsersByFilter(ctx context.Context, params map[string]interface{}) (result []*cam.SubAccountInfo, errRet error)
func (*CamService) PolicyDocumentForceCheck ¶
func (me *CamService) PolicyDocumentForceCheck(document string) error
type CosBucketDomainCertItem ¶
type CosBucketDomainCertItem struct {
// contains filtered or unexported fields
}
type CosService ¶
type CosService struct {
// contains filtered or unexported fields
}
func NewCosService ¶
func NewCosService(client *connectivity.TencentCloudClient) CosService
func (*CosService) BucketGetIntelligentTiering ¶
func (me *CosService) BucketGetIntelligentTiering(ctx context.Context, bucket string) (result *cos.BucketGetIntelligentTieringResult, errRet error)
func (*CosService) BucketPutIntelligentTiering ¶
func (me *CosService) BucketPutIntelligentTiering(ctx context.Context, bucket string, opt *cos.BucketPutIntelligentTieringOptions) (errRet error)
func (*CosService) DeleteBucket ¶
func (*CosService) DeleteBucketOriginDomain ¶
func (me *CosService) DeleteBucketOriginDomain(ctx context.Context, bucket string) (errRet error)
func (*CosService) DeleteBucketPolicy ¶
func (me *CosService) DeleteBucketPolicy(ctx context.Context, bucket string) (errRet error)
func (*CosService) DeleteBucketPullOrigin ¶
func (me *CosService) DeleteBucketPullOrigin(ctx context.Context, bucket string) (errRet error)
func (*CosService) DeleteBucketReplication ¶
func (me *CosService) DeleteBucketReplication(ctx context.Context, bucket string) (errRet error)
func (*CosService) DeleteCosBucketDomainCertificate ¶
func (me *CosService) DeleteCosBucketDomainCertificate(ctx context.Context, certId string) (errRet error)
func (*CosService) DeleteObject ¶
func (me *CosService) DeleteObject(ctx context.Context, bucket, key string) (errRet error)
func (*CosService) DescribeCosBucketDomainCertificate ¶
func (*CosService) DescribeCosBucketRefererById ¶
func (me *CosService) DescribeCosBucketRefererById(ctx context.Context, bucket string) (*cos.BucketGetRefererResult, error)
func (*CosService) DescribeCosBucketVersionById ¶
func (me *CosService) DescribeCosBucketVersionById(ctx context.Context, bucket string) (*cos.BucketGetVersionResult, error)
func (*CosService) DescribePolicyByBucket ¶
func (*CosService) ForceCleanObject ¶
func (*CosService) GetBucketACL ¶
func (me *CosService) GetBucketACL(ctx context.Context, bucket string) (result *cos.BucketGetACLResult, errRet error)
func (*CosService) GetBucketAccleration ¶
func (*CosService) GetBucketCors ¶
func (*CosService) GetBucketEncryption ¶
func (*CosService) GetBucketLifecycle ¶
func (*CosService) GetBucketLogStatus ¶
func (*CosService) GetBucketOriginDomain ¶
func (*CosService) GetBucketPullOrigin ¶
func (*CosService) GetBucketReplication ¶
func (me *CosService) GetBucketReplication(ctx context.Context, bucket string) (result *cos.GetBucketReplicationResult, errRet error)
func (*CosService) GetBucketTags ¶
func (*CosService) GetBucketVersioning ¶
func (*CosService) GetBucketWebsite ¶
func (*CosService) GetDataSourceBucketLifecycle ¶
func (*CosService) GetObjectTags ¶
func (*CosService) HeadBucket ¶
func (me *CosService) HeadBucket(ctx context.Context, bucket string) (errRet error)
func (*CosService) HeadObject ¶
func (me *CosService) HeadObject(ctx context.Context, bucket, key string) (info *s3.HeadObjectOutput, errRet error)
func (*CosService) ListBuckets ¶
func (*CosService) ListObjects ¶
func (*CosService) PutBucket ¶
func (me *CosService) PutBucket(ctx context.Context, bucket, acl string) (errRet error)
PutBucket - base on aws s3
func (*CosService) PutBucketOriginDomain ¶
func (me *CosService) PutBucketOriginDomain(ctx context.Context, bucket string, rules []cos.BucketDomainRule) (errRet error)
func (*CosService) PutBucketPolicy ¶
func (me *CosService) PutBucketPolicy(ctx context.Context, bucket, policy string) (errRet error)
func (*CosService) PutBucketPullOrigin ¶
func (me *CosService) PutBucketPullOrigin(ctx context.Context, bucket string, rules []cos.BucketOriginRule) (errRet error)
func (*CosService) PutBucketReplication ¶
func (*CosService) PutObjectAcl ¶
func (me *CosService) PutObjectAcl(ctx context.Context, bucket, key, acl string) (errRet error)
func (*CosService) SetBucketTags ¶
func (me *CosService) SetBucketTags(ctx context.Context, bucket string, tags map[string]string) error
SetBucketTags if len(tags) == 0, only delete tags
func (*CosService) SetObjectTags ¶
func (me *CosService) SetObjectTags(ctx context.Context, bucket string, key string, tags map[string]string) error
SetObjectTags same as delete Bucket Tags
func (*CosService) TencentCosBucketGetLocation ¶
func (*CosService) TencentCosPutBucket ¶
func (me *CosService) TencentCosPutBucket(ctx context.Context, bucket string, opt *cos.BucketPutOptions) (errRet error)
TencentCosPutBucket - To support MAZ config, We use tencentcloud cos sdk instead of aws s3
func (*CosService) TencentCosPutBucketACLBody ¶
func (*CosService) TencentcloudHeadBucket ¶
Source Files
¶
- data_source_tc_cos_batchs.go
- data_source_tc_cos_bucket_inventorys.go
- data_source_tc_cos_bucket_multipart_uploads.go
- data_source_tc_cos_bucket_object.go
- data_source_tc_cos_buckets.go
- extension_cam.go
- extension_cos.go
- resource_tc_cos_batch.go
- resource_tc_cos_bucket.go
- resource_tc_cos_bucket_domain_certificate_attachment.go
- resource_tc_cos_bucket_generate_inventory_immediately_operation.go
- resource_tc_cos_bucket_inventory.go
- resource_tc_cos_bucket_object.go
- resource_tc_cos_bucket_policy.go
- resource_tc_cos_bucket_referer.go
- resource_tc_cos_bucket_version.go
- resource_tc_cos_object_abort_multipart_upload_operation.go
- resource_tc_cos_object_copy_operation.go
- resource_tc_cos_object_download_operation.go
- resource_tc_cos_object_restore_operation.go
- service_tencentcloud_cam.go
- service_tencentcloud_cos.go
- validators.go
Click to show internal directories.
Click to hide internal directories.