Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Bucket
- type BucketArgs
- type BucketArray
- type BucketArrayInput
- type BucketArrayOutput
- type BucketCorsRule
- type BucketCorsRuleArgs
- type BucketCorsRuleArray
- type BucketCorsRuleArrayInput
- type BucketCorsRuleArrayOutput
- func (BucketCorsRuleArrayOutput) ElementType() reflect.Type
- func (o BucketCorsRuleArrayOutput) Index(i pulumi.IntInput) BucketCorsRuleOutput
- func (o BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput
- func (o BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutputWithContext(ctx context.Context) BucketCorsRuleArrayOutput
- type BucketCorsRuleInput
- type BucketCorsRuleOutput
- func (o BucketCorsRuleOutput) AllowedHeaders() pulumi.StringArrayOutput
- func (o BucketCorsRuleOutput) AllowedMethods() pulumi.StringArrayOutput
- func (o BucketCorsRuleOutput) AllowedOrigins() pulumi.StringArrayOutput
- func (BucketCorsRuleOutput) ElementType() reflect.Type
- func (o BucketCorsRuleOutput) ExposeHeaders() pulumi.StringArrayOutput
- func (o BucketCorsRuleOutput) MaxAgeSeconds() pulumi.IntPtrOutput
- func (o BucketCorsRuleOutput) ToBucketCorsRuleOutput() BucketCorsRuleOutput
- func (o BucketCorsRuleOutput) ToBucketCorsRuleOutputWithContext(ctx context.Context) BucketCorsRuleOutput
- type BucketInput
- type BucketLifecycleRule
- type BucketLifecycleRuleArgs
- type BucketLifecycleRuleArray
- type BucketLifecycleRuleArrayInput
- type BucketLifecycleRuleArrayOutput
- func (BucketLifecycleRuleArrayOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleArrayOutput) Index(i pulumi.IntInput) BucketLifecycleRuleOutput
- func (o BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput
- func (o BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleArrayOutput
- type BucketLifecycleRuleExpiration
- type BucketLifecycleRuleExpirationArgs
- func (BucketLifecycleRuleExpirationArgs) ElementType() reflect.Type
- func (i BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput
- func (i BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationOutput
- type BucketLifecycleRuleExpirationArray
- func (BucketLifecycleRuleExpirationArray) ElementType() reflect.Type
- func (i BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput
- func (i BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationArrayOutput
- type BucketLifecycleRuleExpirationArrayInput
- type BucketLifecycleRuleExpirationArrayOutput
- func (BucketLifecycleRuleExpirationArrayOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleExpirationArrayOutput) Index(i pulumi.IntInput) BucketLifecycleRuleExpirationOutput
- func (o BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput
- func (o BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationArrayOutput
- type BucketLifecycleRuleExpirationInput
- type BucketLifecycleRuleExpirationOutput
- func (o BucketLifecycleRuleExpirationOutput) Days() pulumi.IntOutput
- func (BucketLifecycleRuleExpirationOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput
- func (o BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationOutput
- type BucketLifecycleRuleInput
- type BucketLifecycleRuleNoncurrentVersionExpiration
- type BucketLifecycleRuleNoncurrentVersionExpirationArgs
- func (BucketLifecycleRuleNoncurrentVersionExpirationArgs) ElementType() reflect.Type
- func (i BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutput() BucketLifecycleRuleNoncurrentVersionExpirationOutput
- func (i BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationOutput
- type BucketLifecycleRuleNoncurrentVersionExpirationArray
- func (BucketLifecycleRuleNoncurrentVersionExpirationArray) ElementType() reflect.Type
- func (i BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput() BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
- func (i BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
- type BucketLifecycleRuleNoncurrentVersionExpirationArrayInput
- type BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
- func (BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) Index(i pulumi.IntInput) BucketLifecycleRuleNoncurrentVersionExpirationOutput
- func (o BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput() BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
- func (o BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
- type BucketLifecycleRuleNoncurrentVersionExpirationInput
- type BucketLifecycleRuleNoncurrentVersionExpirationOutput
- func (o BucketLifecycleRuleNoncurrentVersionExpirationOutput) Days() pulumi.IntOutput
- func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleNoncurrentVersionExpirationOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationOutput() BucketLifecycleRuleNoncurrentVersionExpirationOutput
- func (o BucketLifecycleRuleNoncurrentVersionExpirationOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationOutput
- type BucketLifecycleRuleNoncurrentVersionTransition
- type BucketLifecycleRuleNoncurrentVersionTransitionArgs
- func (BucketLifecycleRuleNoncurrentVersionTransitionArgs) ElementType() reflect.Type
- func (i BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutput() BucketLifecycleRuleNoncurrentVersionTransitionOutput
- func (i BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionOutput
- type BucketLifecycleRuleNoncurrentVersionTransitionArray
- func (BucketLifecycleRuleNoncurrentVersionTransitionArray) ElementType() reflect.Type
- func (i BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput() BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
- func (i BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
- type BucketLifecycleRuleNoncurrentVersionTransitionArrayInput
- type BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
- func (BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) Index(i pulumi.IntInput) BucketLifecycleRuleNoncurrentVersionTransitionOutput
- func (o BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput() BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
- func (o BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
- type BucketLifecycleRuleNoncurrentVersionTransitionInput
- type BucketLifecycleRuleNoncurrentVersionTransitionOutput
- func (o BucketLifecycleRuleNoncurrentVersionTransitionOutput) Days() pulumi.IntOutput
- func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleNoncurrentVersionTransitionOutput) StorageClass() pulumi.StringOutput
- func (o BucketLifecycleRuleNoncurrentVersionTransitionOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionOutput() BucketLifecycleRuleNoncurrentVersionTransitionOutput
- func (o BucketLifecycleRuleNoncurrentVersionTransitionOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionOutput
- type BucketLifecycleRuleOutput
- func (BucketLifecycleRuleOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleOutput) Enabled() pulumi.BoolOutput
- func (o BucketLifecycleRuleOutput) Expirations() BucketLifecycleRuleExpirationArrayOutput
- func (o BucketLifecycleRuleOutput) Name() pulumi.StringOutput
- func (o BucketLifecycleRuleOutput) NoncurrentVersionExpirations() BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
- func (o BucketLifecycleRuleOutput) NoncurrentVersionTransitions() BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
- func (o BucketLifecycleRuleOutput) Prefix() pulumi.StringPtrOutput
- func (o BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput
- func (o BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutputWithContext(ctx context.Context) BucketLifecycleRuleOutput
- func (o BucketLifecycleRuleOutput) Transitions() BucketLifecycleRuleTransitionArrayOutput
- type BucketLifecycleRuleTransition
- type BucketLifecycleRuleTransitionArgs
- func (BucketLifecycleRuleTransitionArgs) ElementType() reflect.Type
- func (i BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput
- func (i BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionOutput
- type BucketLifecycleRuleTransitionArray
- func (BucketLifecycleRuleTransitionArray) ElementType() reflect.Type
- func (i BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput
- func (i BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionArrayOutput
- type BucketLifecycleRuleTransitionArrayInput
- type BucketLifecycleRuleTransitionArrayOutput
- func (BucketLifecycleRuleTransitionArrayOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleTransitionArrayOutput) Index(i pulumi.IntInput) BucketLifecycleRuleTransitionOutput
- func (o BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput
- func (o BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionArrayOutput
- type BucketLifecycleRuleTransitionInput
- type BucketLifecycleRuleTransitionOutput
- func (o BucketLifecycleRuleTransitionOutput) Days() pulumi.IntOutput
- func (BucketLifecycleRuleTransitionOutput) ElementType() reflect.Type
- func (o BucketLifecycleRuleTransitionOutput) StorageClass() pulumi.StringOutput
- func (o BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput
- func (o BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionOutput
- type BucketLogging
- type BucketLoggingArgs
- type BucketLoggingArray
- type BucketLoggingArrayInput
- type BucketLoggingArrayOutput
- func (BucketLoggingArrayOutput) ElementType() reflect.Type
- func (o BucketLoggingArrayOutput) Index(i pulumi.IntInput) BucketLoggingOutput
- func (o BucketLoggingArrayOutput) ToBucketLoggingArrayOutput() BucketLoggingArrayOutput
- func (o BucketLoggingArrayOutput) ToBucketLoggingArrayOutputWithContext(ctx context.Context) BucketLoggingArrayOutput
- type BucketLoggingInput
- type BucketLoggingOutput
- func (BucketLoggingOutput) ElementType() reflect.Type
- func (o BucketLoggingOutput) TargetBucket() pulumi.StringOutput
- func (o BucketLoggingOutput) TargetPrefix() pulumi.StringPtrOutput
- func (o BucketLoggingOutput) ToBucketLoggingOutput() BucketLoggingOutput
- func (o BucketLoggingOutput) ToBucketLoggingOutputWithContext(ctx context.Context) BucketLoggingOutput
- type BucketMap
- type BucketMapInput
- type BucketMapOutput
- type BucketObject
- type BucketObjectArgs
- type BucketObjectArray
- type BucketObjectArrayInput
- type BucketObjectArrayOutput
- func (BucketObjectArrayOutput) ElementType() reflect.Type
- func (o BucketObjectArrayOutput) Index(i pulumi.IntInput) BucketObjectOutput
- func (o BucketObjectArrayOutput) ToBucketObjectArrayOutput() BucketObjectArrayOutput
- func (o BucketObjectArrayOutput) ToBucketObjectArrayOutputWithContext(ctx context.Context) BucketObjectArrayOutput
- type BucketObjectInput
- type BucketObjectMap
- type BucketObjectMapInput
- type BucketObjectMapOutput
- func (BucketObjectMapOutput) ElementType() reflect.Type
- func (o BucketObjectMapOutput) MapIndex(k pulumi.StringInput) BucketObjectOutput
- func (o BucketObjectMapOutput) ToBucketObjectMapOutput() BucketObjectMapOutput
- func (o BucketObjectMapOutput) ToBucketObjectMapOutputWithContext(ctx context.Context) BucketObjectMapOutput
- type BucketObjectOutput
- func (o BucketObjectOutput) Acl() pulumi.StringPtrOutput
- func (o BucketObjectOutput) Bucket() pulumi.StringOutput
- func (o BucketObjectOutput) Content() pulumi.StringPtrOutput
- func (o BucketObjectOutput) ContentType() pulumi.StringOutput
- func (BucketObjectOutput) ElementType() reflect.Type
- func (o BucketObjectOutput) Encryption() pulumi.BoolPtrOutput
- func (o BucketObjectOutput) Etag() pulumi.StringOutput
- func (o BucketObjectOutput) Key() pulumi.StringOutput
- func (o BucketObjectOutput) KmsKeyId() pulumi.StringPtrOutput
- func (o BucketObjectOutput) Region() pulumi.StringOutput
- func (o BucketObjectOutput) Size() pulumi.IntOutput
- func (o BucketObjectOutput) Source() pulumi.StringPtrOutput
- func (o BucketObjectOutput) StorageClass() pulumi.StringOutput
- func (o BucketObjectOutput) ToBucketObjectOutput() BucketObjectOutput
- func (o BucketObjectOutput) ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput
- func (o BucketObjectOutput) VersionId() pulumi.StringOutput
- type BucketObjectState
- type BucketOutput
- func (o BucketOutput) Acl() pulumi.StringPtrOutput
- func (o BucketOutput) Bucket() pulumi.StringOutput
- func (o BucketOutput) BucketDomainName() pulumi.StringOutput
- func (o BucketOutput) BucketVersion() pulumi.StringOutput
- func (o BucketOutput) CorsRules() BucketCorsRuleArrayOutput
- func (BucketOutput) ElementType() reflect.Type
- func (o BucketOutput) Encryption() pulumi.BoolPtrOutput
- func (o BucketOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o BucketOutput) ForceDestroy() pulumi.BoolPtrOutput
- func (o BucketOutput) KmsKeyId() pulumi.StringPtrOutput
- func (o BucketOutput) KmsKeyProjectId() pulumi.StringOutput
- func (o BucketOutput) LifecycleRules() BucketLifecycleRuleArrayOutput
- func (o BucketOutput) Loggings() BucketLoggingArrayOutput
- func (o BucketOutput) MultiAz() pulumi.BoolOutput
- func (o BucketOutput) ParallelFs() pulumi.BoolPtrOutput
- func (o BucketOutput) Policy() pulumi.StringOutput
- func (o BucketOutput) PolicyFormat() pulumi.StringPtrOutput
- func (o BucketOutput) Quota() pulumi.IntPtrOutput
- func (o BucketOutput) Region() pulumi.StringOutput
- func (o BucketOutput) StorageClass() pulumi.StringPtrOutput
- func (o BucketOutput) StorageInfos() BucketStorageInfoArrayOutput
- func (o BucketOutput) Tags() pulumi.StringMapOutput
- func (o BucketOutput) ToBucketOutput() BucketOutput
- func (o BucketOutput) ToBucketOutputWithContext(ctx context.Context) BucketOutput
- func (o BucketOutput) Versioning() pulumi.BoolPtrOutput
- func (o BucketOutput) Website() BucketWebsitePtrOutput
- type BucketPolicy
- type BucketPolicyArgs
- type BucketPolicyArray
- type BucketPolicyArrayInput
- type BucketPolicyArrayOutput
- func (BucketPolicyArrayOutput) ElementType() reflect.Type
- func (o BucketPolicyArrayOutput) Index(i pulumi.IntInput) BucketPolicyOutput
- func (o BucketPolicyArrayOutput) ToBucketPolicyArrayOutput() BucketPolicyArrayOutput
- func (o BucketPolicyArrayOutput) ToBucketPolicyArrayOutputWithContext(ctx context.Context) BucketPolicyArrayOutput
- type BucketPolicyInput
- type BucketPolicyMap
- type BucketPolicyMapInput
- type BucketPolicyMapOutput
- func (BucketPolicyMapOutput) ElementType() reflect.Type
- func (o BucketPolicyMapOutput) MapIndex(k pulumi.StringInput) BucketPolicyOutput
- func (o BucketPolicyMapOutput) ToBucketPolicyMapOutput() BucketPolicyMapOutput
- func (o BucketPolicyMapOutput) ToBucketPolicyMapOutputWithContext(ctx context.Context) BucketPolicyMapOutput
- type BucketPolicyOutput
- func (o BucketPolicyOutput) Bucket() pulumi.StringOutput
- func (BucketPolicyOutput) ElementType() reflect.Type
- func (o BucketPolicyOutput) Policy() pulumi.StringOutput
- func (o BucketPolicyOutput) PolicyFormat() pulumi.StringPtrOutput
- func (o BucketPolicyOutput) Region() pulumi.StringOutput
- func (o BucketPolicyOutput) ToBucketPolicyOutput() BucketPolicyOutput
- func (o BucketPolicyOutput) ToBucketPolicyOutputWithContext(ctx context.Context) BucketPolicyOutput
- type BucketPolicyState
- type BucketState
- type BucketStorageInfo
- type BucketStorageInfoArgs
- type BucketStorageInfoArray
- type BucketStorageInfoArrayInput
- type BucketStorageInfoArrayOutput
- func (BucketStorageInfoArrayOutput) ElementType() reflect.Type
- func (o BucketStorageInfoArrayOutput) Index(i pulumi.IntInput) BucketStorageInfoOutput
- func (o BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutput() BucketStorageInfoArrayOutput
- func (o BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutputWithContext(ctx context.Context) BucketStorageInfoArrayOutput
- type BucketStorageInfoInput
- type BucketStorageInfoOutput
- func (BucketStorageInfoOutput) ElementType() reflect.Type
- func (o BucketStorageInfoOutput) ObjectNumber() pulumi.IntPtrOutput
- func (o BucketStorageInfoOutput) Size() pulumi.IntPtrOutput
- func (o BucketStorageInfoOutput) ToBucketStorageInfoOutput() BucketStorageInfoOutput
- func (o BucketStorageInfoOutput) ToBucketStorageInfoOutputWithContext(ctx context.Context) BucketStorageInfoOutput
- type BucketWebsite
- type BucketWebsiteArgs
- func (BucketWebsiteArgs) ElementType() reflect.Type
- func (i BucketWebsiteArgs) ToBucketWebsiteOutput() BucketWebsiteOutput
- func (i BucketWebsiteArgs) ToBucketWebsiteOutputWithContext(ctx context.Context) BucketWebsiteOutput
- func (i BucketWebsiteArgs) ToBucketWebsitePtrOutput() BucketWebsitePtrOutput
- func (i BucketWebsiteArgs) ToBucketWebsitePtrOutputWithContext(ctx context.Context) BucketWebsitePtrOutput
- type BucketWebsiteInput
- type BucketWebsiteOutput
- func (BucketWebsiteOutput) ElementType() reflect.Type
- func (o BucketWebsiteOutput) ErrorDocument() pulumi.StringPtrOutput
- func (o BucketWebsiteOutput) IndexDocument() pulumi.StringPtrOutput
- func (o BucketWebsiteOutput) RedirectAllRequestsTo() pulumi.StringPtrOutput
- func (o BucketWebsiteOutput) RoutingRules() pulumi.StringPtrOutput
- func (o BucketWebsiteOutput) ToBucketWebsiteOutput() BucketWebsiteOutput
- func (o BucketWebsiteOutput) ToBucketWebsiteOutputWithContext(ctx context.Context) BucketWebsiteOutput
- func (o BucketWebsiteOutput) ToBucketWebsitePtrOutput() BucketWebsitePtrOutput
- func (o BucketWebsiteOutput) ToBucketWebsitePtrOutputWithContext(ctx context.Context) BucketWebsitePtrOutput
- type BucketWebsitePtrInput
- type BucketWebsitePtrOutput
- func (o BucketWebsitePtrOutput) Elem() BucketWebsiteOutput
- func (BucketWebsitePtrOutput) ElementType() reflect.Type
- func (o BucketWebsitePtrOutput) ErrorDocument() pulumi.StringPtrOutput
- func (o BucketWebsitePtrOutput) IndexDocument() pulumi.StringPtrOutput
- func (o BucketWebsitePtrOutput) RedirectAllRequestsTo() pulumi.StringPtrOutput
- func (o BucketWebsitePtrOutput) RoutingRules() pulumi.StringPtrOutput
- func (o BucketWebsitePtrOutput) ToBucketWebsitePtrOutput() BucketWebsitePtrOutput
- func (o BucketWebsitePtrOutput) ToBucketWebsitePtrOutputWithContext(ctx context.Context) BucketWebsitePtrOutput
- type GetBucketsArgs
- type GetBucketsBucket
- type GetBucketsBucketArgs
- type GetBucketsBucketArray
- type GetBucketsBucketArrayInput
- type GetBucketsBucketArrayOutput
- func (GetBucketsBucketArrayOutput) ElementType() reflect.Type
- func (o GetBucketsBucketArrayOutput) Index(i pulumi.IntInput) GetBucketsBucketOutput
- func (o GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutput() GetBucketsBucketArrayOutput
- func (o GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutputWithContext(ctx context.Context) GetBucketsBucketArrayOutput
- type GetBucketsBucketInput
- type GetBucketsBucketOutput
- func (o GetBucketsBucketOutput) Bucket() pulumi.StringOutput
- func (o GetBucketsBucketOutput) CreatedAt() pulumi.StringOutput
- func (GetBucketsBucketOutput) ElementType() reflect.Type
- func (o GetBucketsBucketOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o GetBucketsBucketOutput) Region() pulumi.StringOutput
- func (o GetBucketsBucketOutput) StorageClass() pulumi.StringOutput
- func (o GetBucketsBucketOutput) ToGetBucketsBucketOutput() GetBucketsBucketOutput
- func (o GetBucketsBucketOutput) ToGetBucketsBucketOutputWithContext(ctx context.Context) GetBucketsBucketOutput
- type GetBucketsOutputArgs
- type GetBucketsResult
- type GetBucketsResultOutput
- func (o GetBucketsResultOutput) Bucket() pulumi.StringPtrOutput
- func (o GetBucketsResultOutput) Buckets() GetBucketsBucketArrayOutput
- func (GetBucketsResultOutput) ElementType() reflect.Type
- func (o GetBucketsResultOutput) EnterpriseProjectId() pulumi.StringPtrOutput
- func (o GetBucketsResultOutput) Id() pulumi.StringOutput
- func (o GetBucketsResultOutput) Region() pulumi.StringPtrOutput
- func (o GetBucketsResultOutput) ToGetBucketsResultOutput() GetBucketsResultOutput
- func (o GetBucketsResultOutput) ToGetBucketsResultOutputWithContext(ctx context.Context) GetBucketsResultOutput
- type LookupBucketObjectArgs
- type LookupBucketObjectOutputArgs
- type LookupBucketObjectResult
- type LookupBucketObjectResultOutput
- func (o LookupBucketObjectResultOutput) Body() pulumi.StringOutput
- func (o LookupBucketObjectResultOutput) Bucket() pulumi.StringOutput
- func (o LookupBucketObjectResultOutput) ContentType() pulumi.StringOutput
- func (LookupBucketObjectResultOutput) ElementType() reflect.Type
- func (o LookupBucketObjectResultOutput) Etag() pulumi.StringOutput
- func (o LookupBucketObjectResultOutput) Id() pulumi.StringOutput
- func (o LookupBucketObjectResultOutput) Key() pulumi.StringOutput
- func (o LookupBucketObjectResultOutput) Region() pulumi.StringOutput
- func (o LookupBucketObjectResultOutput) Size() pulumi.IntOutput
- func (o LookupBucketObjectResultOutput) StorageClass() pulumi.StringOutput
- func (o LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutput() LookupBucketObjectResultOutput
- func (o LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutputWithContext(ctx context.Context) LookupBucketObjectResultOutput
- func (o LookupBucketObjectResultOutput) VersionId() pulumi.StringOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Bucket ¶
type Bucket struct { pulumi.CustomResourceState // Specifies the ACL policy for a bucket. The predefined common policies are as follows: // "private", "public-read", "public-read-write" and "log-delivery-write". Defaults to `private`. Acl pulumi.StringPtrOutput `pulumi:"acl"` // Specifies the name of the bucket. Changing this parameter will create a new // resource. A bucket must be named according to the globally applied DNS naming regulations as follows: // + The name must be globally unique in OBS. // + The name must contain 3 to 63 characters. Only lowercase letters, digits, hyphens (-), and periods (.) are // allowed. // + The name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (.) or // contain a period (.) and a hyphen (-) adjacent to each other. // + The name cannot be an IP address. // + If the name contains any periods (.), a security certificate verification message may appear when you access the // bucket or its objects by entering a domain name. Bucket pulumi.StringOutput `pulumi:"bucket"` // The bucket domain name. Will be of format `bucketname.obs.region.myhuaweicloud.com`. BucketDomainName pulumi.StringOutput `pulumi:"bucketDomainName"` // The OBS version of the bucket. BucketVersion pulumi.StringOutput `pulumi:"bucketVersion"` // A rule of Cross-Origin Resource Sharing (documented below). CorsRules BucketCorsRuleArrayOutput `pulumi:"corsRules"` // Whether enable default server-side encryption of the bucket in SSE-KMS mode. Encryption pulumi.BoolPtrOutput `pulumi:"encryption"` // Specifies the enterprise project id of the OBS bucket. // Defaults to `0`. EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"` // A boolean that indicates all objects should be deleted from the bucket, so that the // bucket can be destroyed without error. Default to `false`. ForceDestroy pulumi.BoolPtrOutput `pulumi:"forceDestroy"` // Specifies the ID of a KMS key. If omitted, the default master key will be used. KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"` // Specifies the project ID to which the KMS key belongs. If omitted, the ID // of the provider-level project will be used. KmsKeyProjectId pulumi.StringOutput `pulumi:"kmsKeyProjectId"` // A configuration of object lifecycle management (documented below). LifecycleRules BucketLifecycleRuleArrayOutput `pulumi:"lifecycleRules"` // A settings of bucket logging (documented below). Loggings BucketLoggingArrayOutput `pulumi:"loggings"` // Whether enable the multi-AZ mode for the bucket. When the multi-AZ mode is // enabled, data in the bucket is duplicated and stored in multiple AZs. MultiAz pulumi.BoolOutput `pulumi:"multiAz"` // Whether enable a bucket as a parallel file system. Changing this will // create a new bucket. ParallelFs pulumi.BoolPtrOutput `pulumi:"parallelFs"` // Specifies the text of the bucket policy in JSON format. For more information about obs // format bucket policy, // see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html). Policy pulumi.StringOutput `pulumi:"policy"` // Specifies the policy format, the supported values are *obs* and *s3*. Defaults // to *obs*. PolicyFormat pulumi.StringPtrOutput `pulumi:"policyFormat"` // Specifies bucket storage quota. Must be a positive integer in the unit of byte. The maximum // storage quota is 2<sup>63</sup> – 1 bytes. The default bucket storage quota is 0, indicating that the bucket storage // quota is not limited. Quota pulumi.IntPtrOutput `pulumi:"quota"` // Specifies the region where this bucket will be created. If not specified, used // the region by the provider. Changing this will create a new bucket. Region pulumi.StringOutput `pulumi:"region"` // Specifies the storage class of the bucket. OBS provides three storage classes: // "STANDARD", "WARM" (Infrequent Access) and "COLD" (Archive). Defaults to `STANDARD`. StorageClass pulumi.StringPtrOutput `pulumi:"storageClass"` // The OBS storage info of the bucket. // The object structure is documented below. StorageInfos BucketStorageInfoArrayOutput `pulumi:"storageInfos"` // A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair. Tags pulumi.StringMapOutput `pulumi:"tags"` // Whether enable versioning. Once you version-enable a bucket, it can never return to an // unversioned state. You can, however, suspend versioning on that bucket. Versioning pulumi.BoolPtrOutput `pulumi:"versioning"` // A website object (documented below). Website BucketWebsitePtrOutput `pulumi:"website"` }
Provides an OBS bucket resource.
## Example Usage ### Private Bucket with Tags
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{ Acl: pulumi.String("private"), Bucket: pulumi.String("my-tf-test-bucket"), Tags: pulumi.StringMap{ "Env": pulumi.String("Test"), "foo": pulumi.String("bar"), }, }) if err != nil { return err } return nil }) }
``` ### Enable versioning
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{ Acl: pulumi.String("private"), Bucket: pulumi.String("my-tf-test-bucket"), Versioning: pulumi.Bool(true), }) if err != nil { return err } return nil }) }
``` ### Enable Logging
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { logBucket, err := Obs.NewBucket(ctx, "logBucket", &Obs.BucketArgs{ Bucket: pulumi.String("my-tf-log-bucket"), Acl: pulumi.String("log-delivery-write"), }) if err != nil { return err } _, err = Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{ Bucket: pulumi.String("my-tf-test-bucket"), Acl: pulumi.String("private"), Loggings: obs.BucketLoggingArray{ &obs.BucketLoggingArgs{ TargetBucket: logBucket.ID(), TargetPrefix: pulumi.String("log/"), }, }, }) if err != nil { return err } return nil }) }
``` ### Static Website Hosting
```go package main
import (
"fmt" "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{ Acl: pulumi.String("public-read"), Bucket: pulumi.String("obs-website-test.hashicorp.com"), Website: &obs.BucketWebsiteArgs{ ErrorDocument: pulumi.String("error.html"), IndexDocument: pulumi.String("index.html"), RoutingRules: pulumi.String(fmt.Sprintf(`[{ "Condition": { "KeyPrefixEquals": "docs/" }, "Redirect": { "ReplaceKeyPrefixWith": "documents/" } }]
`)),
}, }) if err != nil { return err } return nil }) }
``` ### Using CORS
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{ Acl: pulumi.String("public-read"), Bucket: pulumi.String("obs-website-test.hashicorp.com"), CorsRules: obs.BucketCorsRuleArray{ &obs.BucketCorsRuleArgs{ AllowedHeaders: pulumi.StringArray{ pulumi.String("*"), }, AllowedMethods: pulumi.StringArray{ pulumi.String("PUT"), pulumi.String("POST"), }, AllowedOrigins: pulumi.StringArray{ pulumi.String("https://obs-website-test.hashicorp.com"), }, ExposeHeaders: pulumi.StringArray{ pulumi.String("ETag"), }, MaxAgeSeconds: pulumi.Int(3000), }, }, }) if err != nil { return err } return nil }) }
``` ### Using object lifecycle
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{ Acl: pulumi.String("private"), Bucket: pulumi.String("my-bucket"), LifecycleRules: obs.BucketLifecycleRuleArray{ &obs.BucketLifecycleRuleArgs{ Enabled: pulumi.Bool(true), Expirations: obs.BucketLifecycleRuleExpirationArray{ &obs.BucketLifecycleRuleExpirationArgs{ Days: pulumi.Int(365), }, }, Name: pulumi.String("log"), Prefix: pulumi.String("log/"), Transitions: obs.BucketLifecycleRuleTransitionArray{ &obs.BucketLifecycleRuleTransitionArgs{ Days: pulumi.Int(60), StorageClass: pulumi.String("WARM"), }, &obs.BucketLifecycleRuleTransitionArgs{ Days: pulumi.Int(180), StorageClass: pulumi.String("COLD"), }, }, }, &obs.BucketLifecycleRuleArgs{ Enabled: pulumi.Bool(true), Name: pulumi.String("tmp"), NoncurrentVersionExpirations: obs.BucketLifecycleRuleNoncurrentVersionExpirationArray{ &obs.BucketLifecycleRuleNoncurrentVersionExpirationArgs{ Days: pulumi.Int(180), }, }, NoncurrentVersionTransitions: obs.BucketLifecycleRuleNoncurrentVersionTransitionArray{ &obs.BucketLifecycleRuleNoncurrentVersionTransitionArgs{ Days: pulumi.Int(30), StorageClass: pulumi.String("WARM"), }, &obs.BucketLifecycleRuleNoncurrentVersionTransitionArgs{ Days: pulumi.Int(60), StorageClass: pulumi.String("COLD"), }, }, Prefix: pulumi.String("tmp/"), }, }, Versioning: pulumi.Bool(true), }) if err != nil { return err } return nil }) }
```
## Import
OBS bucket can be imported using the `bucket`, e.g.
```sh
$ pulumi import huaweicloud:Obs/bucket:Bucket bucket <bucket-name>
```
OBS bucket with S3 foramt bucket policy can be imported using the `bucket` and "s3" by a slash, e.g.
```sh
$ pulumi import huaweicloud:Obs/bucket:Bucket bucket_with_s3_policy <bucket-name>/s3
```
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response. The missing attributes include `acl` and `force_destroy`. It is generally recommended running `terraform plan` after importing an OBS bucket. Also you can ignore changes as below. resource "huaweicloud_obs_bucket" "bucket" { ... lifecycle { ignore_changes = [ acl, force_destroy, ] } }
func GetBucket ¶
func GetBucket(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BucketState, opts ...pulumi.ResourceOption) (*Bucket, error)
GetBucket gets an existing Bucket resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewBucket ¶
func NewBucket(ctx *pulumi.Context, name string, args *BucketArgs, opts ...pulumi.ResourceOption) (*Bucket, error)
NewBucket registers a new resource with the given unique name, arguments, and options.
func (*Bucket) ElementType ¶
func (*Bucket) ToBucketOutput ¶
func (i *Bucket) ToBucketOutput() BucketOutput
func (*Bucket) ToBucketOutputWithContext ¶
func (i *Bucket) ToBucketOutputWithContext(ctx context.Context) BucketOutput
type BucketArgs ¶
type BucketArgs struct { // Specifies the ACL policy for a bucket. The predefined common policies are as follows: // "private", "public-read", "public-read-write" and "log-delivery-write". Defaults to `private`. Acl pulumi.StringPtrInput // Specifies the name of the bucket. Changing this parameter will create a new // resource. A bucket must be named according to the globally applied DNS naming regulations as follows: // + The name must be globally unique in OBS. // + The name must contain 3 to 63 characters. Only lowercase letters, digits, hyphens (-), and periods (.) are // allowed. // + The name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (.) or // contain a period (.) and a hyphen (-) adjacent to each other. // + The name cannot be an IP address. // + If the name contains any periods (.), a security certificate verification message may appear when you access the // bucket or its objects by entering a domain name. Bucket pulumi.StringInput // A rule of Cross-Origin Resource Sharing (documented below). CorsRules BucketCorsRuleArrayInput // Whether enable default server-side encryption of the bucket in SSE-KMS mode. Encryption pulumi.BoolPtrInput // Specifies the enterprise project id of the OBS bucket. // Defaults to `0`. EnterpriseProjectId pulumi.StringPtrInput // A boolean that indicates all objects should be deleted from the bucket, so that the // bucket can be destroyed without error. Default to `false`. ForceDestroy pulumi.BoolPtrInput // Specifies the ID of a KMS key. If omitted, the default master key will be used. KmsKeyId pulumi.StringPtrInput // Specifies the project ID to which the KMS key belongs. If omitted, the ID // of the provider-level project will be used. KmsKeyProjectId pulumi.StringPtrInput // A configuration of object lifecycle management (documented below). LifecycleRules BucketLifecycleRuleArrayInput // A settings of bucket logging (documented below). Loggings BucketLoggingArrayInput // Whether enable the multi-AZ mode for the bucket. When the multi-AZ mode is // enabled, data in the bucket is duplicated and stored in multiple AZs. MultiAz pulumi.BoolPtrInput // Whether enable a bucket as a parallel file system. Changing this will // create a new bucket. ParallelFs pulumi.BoolPtrInput // Specifies the text of the bucket policy in JSON format. For more information about obs // format bucket policy, // see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html). Policy pulumi.StringPtrInput // Specifies the policy format, the supported values are *obs* and *s3*. Defaults // to *obs*. PolicyFormat pulumi.StringPtrInput // Specifies bucket storage quota. Must be a positive integer in the unit of byte. The maximum // storage quota is 2<sup>63</sup> – 1 bytes. The default bucket storage quota is 0, indicating that the bucket storage // quota is not limited. Quota pulumi.IntPtrInput // Specifies the region where this bucket will be created. If not specified, used // the region by the provider. Changing this will create a new bucket. Region pulumi.StringPtrInput // Specifies the storage class of the bucket. OBS provides three storage classes: // "STANDARD", "WARM" (Infrequent Access) and "COLD" (Archive). Defaults to `STANDARD`. StorageClass pulumi.StringPtrInput // A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair. Tags pulumi.StringMapInput // Whether enable versioning. Once you version-enable a bucket, it can never return to an // unversioned state. You can, however, suspend versioning on that bucket. Versioning pulumi.BoolPtrInput // A website object (documented below). Website BucketWebsitePtrInput }
The set of arguments for constructing a Bucket resource.
func (BucketArgs) ElementType ¶
func (BucketArgs) ElementType() reflect.Type
type BucketArray ¶
type BucketArray []BucketInput
func (BucketArray) ElementType ¶
func (BucketArray) ElementType() reflect.Type
func (BucketArray) ToBucketArrayOutput ¶
func (i BucketArray) ToBucketArrayOutput() BucketArrayOutput
func (BucketArray) ToBucketArrayOutputWithContext ¶
func (i BucketArray) ToBucketArrayOutputWithContext(ctx context.Context) BucketArrayOutput
type BucketArrayInput ¶
type BucketArrayInput interface { pulumi.Input ToBucketArrayOutput() BucketArrayOutput ToBucketArrayOutputWithContext(context.Context) BucketArrayOutput }
BucketArrayInput is an input type that accepts BucketArray and BucketArrayOutput values. You can construct a concrete instance of `BucketArrayInput` via:
BucketArray{ BucketArgs{...} }
type BucketArrayOutput ¶
type BucketArrayOutput struct{ *pulumi.OutputState }
func (BucketArrayOutput) ElementType ¶
func (BucketArrayOutput) ElementType() reflect.Type
func (BucketArrayOutput) Index ¶
func (o BucketArrayOutput) Index(i pulumi.IntInput) BucketOutput
func (BucketArrayOutput) ToBucketArrayOutput ¶
func (o BucketArrayOutput) ToBucketArrayOutput() BucketArrayOutput
func (BucketArrayOutput) ToBucketArrayOutputWithContext ¶
func (o BucketArrayOutput) ToBucketArrayOutputWithContext(ctx context.Context) BucketArrayOutput
type BucketCorsRule ¶
type BucketCorsRule struct { // Specifies the allowed header of cross-origin requests. Only CORS requests // matching the allowed header are valid. AllowedHeaders []string `pulumi:"allowedHeaders"` // Specifies the acceptable operation type of buckets and objects. The methods // include `GET`, `PUT`, `POST`, `DELETE` or `HEAD`. AllowedMethods []string `pulumi:"allowedMethods"` // Requests from this origin can access the bucket. Multiple matching rules are // allowed. One rule occupies one line, and allows one wildcard character (*) at most. AllowedOrigins []string `pulumi:"allowedOrigins"` // Specifies the exposed header in CORS responses, providing additional information // for clients. ExposeHeaders []string `pulumi:"exposeHeaders"` // Specifies the duration that your browser can cache CORS responses, expressed in // seconds. The default value is 100. MaxAgeSeconds *int `pulumi:"maxAgeSeconds"` }
type BucketCorsRuleArgs ¶
type BucketCorsRuleArgs struct { // Specifies the allowed header of cross-origin requests. Only CORS requests // matching the allowed header are valid. AllowedHeaders pulumi.StringArrayInput `pulumi:"allowedHeaders"` // Specifies the acceptable operation type of buckets and objects. The methods // include `GET`, `PUT`, `POST`, `DELETE` or `HEAD`. AllowedMethods pulumi.StringArrayInput `pulumi:"allowedMethods"` // Requests from this origin can access the bucket. Multiple matching rules are // allowed. One rule occupies one line, and allows one wildcard character (*) at most. AllowedOrigins pulumi.StringArrayInput `pulumi:"allowedOrigins"` // Specifies the exposed header in CORS responses, providing additional information // for clients. ExposeHeaders pulumi.StringArrayInput `pulumi:"exposeHeaders"` // Specifies the duration that your browser can cache CORS responses, expressed in // seconds. The default value is 100. MaxAgeSeconds pulumi.IntPtrInput `pulumi:"maxAgeSeconds"` }
func (BucketCorsRuleArgs) ElementType ¶
func (BucketCorsRuleArgs) ElementType() reflect.Type
func (BucketCorsRuleArgs) ToBucketCorsRuleOutput ¶
func (i BucketCorsRuleArgs) ToBucketCorsRuleOutput() BucketCorsRuleOutput
func (BucketCorsRuleArgs) ToBucketCorsRuleOutputWithContext ¶
func (i BucketCorsRuleArgs) ToBucketCorsRuleOutputWithContext(ctx context.Context) BucketCorsRuleOutput
type BucketCorsRuleArray ¶
type BucketCorsRuleArray []BucketCorsRuleInput
func (BucketCorsRuleArray) ElementType ¶
func (BucketCorsRuleArray) ElementType() reflect.Type
func (BucketCorsRuleArray) ToBucketCorsRuleArrayOutput ¶
func (i BucketCorsRuleArray) ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput
func (BucketCorsRuleArray) ToBucketCorsRuleArrayOutputWithContext ¶
func (i BucketCorsRuleArray) ToBucketCorsRuleArrayOutputWithContext(ctx context.Context) BucketCorsRuleArrayOutput
type BucketCorsRuleArrayInput ¶
type BucketCorsRuleArrayInput interface { pulumi.Input ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput ToBucketCorsRuleArrayOutputWithContext(context.Context) BucketCorsRuleArrayOutput }
BucketCorsRuleArrayInput is an input type that accepts BucketCorsRuleArray and BucketCorsRuleArrayOutput values. You can construct a concrete instance of `BucketCorsRuleArrayInput` via:
BucketCorsRuleArray{ BucketCorsRuleArgs{...} }
type BucketCorsRuleArrayOutput ¶
type BucketCorsRuleArrayOutput struct{ *pulumi.OutputState }
func (BucketCorsRuleArrayOutput) ElementType ¶
func (BucketCorsRuleArrayOutput) ElementType() reflect.Type
func (BucketCorsRuleArrayOutput) Index ¶
func (o BucketCorsRuleArrayOutput) Index(i pulumi.IntInput) BucketCorsRuleOutput
func (BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutput ¶
func (o BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput
func (BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutputWithContext ¶
func (o BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutputWithContext(ctx context.Context) BucketCorsRuleArrayOutput
type BucketCorsRuleInput ¶
type BucketCorsRuleInput interface { pulumi.Input ToBucketCorsRuleOutput() BucketCorsRuleOutput ToBucketCorsRuleOutputWithContext(context.Context) BucketCorsRuleOutput }
BucketCorsRuleInput is an input type that accepts BucketCorsRuleArgs and BucketCorsRuleOutput values. You can construct a concrete instance of `BucketCorsRuleInput` via:
BucketCorsRuleArgs{...}
type BucketCorsRuleOutput ¶
type BucketCorsRuleOutput struct{ *pulumi.OutputState }
func (BucketCorsRuleOutput) AllowedHeaders ¶
func (o BucketCorsRuleOutput) AllowedHeaders() pulumi.StringArrayOutput
Specifies the allowed header of cross-origin requests. Only CORS requests matching the allowed header are valid.
func (BucketCorsRuleOutput) AllowedMethods ¶
func (o BucketCorsRuleOutput) AllowedMethods() pulumi.StringArrayOutput
Specifies the acceptable operation type of buckets and objects. The methods include `GET`, `PUT`, `POST`, `DELETE` or `HEAD`.
func (BucketCorsRuleOutput) AllowedOrigins ¶
func (o BucketCorsRuleOutput) AllowedOrigins() pulumi.StringArrayOutput
Requests from this origin can access the bucket. Multiple matching rules are allowed. One rule occupies one line, and allows one wildcard character (*) at most.
func (BucketCorsRuleOutput) ElementType ¶
func (BucketCorsRuleOutput) ElementType() reflect.Type
func (BucketCorsRuleOutput) ExposeHeaders ¶
func (o BucketCorsRuleOutput) ExposeHeaders() pulumi.StringArrayOutput
Specifies the exposed header in CORS responses, providing additional information for clients.
func (BucketCorsRuleOutput) MaxAgeSeconds ¶
func (o BucketCorsRuleOutput) MaxAgeSeconds() pulumi.IntPtrOutput
Specifies the duration that your browser can cache CORS responses, expressed in seconds. The default value is 100.
func (BucketCorsRuleOutput) ToBucketCorsRuleOutput ¶
func (o BucketCorsRuleOutput) ToBucketCorsRuleOutput() BucketCorsRuleOutput
func (BucketCorsRuleOutput) ToBucketCorsRuleOutputWithContext ¶
func (o BucketCorsRuleOutput) ToBucketCorsRuleOutputWithContext(ctx context.Context) BucketCorsRuleOutput
type BucketInput ¶
type BucketInput interface { pulumi.Input ToBucketOutput() BucketOutput ToBucketOutputWithContext(ctx context.Context) BucketOutput }
type BucketLifecycleRule ¶
type BucketLifecycleRule struct { // Specifies lifecycle rule status. Enabled bool `pulumi:"enabled"` // Specifies a period when objects that have been last updated are automatically // deleted. (documented below). Expirations []BucketLifecycleRuleExpiration `pulumi:"expirations"` // Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters. Name string `pulumi:"name"` // Specifies a period when noncurrent object versions are // automatically deleted. (documented below). NoncurrentVersionExpirations []BucketLifecycleRuleNoncurrentVersionExpiration `pulumi:"noncurrentVersionExpirations"` // Specifies a period when noncurrent object versions are // automatically transitioned to `WARM` or `COLD` storage class (documented below). NoncurrentVersionTransitions []BucketLifecycleRuleNoncurrentVersionTransition `pulumi:"noncurrentVersionTransitions"` // Object key prefix identifying one or more objects to which the rule applies. If omitted, // all objects in the bucket will be managed by the lifecycle rule. The prefix cannot start or end with a slash (/), // cannot have consecutive slashes (/), and cannot contain the following special characters: \:*?"<>|. Prefix *string `pulumi:"prefix"` // Specifies a period when objects that have been last updated are automatically // transitioned to `WARM` or `COLD` storage class (documented below). Transitions []BucketLifecycleRuleTransition `pulumi:"transitions"` }
type BucketLifecycleRuleArgs ¶
type BucketLifecycleRuleArgs struct { // Specifies lifecycle rule status. Enabled pulumi.BoolInput `pulumi:"enabled"` // Specifies a period when objects that have been last updated are automatically // deleted. (documented below). Expirations BucketLifecycleRuleExpirationArrayInput `pulumi:"expirations"` // Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters. Name pulumi.StringInput `pulumi:"name"` // Specifies a period when noncurrent object versions are // automatically deleted. (documented below). NoncurrentVersionExpirations BucketLifecycleRuleNoncurrentVersionExpirationArrayInput `pulumi:"noncurrentVersionExpirations"` // Specifies a period when noncurrent object versions are // automatically transitioned to `WARM` or `COLD` storage class (documented below). NoncurrentVersionTransitions BucketLifecycleRuleNoncurrentVersionTransitionArrayInput `pulumi:"noncurrentVersionTransitions"` // Object key prefix identifying one or more objects to which the rule applies. If omitted, // all objects in the bucket will be managed by the lifecycle rule. The prefix cannot start or end with a slash (/), // cannot have consecutive slashes (/), and cannot contain the following special characters: \:*?"<>|. Prefix pulumi.StringPtrInput `pulumi:"prefix"` // Specifies a period when objects that have been last updated are automatically // transitioned to `WARM` or `COLD` storage class (documented below). Transitions BucketLifecycleRuleTransitionArrayInput `pulumi:"transitions"` }
func (BucketLifecycleRuleArgs) ElementType ¶
func (BucketLifecycleRuleArgs) ElementType() reflect.Type
func (BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutput ¶
func (i BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput
func (BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutputWithContext ¶
func (i BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutputWithContext(ctx context.Context) BucketLifecycleRuleOutput
type BucketLifecycleRuleArray ¶
type BucketLifecycleRuleArray []BucketLifecycleRuleInput
func (BucketLifecycleRuleArray) ElementType ¶
func (BucketLifecycleRuleArray) ElementType() reflect.Type
func (BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutput ¶
func (i BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput
func (BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutputWithContext ¶
func (i BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleArrayOutput
type BucketLifecycleRuleArrayInput ¶
type BucketLifecycleRuleArrayInput interface { pulumi.Input ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput ToBucketLifecycleRuleArrayOutputWithContext(context.Context) BucketLifecycleRuleArrayOutput }
BucketLifecycleRuleArrayInput is an input type that accepts BucketLifecycleRuleArray and BucketLifecycleRuleArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleArrayInput` via:
BucketLifecycleRuleArray{ BucketLifecycleRuleArgs{...} }
type BucketLifecycleRuleArrayOutput ¶
type BucketLifecycleRuleArrayOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleArrayOutput) ElementType ¶
func (BucketLifecycleRuleArrayOutput) ElementType() reflect.Type
func (BucketLifecycleRuleArrayOutput) Index ¶
func (o BucketLifecycleRuleArrayOutput) Index(i pulumi.IntInput) BucketLifecycleRuleOutput
func (BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutput ¶
func (o BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput
func (BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutputWithContext ¶
func (o BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleArrayOutput
type BucketLifecycleRuleExpiration ¶
type BucketLifecycleRuleExpiration struct { // Specifies the number of days when objects that have been last updated are automatically // deleted. The expiration time must be greater than the transition times. Days int `pulumi:"days"` }
type BucketLifecycleRuleExpirationArgs ¶
type BucketLifecycleRuleExpirationArgs struct { // Specifies the number of days when objects that have been last updated are automatically // deleted. The expiration time must be greater than the transition times. Days pulumi.IntInput `pulumi:"days"` }
func (BucketLifecycleRuleExpirationArgs) ElementType ¶
func (BucketLifecycleRuleExpirationArgs) ElementType() reflect.Type
func (BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutput ¶
func (i BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput
func (BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutputWithContext ¶
func (i BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationOutput
type BucketLifecycleRuleExpirationArray ¶
type BucketLifecycleRuleExpirationArray []BucketLifecycleRuleExpirationInput
func (BucketLifecycleRuleExpirationArray) ElementType ¶
func (BucketLifecycleRuleExpirationArray) ElementType() reflect.Type
func (BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutput ¶
func (i BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput
func (BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutputWithContext ¶
func (i BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationArrayOutput
type BucketLifecycleRuleExpirationArrayInput ¶
type BucketLifecycleRuleExpirationArrayInput interface { pulumi.Input ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput ToBucketLifecycleRuleExpirationArrayOutputWithContext(context.Context) BucketLifecycleRuleExpirationArrayOutput }
BucketLifecycleRuleExpirationArrayInput is an input type that accepts BucketLifecycleRuleExpirationArray and BucketLifecycleRuleExpirationArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleExpirationArrayInput` via:
BucketLifecycleRuleExpirationArray{ BucketLifecycleRuleExpirationArgs{...} }
type BucketLifecycleRuleExpirationArrayOutput ¶
type BucketLifecycleRuleExpirationArrayOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleExpirationArrayOutput) ElementType ¶
func (BucketLifecycleRuleExpirationArrayOutput) ElementType() reflect.Type
func (BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutput ¶
func (o BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput
func (BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutputWithContext ¶
func (o BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationArrayOutput
type BucketLifecycleRuleExpirationInput ¶
type BucketLifecycleRuleExpirationInput interface { pulumi.Input ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput ToBucketLifecycleRuleExpirationOutputWithContext(context.Context) BucketLifecycleRuleExpirationOutput }
BucketLifecycleRuleExpirationInput is an input type that accepts BucketLifecycleRuleExpirationArgs and BucketLifecycleRuleExpirationOutput values. You can construct a concrete instance of `BucketLifecycleRuleExpirationInput` via:
BucketLifecycleRuleExpirationArgs{...}
type BucketLifecycleRuleExpirationOutput ¶
type BucketLifecycleRuleExpirationOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleExpirationOutput) Days ¶
func (o BucketLifecycleRuleExpirationOutput) Days() pulumi.IntOutput
Specifies the number of days when objects that have been last updated are automatically deleted. The expiration time must be greater than the transition times.
func (BucketLifecycleRuleExpirationOutput) ElementType ¶
func (BucketLifecycleRuleExpirationOutput) ElementType() reflect.Type
func (BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutput ¶
func (o BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput
func (BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutputWithContext ¶
func (o BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationOutput
type BucketLifecycleRuleInput ¶
type BucketLifecycleRuleInput interface { pulumi.Input ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput ToBucketLifecycleRuleOutputWithContext(context.Context) BucketLifecycleRuleOutput }
BucketLifecycleRuleInput is an input type that accepts BucketLifecycleRuleArgs and BucketLifecycleRuleOutput values. You can construct a concrete instance of `BucketLifecycleRuleInput` via:
BucketLifecycleRuleArgs{...}
type BucketLifecycleRuleNoncurrentVersionExpiration ¶
type BucketLifecycleRuleNoncurrentVersionExpiration struct { // Specifies the number of days when noncurrent object versions are automatically deleted. Days int `pulumi:"days"` }
type BucketLifecycleRuleNoncurrentVersionExpirationArgs ¶
type BucketLifecycleRuleNoncurrentVersionExpirationArgs struct { // Specifies the number of days when noncurrent object versions are automatically deleted. Days pulumi.IntInput `pulumi:"days"` }
func (BucketLifecycleRuleNoncurrentVersionExpirationArgs) ElementType ¶
func (BucketLifecycleRuleNoncurrentVersionExpirationArgs) ElementType() reflect.Type
func (BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutput ¶
func (i BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutput() BucketLifecycleRuleNoncurrentVersionExpirationOutput
func (BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext ¶
func (i BucketLifecycleRuleNoncurrentVersionExpirationArgs) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationOutput
type BucketLifecycleRuleNoncurrentVersionExpirationArray ¶
type BucketLifecycleRuleNoncurrentVersionExpirationArray []BucketLifecycleRuleNoncurrentVersionExpirationInput
func (BucketLifecycleRuleNoncurrentVersionExpirationArray) ElementType ¶
func (BucketLifecycleRuleNoncurrentVersionExpirationArray) ElementType() reflect.Type
func (BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput ¶
func (i BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput() BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
func (BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext ¶
func (i BucketLifecycleRuleNoncurrentVersionExpirationArray) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
type BucketLifecycleRuleNoncurrentVersionExpirationArrayInput ¶
type BucketLifecycleRuleNoncurrentVersionExpirationArrayInput interface { pulumi.Input ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput() BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext(context.Context) BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput }
BucketLifecycleRuleNoncurrentVersionExpirationArrayInput is an input type that accepts BucketLifecycleRuleNoncurrentVersionExpirationArray and BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleNoncurrentVersionExpirationArrayInput` via:
BucketLifecycleRuleNoncurrentVersionExpirationArray{ BucketLifecycleRuleNoncurrentVersionExpirationArgs{...} }
type BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput ¶
type BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ElementType ¶
func (BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ElementType() reflect.Type
func (BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput ¶
func (o BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutput() BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
func (BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext ¶
func (o BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
type BucketLifecycleRuleNoncurrentVersionExpirationInput ¶
type BucketLifecycleRuleNoncurrentVersionExpirationInput interface { pulumi.Input ToBucketLifecycleRuleNoncurrentVersionExpirationOutput() BucketLifecycleRuleNoncurrentVersionExpirationOutput ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext(context.Context) BucketLifecycleRuleNoncurrentVersionExpirationOutput }
BucketLifecycleRuleNoncurrentVersionExpirationInput is an input type that accepts BucketLifecycleRuleNoncurrentVersionExpirationArgs and BucketLifecycleRuleNoncurrentVersionExpirationOutput values. You can construct a concrete instance of `BucketLifecycleRuleNoncurrentVersionExpirationInput` via:
BucketLifecycleRuleNoncurrentVersionExpirationArgs{...}
type BucketLifecycleRuleNoncurrentVersionExpirationOutput ¶
type BucketLifecycleRuleNoncurrentVersionExpirationOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) Days ¶
func (o BucketLifecycleRuleNoncurrentVersionExpirationOutput) Days() pulumi.IntOutput
Specifies the number of days when noncurrent object versions are automatically deleted.
func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) ElementType ¶
func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) ElementType() reflect.Type
func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationOutput ¶
func (o BucketLifecycleRuleNoncurrentVersionExpirationOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationOutput() BucketLifecycleRuleNoncurrentVersionExpirationOutput
func (BucketLifecycleRuleNoncurrentVersionExpirationOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext ¶
func (o BucketLifecycleRuleNoncurrentVersionExpirationOutput) ToBucketLifecycleRuleNoncurrentVersionExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionExpirationOutput
type BucketLifecycleRuleNoncurrentVersionTransition ¶
type BucketLifecycleRuleNoncurrentVersionTransition struct { // Specifies the number of days when noncurrent object versions are automatically transitioned // to the specified storage class. Days int `pulumi:"days"` // The class of storage used to store the object. Only `WARM` and `COLD` are // supported. StorageClass string `pulumi:"storageClass"` }
type BucketLifecycleRuleNoncurrentVersionTransitionArgs ¶
type BucketLifecycleRuleNoncurrentVersionTransitionArgs struct { // Specifies the number of days when noncurrent object versions are automatically transitioned // to the specified storage class. Days pulumi.IntInput `pulumi:"days"` // The class of storage used to store the object. Only `WARM` and `COLD` are // supported. StorageClass pulumi.StringInput `pulumi:"storageClass"` }
func (BucketLifecycleRuleNoncurrentVersionTransitionArgs) ElementType ¶
func (BucketLifecycleRuleNoncurrentVersionTransitionArgs) ElementType() reflect.Type
func (BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutput ¶
func (i BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutput() BucketLifecycleRuleNoncurrentVersionTransitionOutput
func (BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext ¶
func (i BucketLifecycleRuleNoncurrentVersionTransitionArgs) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionOutput
type BucketLifecycleRuleNoncurrentVersionTransitionArray ¶
type BucketLifecycleRuleNoncurrentVersionTransitionArray []BucketLifecycleRuleNoncurrentVersionTransitionInput
func (BucketLifecycleRuleNoncurrentVersionTransitionArray) ElementType ¶
func (BucketLifecycleRuleNoncurrentVersionTransitionArray) ElementType() reflect.Type
func (BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput ¶
func (i BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput() BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
func (BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext ¶
func (i BucketLifecycleRuleNoncurrentVersionTransitionArray) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
type BucketLifecycleRuleNoncurrentVersionTransitionArrayInput ¶
type BucketLifecycleRuleNoncurrentVersionTransitionArrayInput interface { pulumi.Input ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput() BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext(context.Context) BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput }
BucketLifecycleRuleNoncurrentVersionTransitionArrayInput is an input type that accepts BucketLifecycleRuleNoncurrentVersionTransitionArray and BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleNoncurrentVersionTransitionArrayInput` via:
BucketLifecycleRuleNoncurrentVersionTransitionArray{ BucketLifecycleRuleNoncurrentVersionTransitionArgs{...} }
type BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput ¶
type BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ElementType ¶
func (BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ElementType() reflect.Type
func (BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput ¶
func (o BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutput() BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
func (BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext ¶
func (o BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
type BucketLifecycleRuleNoncurrentVersionTransitionInput ¶
type BucketLifecycleRuleNoncurrentVersionTransitionInput interface { pulumi.Input ToBucketLifecycleRuleNoncurrentVersionTransitionOutput() BucketLifecycleRuleNoncurrentVersionTransitionOutput ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext(context.Context) BucketLifecycleRuleNoncurrentVersionTransitionOutput }
BucketLifecycleRuleNoncurrentVersionTransitionInput is an input type that accepts BucketLifecycleRuleNoncurrentVersionTransitionArgs and BucketLifecycleRuleNoncurrentVersionTransitionOutput values. You can construct a concrete instance of `BucketLifecycleRuleNoncurrentVersionTransitionInput` via:
BucketLifecycleRuleNoncurrentVersionTransitionArgs{...}
type BucketLifecycleRuleNoncurrentVersionTransitionOutput ¶
type BucketLifecycleRuleNoncurrentVersionTransitionOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) Days ¶
func (o BucketLifecycleRuleNoncurrentVersionTransitionOutput) Days() pulumi.IntOutput
Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) ElementType ¶
func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) ElementType() reflect.Type
func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) StorageClass ¶
func (o BucketLifecycleRuleNoncurrentVersionTransitionOutput) StorageClass() pulumi.StringOutput
The class of storage used to store the object. Only `WARM` and `COLD` are supported.
func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionOutput ¶
func (o BucketLifecycleRuleNoncurrentVersionTransitionOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionOutput() BucketLifecycleRuleNoncurrentVersionTransitionOutput
func (BucketLifecycleRuleNoncurrentVersionTransitionOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext ¶
func (o BucketLifecycleRuleNoncurrentVersionTransitionOutput) ToBucketLifecycleRuleNoncurrentVersionTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleNoncurrentVersionTransitionOutput
type BucketLifecycleRuleOutput ¶
type BucketLifecycleRuleOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleOutput) ElementType ¶
func (BucketLifecycleRuleOutput) ElementType() reflect.Type
func (BucketLifecycleRuleOutput) Enabled ¶
func (o BucketLifecycleRuleOutput) Enabled() pulumi.BoolOutput
Specifies lifecycle rule status.
func (BucketLifecycleRuleOutput) Expirations ¶
func (o BucketLifecycleRuleOutput) Expirations() BucketLifecycleRuleExpirationArrayOutput
Specifies a period when objects that have been last updated are automatically deleted. (documented below).
func (BucketLifecycleRuleOutput) Name ¶
func (o BucketLifecycleRuleOutput) Name() pulumi.StringOutput
Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.
func (BucketLifecycleRuleOutput) NoncurrentVersionExpirations ¶
func (o BucketLifecycleRuleOutput) NoncurrentVersionExpirations() BucketLifecycleRuleNoncurrentVersionExpirationArrayOutput
Specifies a period when noncurrent object versions are automatically deleted. (documented below).
func (BucketLifecycleRuleOutput) NoncurrentVersionTransitions ¶
func (o BucketLifecycleRuleOutput) NoncurrentVersionTransitions() BucketLifecycleRuleNoncurrentVersionTransitionArrayOutput
Specifies a period when noncurrent object versions are automatically transitioned to `WARM` or `COLD` storage class (documented below).
func (BucketLifecycleRuleOutput) Prefix ¶
func (o BucketLifecycleRuleOutput) Prefix() pulumi.StringPtrOutput
Object key prefix identifying one or more objects to which the rule applies. If omitted, all objects in the bucket will be managed by the lifecycle rule. The prefix cannot start or end with a slash (/), cannot have consecutive slashes (/), and cannot contain the following special characters: \:*?"<>|.
func (BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutput ¶
func (o BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput
func (BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutputWithContext ¶
func (o BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutputWithContext(ctx context.Context) BucketLifecycleRuleOutput
func (BucketLifecycleRuleOutput) Transitions ¶
func (o BucketLifecycleRuleOutput) Transitions() BucketLifecycleRuleTransitionArrayOutput
Specifies a period when objects that have been last updated are automatically transitioned to `WARM` or `COLD` storage class (documented below).
type BucketLifecycleRuleTransition ¶
type BucketLifecycleRuleTransition struct { // Specifies the number of days when objects that have been last updated are automatically // transitioned to the specified storage class. Days int `pulumi:"days"` // The class of storage used to store the object. Only `WARM` and `COLD` are // supported. StorageClass string `pulumi:"storageClass"` }
type BucketLifecycleRuleTransitionArgs ¶
type BucketLifecycleRuleTransitionArgs struct { // Specifies the number of days when objects that have been last updated are automatically // transitioned to the specified storage class. Days pulumi.IntInput `pulumi:"days"` // The class of storage used to store the object. Only `WARM` and `COLD` are // supported. StorageClass pulumi.StringInput `pulumi:"storageClass"` }
func (BucketLifecycleRuleTransitionArgs) ElementType ¶
func (BucketLifecycleRuleTransitionArgs) ElementType() reflect.Type
func (BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutput ¶
func (i BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput
func (BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutputWithContext ¶
func (i BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionOutput
type BucketLifecycleRuleTransitionArray ¶
type BucketLifecycleRuleTransitionArray []BucketLifecycleRuleTransitionInput
func (BucketLifecycleRuleTransitionArray) ElementType ¶
func (BucketLifecycleRuleTransitionArray) ElementType() reflect.Type
func (BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutput ¶
func (i BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput
func (BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutputWithContext ¶
func (i BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionArrayOutput
type BucketLifecycleRuleTransitionArrayInput ¶
type BucketLifecycleRuleTransitionArrayInput interface { pulumi.Input ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput ToBucketLifecycleRuleTransitionArrayOutputWithContext(context.Context) BucketLifecycleRuleTransitionArrayOutput }
BucketLifecycleRuleTransitionArrayInput is an input type that accepts BucketLifecycleRuleTransitionArray and BucketLifecycleRuleTransitionArrayOutput values. You can construct a concrete instance of `BucketLifecycleRuleTransitionArrayInput` via:
BucketLifecycleRuleTransitionArray{ BucketLifecycleRuleTransitionArgs{...} }
type BucketLifecycleRuleTransitionArrayOutput ¶
type BucketLifecycleRuleTransitionArrayOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleTransitionArrayOutput) ElementType ¶
func (BucketLifecycleRuleTransitionArrayOutput) ElementType() reflect.Type
func (BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutput ¶
func (o BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput
func (BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutputWithContext ¶
func (o BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionArrayOutput
type BucketLifecycleRuleTransitionInput ¶
type BucketLifecycleRuleTransitionInput interface { pulumi.Input ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput ToBucketLifecycleRuleTransitionOutputWithContext(context.Context) BucketLifecycleRuleTransitionOutput }
BucketLifecycleRuleTransitionInput is an input type that accepts BucketLifecycleRuleTransitionArgs and BucketLifecycleRuleTransitionOutput values. You can construct a concrete instance of `BucketLifecycleRuleTransitionInput` via:
BucketLifecycleRuleTransitionArgs{...}
type BucketLifecycleRuleTransitionOutput ¶
type BucketLifecycleRuleTransitionOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleTransitionOutput) Days ¶
func (o BucketLifecycleRuleTransitionOutput) Days() pulumi.IntOutput
Specifies the number of days when objects that have been last updated are automatically transitioned to the specified storage class.
func (BucketLifecycleRuleTransitionOutput) ElementType ¶
func (BucketLifecycleRuleTransitionOutput) ElementType() reflect.Type
func (BucketLifecycleRuleTransitionOutput) StorageClass ¶
func (o BucketLifecycleRuleTransitionOutput) StorageClass() pulumi.StringOutput
The class of storage used to store the object. Only `WARM` and `COLD` are supported.
func (BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutput ¶
func (o BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput
func (BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutputWithContext ¶
func (o BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionOutput
type BucketLogging ¶
type BucketLoggingArgs ¶
type BucketLoggingArgs struct { // The name of the bucket that will receive the log objects. The acl policy of the // target bucket should be `log-delivery-write`. TargetBucket pulumi.StringInput `pulumi:"targetBucket"` // To specify a key prefix for log objects. TargetPrefix pulumi.StringPtrInput `pulumi:"targetPrefix"` }
func (BucketLoggingArgs) ElementType ¶
func (BucketLoggingArgs) ElementType() reflect.Type
func (BucketLoggingArgs) ToBucketLoggingOutput ¶
func (i BucketLoggingArgs) ToBucketLoggingOutput() BucketLoggingOutput
func (BucketLoggingArgs) ToBucketLoggingOutputWithContext ¶
func (i BucketLoggingArgs) ToBucketLoggingOutputWithContext(ctx context.Context) BucketLoggingOutput
type BucketLoggingArray ¶
type BucketLoggingArray []BucketLoggingInput
func (BucketLoggingArray) ElementType ¶
func (BucketLoggingArray) ElementType() reflect.Type
func (BucketLoggingArray) ToBucketLoggingArrayOutput ¶
func (i BucketLoggingArray) ToBucketLoggingArrayOutput() BucketLoggingArrayOutput
func (BucketLoggingArray) ToBucketLoggingArrayOutputWithContext ¶
func (i BucketLoggingArray) ToBucketLoggingArrayOutputWithContext(ctx context.Context) BucketLoggingArrayOutput
type BucketLoggingArrayInput ¶
type BucketLoggingArrayInput interface { pulumi.Input ToBucketLoggingArrayOutput() BucketLoggingArrayOutput ToBucketLoggingArrayOutputWithContext(context.Context) BucketLoggingArrayOutput }
BucketLoggingArrayInput is an input type that accepts BucketLoggingArray and BucketLoggingArrayOutput values. You can construct a concrete instance of `BucketLoggingArrayInput` via:
BucketLoggingArray{ BucketLoggingArgs{...} }
type BucketLoggingArrayOutput ¶
type BucketLoggingArrayOutput struct{ *pulumi.OutputState }
func (BucketLoggingArrayOutput) ElementType ¶
func (BucketLoggingArrayOutput) ElementType() reflect.Type
func (BucketLoggingArrayOutput) Index ¶
func (o BucketLoggingArrayOutput) Index(i pulumi.IntInput) BucketLoggingOutput
func (BucketLoggingArrayOutput) ToBucketLoggingArrayOutput ¶
func (o BucketLoggingArrayOutput) ToBucketLoggingArrayOutput() BucketLoggingArrayOutput
func (BucketLoggingArrayOutput) ToBucketLoggingArrayOutputWithContext ¶
func (o BucketLoggingArrayOutput) ToBucketLoggingArrayOutputWithContext(ctx context.Context) BucketLoggingArrayOutput
type BucketLoggingInput ¶
type BucketLoggingInput interface { pulumi.Input ToBucketLoggingOutput() BucketLoggingOutput ToBucketLoggingOutputWithContext(context.Context) BucketLoggingOutput }
BucketLoggingInput is an input type that accepts BucketLoggingArgs and BucketLoggingOutput values. You can construct a concrete instance of `BucketLoggingInput` via:
BucketLoggingArgs{...}
type BucketLoggingOutput ¶
type BucketLoggingOutput struct{ *pulumi.OutputState }
func (BucketLoggingOutput) ElementType ¶
func (BucketLoggingOutput) ElementType() reflect.Type
func (BucketLoggingOutput) TargetBucket ¶
func (o BucketLoggingOutput) TargetBucket() pulumi.StringOutput
The name of the bucket that will receive the log objects. The acl policy of the target bucket should be `log-delivery-write`.
func (BucketLoggingOutput) TargetPrefix ¶
func (o BucketLoggingOutput) TargetPrefix() pulumi.StringPtrOutput
To specify a key prefix for log objects.
func (BucketLoggingOutput) ToBucketLoggingOutput ¶
func (o BucketLoggingOutput) ToBucketLoggingOutput() BucketLoggingOutput
func (BucketLoggingOutput) ToBucketLoggingOutputWithContext ¶
func (o BucketLoggingOutput) ToBucketLoggingOutputWithContext(ctx context.Context) BucketLoggingOutput
type BucketMap ¶
type BucketMap map[string]BucketInput
func (BucketMap) ElementType ¶
func (BucketMap) ToBucketMapOutput ¶
func (i BucketMap) ToBucketMapOutput() BucketMapOutput
func (BucketMap) ToBucketMapOutputWithContext ¶
func (i BucketMap) ToBucketMapOutputWithContext(ctx context.Context) BucketMapOutput
type BucketMapInput ¶
type BucketMapInput interface { pulumi.Input ToBucketMapOutput() BucketMapOutput ToBucketMapOutputWithContext(context.Context) BucketMapOutput }
BucketMapInput is an input type that accepts BucketMap and BucketMapOutput values. You can construct a concrete instance of `BucketMapInput` via:
BucketMap{ "key": BucketArgs{...} }
type BucketMapOutput ¶
type BucketMapOutput struct{ *pulumi.OutputState }
func (BucketMapOutput) ElementType ¶
func (BucketMapOutput) ElementType() reflect.Type
func (BucketMapOutput) MapIndex ¶
func (o BucketMapOutput) MapIndex(k pulumi.StringInput) BucketOutput
func (BucketMapOutput) ToBucketMapOutput ¶
func (o BucketMapOutput) ToBucketMapOutput() BucketMapOutput
func (BucketMapOutput) ToBucketMapOutputWithContext ¶
func (o BucketMapOutput) ToBucketMapOutputWithContext(ctx context.Context) BucketMapOutput
type BucketObject ¶
type BucketObject struct { pulumi.CustomResourceState // The ACL policy to apply. Defaults to `private`. Acl pulumi.StringPtrOutput `pulumi:"acl"` // The name of the bucket to put the file in. Bucket pulumi.StringOutput `pulumi:"bucket"` // The literal content being uploaded to the bucket. Content pulumi.StringPtrOutput `pulumi:"content"` // A standard MIME type describing the format of the object data, e.g. // application/octet-stream. All Valid MIME Types are valid for this input. ContentType pulumi.StringOutput `pulumi:"contentType"` // Whether enable server-side encryption of the object in SSE-KMS mode. Encryption pulumi.BoolPtrOutput `pulumi:"encryption"` // Specifies the unique identifier of the object content. It can be used to trigger updates. // The only meaningful value is `md5(file("pathToFile"))`. Etag pulumi.StringOutput `pulumi:"etag"` // The name of the object once it is in the bucket. Key pulumi.StringOutput `pulumi:"key"` // The ID of the kms key. If omitted, the default master key will be used. KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"` // The region in which to create the OBS bucket object resource. If omitted, the // provider-level region will be used. Changing this creates a new OBS bucket object resource. Region pulumi.StringOutput `pulumi:"region"` // the size of the object in bytes. Size pulumi.IntOutput `pulumi:"size"` // The path to the source file being uploaded to the bucket. Source pulumi.StringPtrOutput `pulumi:"source"` // Specifies the storage class of the object. Defaults to `STANDARD`. StorageClass pulumi.StringOutput `pulumi:"storageClass"` // A unique version ID value for the object, if bucket versioning is enabled. VersionId pulumi.StringOutput `pulumi:"versionId"` }
Provides an OBS bucket object resource.
## Example Usage ### Uploading to a bucket
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Obs.NewBucketObject(ctx, "object", &Obs.BucketObjectArgs{ Bucket: pulumi.String("your_bucket_name"), Content: pulumi.String("some object content"), ContentType: pulumi.String("application/xml"), Key: pulumi.String("new_key_from_content"), }) if err != nil { return err } return nil }) }
``` ### Uploading a file to a bucket
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { examplebucket, err := Obs.NewBucket(ctx, "examplebucket", &Obs.BucketArgs{ Bucket: pulumi.String("examplebuckettftest"), Acl: pulumi.String("private"), }) if err != nil { return err } _, err = Obs.NewBucketObject(ctx, "object", &Obs.BucketObjectArgs{ Bucket: examplebucket.Bucket, Key: pulumi.String("new_key_from_file"), Source: pulumi.String("index.html"), }) if err != nil { return err } return nil }) }
``` ### Server Side Encryption with OBS Default Master Key
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Obs.NewBucketObject(ctx, "examplebucketObject", &Obs.BucketObjectArgs{ Bucket: pulumi.String("your_bucket_name"), Encryption: pulumi.Bool(true), Key: pulumi.String("someobject"), Source: pulumi.String("index.html"), }) if err != nil { return err } return nil }) }
```
## Import
OBS bucket object can be imported using the bucket and key separated by a slash, e.g.
```sh
$ pulumi import huaweicloud:Obs/bucketObject:BucketObject object bucket/key
```
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`encryption`, `source`, `acl` and `kms_key_id`. It is generally recommended running `terraform plan` after importing an object. You can then decide if changes should be applied to the object, or the resource definition should be updated to align with the object. Also you can ignore changes as below. resource "huaweicloud_obs_bucket_object" "object" { ... lifecycle { ignore_changes = [ encryption, source, acl, kms_key_id, ] } }
func GetBucketObject ¶
func GetBucketObject(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BucketObjectState, opts ...pulumi.ResourceOption) (*BucketObject, error)
GetBucketObject gets an existing BucketObject resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewBucketObject ¶
func NewBucketObject(ctx *pulumi.Context, name string, args *BucketObjectArgs, opts ...pulumi.ResourceOption) (*BucketObject, error)
NewBucketObject registers a new resource with the given unique name, arguments, and options.
func (*BucketObject) ElementType ¶
func (*BucketObject) ElementType() reflect.Type
func (*BucketObject) ToBucketObjectOutput ¶
func (i *BucketObject) ToBucketObjectOutput() BucketObjectOutput
func (*BucketObject) ToBucketObjectOutputWithContext ¶
func (i *BucketObject) ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput
type BucketObjectArgs ¶
type BucketObjectArgs struct { // The ACL policy to apply. Defaults to `private`. Acl pulumi.StringPtrInput // The name of the bucket to put the file in. Bucket pulumi.StringInput // The literal content being uploaded to the bucket. Content pulumi.StringPtrInput // A standard MIME type describing the format of the object data, e.g. // application/octet-stream. All Valid MIME Types are valid for this input. ContentType pulumi.StringPtrInput // Whether enable server-side encryption of the object in SSE-KMS mode. Encryption pulumi.BoolPtrInput // Specifies the unique identifier of the object content. It can be used to trigger updates. // The only meaningful value is `md5(file("pathToFile"))`. Etag pulumi.StringPtrInput // The name of the object once it is in the bucket. Key pulumi.StringInput // The ID of the kms key. If omitted, the default master key will be used. KmsKeyId pulumi.StringPtrInput // The region in which to create the OBS bucket object resource. If omitted, the // provider-level region will be used. Changing this creates a new OBS bucket object resource. Region pulumi.StringPtrInput // The path to the source file being uploaded to the bucket. Source pulumi.StringPtrInput // Specifies the storage class of the object. Defaults to `STANDARD`. StorageClass pulumi.StringPtrInput }
The set of arguments for constructing a BucketObject resource.
func (BucketObjectArgs) ElementType ¶
func (BucketObjectArgs) ElementType() reflect.Type
type BucketObjectArray ¶
type BucketObjectArray []BucketObjectInput
func (BucketObjectArray) ElementType ¶
func (BucketObjectArray) ElementType() reflect.Type
func (BucketObjectArray) ToBucketObjectArrayOutput ¶
func (i BucketObjectArray) ToBucketObjectArrayOutput() BucketObjectArrayOutput
func (BucketObjectArray) ToBucketObjectArrayOutputWithContext ¶
func (i BucketObjectArray) ToBucketObjectArrayOutputWithContext(ctx context.Context) BucketObjectArrayOutput
type BucketObjectArrayInput ¶
type BucketObjectArrayInput interface { pulumi.Input ToBucketObjectArrayOutput() BucketObjectArrayOutput ToBucketObjectArrayOutputWithContext(context.Context) BucketObjectArrayOutput }
BucketObjectArrayInput is an input type that accepts BucketObjectArray and BucketObjectArrayOutput values. You can construct a concrete instance of `BucketObjectArrayInput` via:
BucketObjectArray{ BucketObjectArgs{...} }
type BucketObjectArrayOutput ¶
type BucketObjectArrayOutput struct{ *pulumi.OutputState }
func (BucketObjectArrayOutput) ElementType ¶
func (BucketObjectArrayOutput) ElementType() reflect.Type
func (BucketObjectArrayOutput) Index ¶
func (o BucketObjectArrayOutput) Index(i pulumi.IntInput) BucketObjectOutput
func (BucketObjectArrayOutput) ToBucketObjectArrayOutput ¶
func (o BucketObjectArrayOutput) ToBucketObjectArrayOutput() BucketObjectArrayOutput
func (BucketObjectArrayOutput) ToBucketObjectArrayOutputWithContext ¶
func (o BucketObjectArrayOutput) ToBucketObjectArrayOutputWithContext(ctx context.Context) BucketObjectArrayOutput
type BucketObjectInput ¶
type BucketObjectInput interface { pulumi.Input ToBucketObjectOutput() BucketObjectOutput ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput }
type BucketObjectMap ¶
type BucketObjectMap map[string]BucketObjectInput
func (BucketObjectMap) ElementType ¶
func (BucketObjectMap) ElementType() reflect.Type
func (BucketObjectMap) ToBucketObjectMapOutput ¶
func (i BucketObjectMap) ToBucketObjectMapOutput() BucketObjectMapOutput
func (BucketObjectMap) ToBucketObjectMapOutputWithContext ¶
func (i BucketObjectMap) ToBucketObjectMapOutputWithContext(ctx context.Context) BucketObjectMapOutput
type BucketObjectMapInput ¶
type BucketObjectMapInput interface { pulumi.Input ToBucketObjectMapOutput() BucketObjectMapOutput ToBucketObjectMapOutputWithContext(context.Context) BucketObjectMapOutput }
BucketObjectMapInput is an input type that accepts BucketObjectMap and BucketObjectMapOutput values. You can construct a concrete instance of `BucketObjectMapInput` via:
BucketObjectMap{ "key": BucketObjectArgs{...} }
type BucketObjectMapOutput ¶
type BucketObjectMapOutput struct{ *pulumi.OutputState }
func (BucketObjectMapOutput) ElementType ¶
func (BucketObjectMapOutput) ElementType() reflect.Type
func (BucketObjectMapOutput) MapIndex ¶
func (o BucketObjectMapOutput) MapIndex(k pulumi.StringInput) BucketObjectOutput
func (BucketObjectMapOutput) ToBucketObjectMapOutput ¶
func (o BucketObjectMapOutput) ToBucketObjectMapOutput() BucketObjectMapOutput
func (BucketObjectMapOutput) ToBucketObjectMapOutputWithContext ¶
func (o BucketObjectMapOutput) ToBucketObjectMapOutputWithContext(ctx context.Context) BucketObjectMapOutput
type BucketObjectOutput ¶
type BucketObjectOutput struct{ *pulumi.OutputState }
func (BucketObjectOutput) Acl ¶
func (o BucketObjectOutput) Acl() pulumi.StringPtrOutput
The ACL policy to apply. Defaults to `private`.
func (BucketObjectOutput) Bucket ¶
func (o BucketObjectOutput) Bucket() pulumi.StringOutput
The name of the bucket to put the file in.
func (BucketObjectOutput) Content ¶
func (o BucketObjectOutput) Content() pulumi.StringPtrOutput
The literal content being uploaded to the bucket.
func (BucketObjectOutput) ContentType ¶
func (o BucketObjectOutput) ContentType() pulumi.StringOutput
A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
func (BucketObjectOutput) ElementType ¶
func (BucketObjectOutput) ElementType() reflect.Type
func (BucketObjectOutput) Encryption ¶
func (o BucketObjectOutput) Encryption() pulumi.BoolPtrOutput
Whether enable server-side encryption of the object in SSE-KMS mode.
func (BucketObjectOutput) Etag ¶
func (o BucketObjectOutput) Etag() pulumi.StringOutput
Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is `md5(file("pathToFile"))`.
func (BucketObjectOutput) Key ¶
func (o BucketObjectOutput) Key() pulumi.StringOutput
The name of the object once it is in the bucket.
func (BucketObjectOutput) KmsKeyId ¶
func (o BucketObjectOutput) KmsKeyId() pulumi.StringPtrOutput
The ID of the kms key. If omitted, the default master key will be used.
func (BucketObjectOutput) Region ¶
func (o BucketObjectOutput) Region() pulumi.StringOutput
The region in which to create the OBS bucket object resource. If omitted, the provider-level region will be used. Changing this creates a new OBS bucket object resource.
func (BucketObjectOutput) Size ¶
func (o BucketObjectOutput) Size() pulumi.IntOutput
the size of the object in bytes.
func (BucketObjectOutput) Source ¶
func (o BucketObjectOutput) Source() pulumi.StringPtrOutput
The path to the source file being uploaded to the bucket.
func (BucketObjectOutput) StorageClass ¶
func (o BucketObjectOutput) StorageClass() pulumi.StringOutput
Specifies the storage class of the object. Defaults to `STANDARD`.
func (BucketObjectOutput) ToBucketObjectOutput ¶
func (o BucketObjectOutput) ToBucketObjectOutput() BucketObjectOutput
func (BucketObjectOutput) ToBucketObjectOutputWithContext ¶
func (o BucketObjectOutput) ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput
func (BucketObjectOutput) VersionId ¶
func (o BucketObjectOutput) VersionId() pulumi.StringOutput
A unique version ID value for the object, if bucket versioning is enabled.
type BucketObjectState ¶
type BucketObjectState struct { // The ACL policy to apply. Defaults to `private`. Acl pulumi.StringPtrInput // The name of the bucket to put the file in. Bucket pulumi.StringPtrInput // The literal content being uploaded to the bucket. Content pulumi.StringPtrInput // A standard MIME type describing the format of the object data, e.g. // application/octet-stream. All Valid MIME Types are valid for this input. ContentType pulumi.StringPtrInput // Whether enable server-side encryption of the object in SSE-KMS mode. Encryption pulumi.BoolPtrInput // Specifies the unique identifier of the object content. It can be used to trigger updates. // The only meaningful value is `md5(file("pathToFile"))`. Etag pulumi.StringPtrInput // The name of the object once it is in the bucket. Key pulumi.StringPtrInput // The ID of the kms key. If omitted, the default master key will be used. KmsKeyId pulumi.StringPtrInput // The region in which to create the OBS bucket object resource. If omitted, the // provider-level region will be used. Changing this creates a new OBS bucket object resource. Region pulumi.StringPtrInput // the size of the object in bytes. Size pulumi.IntPtrInput // The path to the source file being uploaded to the bucket. Source pulumi.StringPtrInput // Specifies the storage class of the object. Defaults to `STANDARD`. StorageClass pulumi.StringPtrInput // A unique version ID value for the object, if bucket versioning is enabled. VersionId pulumi.StringPtrInput }
func (BucketObjectState) ElementType ¶
func (BucketObjectState) ElementType() reflect.Type
type BucketOutput ¶
type BucketOutput struct{ *pulumi.OutputState }
func (BucketOutput) Acl ¶
func (o BucketOutput) Acl() pulumi.StringPtrOutput
Specifies the ACL policy for a bucket. The predefined common policies are as follows: "private", "public-read", "public-read-write" and "log-delivery-write". Defaults to `private`.
func (BucketOutput) Bucket ¶
func (o BucketOutput) Bucket() pulumi.StringOutput
Specifies the name of the bucket. Changing this parameter will create a new resource. A bucket must be named according to the globally applied DNS naming regulations as follows:
- The name must be globally unique in OBS.
- The name must contain 3 to 63 characters. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.
- The name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (.) or contain a period (.) and a hyphen (-) adjacent to each other.
- The name cannot be an IP address.
- If the name contains any periods (.), a security certificate verification message may appear when you access the bucket or its objects by entering a domain name.
func (BucketOutput) BucketDomainName ¶
func (o BucketOutput) BucketDomainName() pulumi.StringOutput
The bucket domain name. Will be of format `bucketname.obs.region.myhuaweicloud.com`.
func (BucketOutput) BucketVersion ¶
func (o BucketOutput) BucketVersion() pulumi.StringOutput
The OBS version of the bucket.
func (BucketOutput) CorsRules ¶
func (o BucketOutput) CorsRules() BucketCorsRuleArrayOutput
A rule of Cross-Origin Resource Sharing (documented below).
func (BucketOutput) ElementType ¶
func (BucketOutput) ElementType() reflect.Type
func (BucketOutput) Encryption ¶
func (o BucketOutput) Encryption() pulumi.BoolPtrOutput
Whether enable default server-side encryption of the bucket in SSE-KMS mode.
func (BucketOutput) EnterpriseProjectId ¶
func (o BucketOutput) EnterpriseProjectId() pulumi.StringOutput
Specifies the enterprise project id of the OBS bucket. Defaults to `0`.
func (BucketOutput) ForceDestroy ¶
func (o BucketOutput) ForceDestroy() pulumi.BoolPtrOutput
A boolean that indicates all objects should be deleted from the bucket, so that the bucket can be destroyed without error. Default to `false`.
func (BucketOutput) KmsKeyId ¶
func (o BucketOutput) KmsKeyId() pulumi.StringPtrOutput
Specifies the ID of a KMS key. If omitted, the default master key will be used.
func (BucketOutput) KmsKeyProjectId ¶
func (o BucketOutput) KmsKeyProjectId() pulumi.StringOutput
Specifies the project ID to which the KMS key belongs. If omitted, the ID of the provider-level project will be used.
func (BucketOutput) LifecycleRules ¶
func (o BucketOutput) LifecycleRules() BucketLifecycleRuleArrayOutput
A configuration of object lifecycle management (documented below).
func (BucketOutput) Loggings ¶
func (o BucketOutput) Loggings() BucketLoggingArrayOutput
A settings of bucket logging (documented below).
func (BucketOutput) MultiAz ¶
func (o BucketOutput) MultiAz() pulumi.BoolOutput
Whether enable the multi-AZ mode for the bucket. When the multi-AZ mode is enabled, data in the bucket is duplicated and stored in multiple AZs.
func (BucketOutput) ParallelFs ¶
func (o BucketOutput) ParallelFs() pulumi.BoolPtrOutput
Whether enable a bucket as a parallel file system. Changing this will create a new bucket.
func (BucketOutput) Policy ¶
func (o BucketOutput) Policy() pulumi.StringOutput
Specifies the text of the bucket policy in JSON format. For more information about obs format bucket policy, see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).
func (BucketOutput) PolicyFormat ¶
func (o BucketOutput) PolicyFormat() pulumi.StringPtrOutput
Specifies the policy format, the supported values are *obs* and *s3*. Defaults to *obs*.
func (BucketOutput) Quota ¶
func (o BucketOutput) Quota() pulumi.IntPtrOutput
Specifies bucket storage quota. Must be a positive integer in the unit of byte. The maximum storage quota is 2<sup>63</sup> – 1 bytes. The default bucket storage quota is 0, indicating that the bucket storage quota is not limited.
func (BucketOutput) Region ¶
func (o BucketOutput) Region() pulumi.StringOutput
Specifies the region where this bucket will be created. If not specified, used the region by the provider. Changing this will create a new bucket.
func (BucketOutput) StorageClass ¶
func (o BucketOutput) StorageClass() pulumi.StringPtrOutput
Specifies the storage class of the bucket. OBS provides three storage classes: "STANDARD", "WARM" (Infrequent Access) and "COLD" (Archive). Defaults to `STANDARD`.
func (BucketOutput) StorageInfos ¶ added in v0.0.8
func (o BucketOutput) StorageInfos() BucketStorageInfoArrayOutput
The OBS storage info of the bucket. The object structure is documented below.
func (BucketOutput) Tags ¶
func (o BucketOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
func (BucketOutput) ToBucketOutput ¶
func (o BucketOutput) ToBucketOutput() BucketOutput
func (BucketOutput) ToBucketOutputWithContext ¶
func (o BucketOutput) ToBucketOutputWithContext(ctx context.Context) BucketOutput
func (BucketOutput) Versioning ¶
func (o BucketOutput) Versioning() pulumi.BoolPtrOutput
Whether enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
func (BucketOutput) Website ¶
func (o BucketOutput) Website() BucketWebsitePtrOutput
A website object (documented below).
type BucketPolicy ¶
type BucketPolicy struct { pulumi.CustomResourceState // Specifies the name of the bucket to which to apply the policy. Bucket pulumi.StringOutput `pulumi:"bucket"` // Specifies the text of the bucket policy in JSON format. For more information about obs // format bucket policy, // see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html). Policy pulumi.StringOutput `pulumi:"policy"` // Specifies the policy format, the supported values are *obs* and *s3*. Defaults // to *obs* . PolicyFormat pulumi.StringPtrOutput `pulumi:"policyFormat"` // The region in which to create the OBS bucket policy resource. If omitted, the // provider-level region will be used. Changing this creates a new OBS bucket policy resource. Region pulumi.StringOutput `pulumi:"region"` }
Attaches a policy to an OBS bucket resource.
## Example Usage ### Policy with OBS format
```go package main
import (
"fmt" "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { bucket, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{ Bucket: pulumi.String("my-test-bucket"), }) if err != nil { return err } _, err = Obs.NewBucketPolicy(ctx, "policy", &Obs.BucketPolicyArgs{ Bucket: bucket.ID(), Policy: pulumi.String(fmt.Sprintf(`{ "Statement": [ { "Sid": "AddPerm", "Effect": "Allow", "Principal": {"ID": "*"}, "Action": ["GetObject"], "Resource": "my-test-bucket/*" } ] }
`)),
}) if err != nil { return err } return nil }) }
``` ### Policy with S3 format
```go package main
import (
"fmt" "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { bucket, err := Obs.NewBucket(ctx, "bucket", &Obs.BucketArgs{ Bucket: pulumi.String("my-test-bucket"), }) if err != nil { return err } _, err = Obs.NewBucketPolicy(ctx, "s3Policy", &Obs.BucketPolicyArgs{ Bucket: bucket.ID(), PolicyFormat: pulumi.String("s3"), Policy: pulumi.String(fmt.Sprintf(`{ "Version": "2008-10-17", "Id": "MYBUCKETPOLICY", "Statement": [ { "Sid": "IPAllow", "Effect": "Allow", "Principal": "*", "Action": "s3:*", "Resource": "arn:aws:s3:::my-test-bucket/*", "Condition": { "IpAddress": {"aws:SourceIp": "8.8.8.8/32"} } } ] }
`)),
}) if err != nil { return err } return nil }) }
```
## Import
OBS format bucket policy can be imported using the `<bucket>`, e.g.
```sh
$ pulumi import huaweicloud:Obs/bucketPolicy:BucketPolicy policy <bucket-name>
```
S3 foramt bucket policy can be imported using the `<bucket>` and "s3" by a slash, e.g.
```sh
$ pulumi import huaweicloud:Obs/bucketPolicy:BucketPolicy s3_policy <bucket-name>/s3
```
func GetBucketPolicy ¶
func GetBucketPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BucketPolicyState, opts ...pulumi.ResourceOption) (*BucketPolicy, error)
GetBucketPolicy gets an existing BucketPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewBucketPolicy ¶
func NewBucketPolicy(ctx *pulumi.Context, name string, args *BucketPolicyArgs, opts ...pulumi.ResourceOption) (*BucketPolicy, error)
NewBucketPolicy registers a new resource with the given unique name, arguments, and options.
func (*BucketPolicy) ElementType ¶
func (*BucketPolicy) ElementType() reflect.Type
func (*BucketPolicy) ToBucketPolicyOutput ¶
func (i *BucketPolicy) ToBucketPolicyOutput() BucketPolicyOutput
func (*BucketPolicy) ToBucketPolicyOutputWithContext ¶
func (i *BucketPolicy) ToBucketPolicyOutputWithContext(ctx context.Context) BucketPolicyOutput
type BucketPolicyArgs ¶
type BucketPolicyArgs struct { // Specifies the name of the bucket to which to apply the policy. Bucket pulumi.StringInput // Specifies the text of the bucket policy in JSON format. For more information about obs // format bucket policy, // see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html). Policy pulumi.StringInput // Specifies the policy format, the supported values are *obs* and *s3*. Defaults // to *obs* . PolicyFormat pulumi.StringPtrInput // The region in which to create the OBS bucket policy resource. If omitted, the // provider-level region will be used. Changing this creates a new OBS bucket policy resource. Region pulumi.StringPtrInput }
The set of arguments for constructing a BucketPolicy resource.
func (BucketPolicyArgs) ElementType ¶
func (BucketPolicyArgs) ElementType() reflect.Type
type BucketPolicyArray ¶
type BucketPolicyArray []BucketPolicyInput
func (BucketPolicyArray) ElementType ¶
func (BucketPolicyArray) ElementType() reflect.Type
func (BucketPolicyArray) ToBucketPolicyArrayOutput ¶
func (i BucketPolicyArray) ToBucketPolicyArrayOutput() BucketPolicyArrayOutput
func (BucketPolicyArray) ToBucketPolicyArrayOutputWithContext ¶
func (i BucketPolicyArray) ToBucketPolicyArrayOutputWithContext(ctx context.Context) BucketPolicyArrayOutput
type BucketPolicyArrayInput ¶
type BucketPolicyArrayInput interface { pulumi.Input ToBucketPolicyArrayOutput() BucketPolicyArrayOutput ToBucketPolicyArrayOutputWithContext(context.Context) BucketPolicyArrayOutput }
BucketPolicyArrayInput is an input type that accepts BucketPolicyArray and BucketPolicyArrayOutput values. You can construct a concrete instance of `BucketPolicyArrayInput` via:
BucketPolicyArray{ BucketPolicyArgs{...} }
type BucketPolicyArrayOutput ¶
type BucketPolicyArrayOutput struct{ *pulumi.OutputState }
func (BucketPolicyArrayOutput) ElementType ¶
func (BucketPolicyArrayOutput) ElementType() reflect.Type
func (BucketPolicyArrayOutput) Index ¶
func (o BucketPolicyArrayOutput) Index(i pulumi.IntInput) BucketPolicyOutput
func (BucketPolicyArrayOutput) ToBucketPolicyArrayOutput ¶
func (o BucketPolicyArrayOutput) ToBucketPolicyArrayOutput() BucketPolicyArrayOutput
func (BucketPolicyArrayOutput) ToBucketPolicyArrayOutputWithContext ¶
func (o BucketPolicyArrayOutput) ToBucketPolicyArrayOutputWithContext(ctx context.Context) BucketPolicyArrayOutput
type BucketPolicyInput ¶
type BucketPolicyInput interface { pulumi.Input ToBucketPolicyOutput() BucketPolicyOutput ToBucketPolicyOutputWithContext(ctx context.Context) BucketPolicyOutput }
type BucketPolicyMap ¶
type BucketPolicyMap map[string]BucketPolicyInput
func (BucketPolicyMap) ElementType ¶
func (BucketPolicyMap) ElementType() reflect.Type
func (BucketPolicyMap) ToBucketPolicyMapOutput ¶
func (i BucketPolicyMap) ToBucketPolicyMapOutput() BucketPolicyMapOutput
func (BucketPolicyMap) ToBucketPolicyMapOutputWithContext ¶
func (i BucketPolicyMap) ToBucketPolicyMapOutputWithContext(ctx context.Context) BucketPolicyMapOutput
type BucketPolicyMapInput ¶
type BucketPolicyMapInput interface { pulumi.Input ToBucketPolicyMapOutput() BucketPolicyMapOutput ToBucketPolicyMapOutputWithContext(context.Context) BucketPolicyMapOutput }
BucketPolicyMapInput is an input type that accepts BucketPolicyMap and BucketPolicyMapOutput values. You can construct a concrete instance of `BucketPolicyMapInput` via:
BucketPolicyMap{ "key": BucketPolicyArgs{...} }
type BucketPolicyMapOutput ¶
type BucketPolicyMapOutput struct{ *pulumi.OutputState }
func (BucketPolicyMapOutput) ElementType ¶
func (BucketPolicyMapOutput) ElementType() reflect.Type
func (BucketPolicyMapOutput) MapIndex ¶
func (o BucketPolicyMapOutput) MapIndex(k pulumi.StringInput) BucketPolicyOutput
func (BucketPolicyMapOutput) ToBucketPolicyMapOutput ¶
func (o BucketPolicyMapOutput) ToBucketPolicyMapOutput() BucketPolicyMapOutput
func (BucketPolicyMapOutput) ToBucketPolicyMapOutputWithContext ¶
func (o BucketPolicyMapOutput) ToBucketPolicyMapOutputWithContext(ctx context.Context) BucketPolicyMapOutput
type BucketPolicyOutput ¶
type BucketPolicyOutput struct{ *pulumi.OutputState }
func (BucketPolicyOutput) Bucket ¶
func (o BucketPolicyOutput) Bucket() pulumi.StringOutput
Specifies the name of the bucket to which to apply the policy.
func (BucketPolicyOutput) ElementType ¶
func (BucketPolicyOutput) ElementType() reflect.Type
func (BucketPolicyOutput) Policy ¶
func (o BucketPolicyOutput) Policy() pulumi.StringOutput
Specifies the text of the bucket policy in JSON format. For more information about obs format bucket policy, see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html).
func (BucketPolicyOutput) PolicyFormat ¶
func (o BucketPolicyOutput) PolicyFormat() pulumi.StringPtrOutput
Specifies the policy format, the supported values are *obs* and *s3*. Defaults to *obs* .
func (BucketPolicyOutput) Region ¶
func (o BucketPolicyOutput) Region() pulumi.StringOutput
The region in which to create the OBS bucket policy resource. If omitted, the provider-level region will be used. Changing this creates a new OBS bucket policy resource.
func (BucketPolicyOutput) ToBucketPolicyOutput ¶
func (o BucketPolicyOutput) ToBucketPolicyOutput() BucketPolicyOutput
func (BucketPolicyOutput) ToBucketPolicyOutputWithContext ¶
func (o BucketPolicyOutput) ToBucketPolicyOutputWithContext(ctx context.Context) BucketPolicyOutput
type BucketPolicyState ¶
type BucketPolicyState struct { // Specifies the name of the bucket to which to apply the policy. Bucket pulumi.StringPtrInput // Specifies the text of the bucket policy in JSON format. For more information about obs // format bucket policy, // see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html). Policy pulumi.StringPtrInput // Specifies the policy format, the supported values are *obs* and *s3*. Defaults // to *obs* . PolicyFormat pulumi.StringPtrInput // The region in which to create the OBS bucket policy resource. If omitted, the // provider-level region will be used. Changing this creates a new OBS bucket policy resource. Region pulumi.StringPtrInput }
func (BucketPolicyState) ElementType ¶
func (BucketPolicyState) ElementType() reflect.Type
type BucketState ¶
type BucketState struct { // Specifies the ACL policy for a bucket. The predefined common policies are as follows: // "private", "public-read", "public-read-write" and "log-delivery-write". Defaults to `private`. Acl pulumi.StringPtrInput // Specifies the name of the bucket. Changing this parameter will create a new // resource. A bucket must be named according to the globally applied DNS naming regulations as follows: // + The name must be globally unique in OBS. // + The name must contain 3 to 63 characters. Only lowercase letters, digits, hyphens (-), and periods (.) are // allowed. // + The name cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (.) or // contain a period (.) and a hyphen (-) adjacent to each other. // + The name cannot be an IP address. // + If the name contains any periods (.), a security certificate verification message may appear when you access the // bucket or its objects by entering a domain name. Bucket pulumi.StringPtrInput // The bucket domain name. Will be of format `bucketname.obs.region.myhuaweicloud.com`. BucketDomainName pulumi.StringPtrInput // The OBS version of the bucket. BucketVersion pulumi.StringPtrInput // A rule of Cross-Origin Resource Sharing (documented below). CorsRules BucketCorsRuleArrayInput // Whether enable default server-side encryption of the bucket in SSE-KMS mode. Encryption pulumi.BoolPtrInput // Specifies the enterprise project id of the OBS bucket. // Defaults to `0`. EnterpriseProjectId pulumi.StringPtrInput // A boolean that indicates all objects should be deleted from the bucket, so that the // bucket can be destroyed without error. Default to `false`. ForceDestroy pulumi.BoolPtrInput // Specifies the ID of a KMS key. If omitted, the default master key will be used. KmsKeyId pulumi.StringPtrInput // Specifies the project ID to which the KMS key belongs. If omitted, the ID // of the provider-level project will be used. KmsKeyProjectId pulumi.StringPtrInput // A configuration of object lifecycle management (documented below). LifecycleRules BucketLifecycleRuleArrayInput // A settings of bucket logging (documented below). Loggings BucketLoggingArrayInput // Whether enable the multi-AZ mode for the bucket. When the multi-AZ mode is // enabled, data in the bucket is duplicated and stored in multiple AZs. MultiAz pulumi.BoolPtrInput // Whether enable a bucket as a parallel file system. Changing this will // create a new bucket. ParallelFs pulumi.BoolPtrInput // Specifies the text of the bucket policy in JSON format. For more information about obs // format bucket policy, // see the [Developer Guide](https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html). Policy pulumi.StringPtrInput // Specifies the policy format, the supported values are *obs* and *s3*. Defaults // to *obs*. PolicyFormat pulumi.StringPtrInput // Specifies bucket storage quota. Must be a positive integer in the unit of byte. The maximum // storage quota is 2<sup>63</sup> – 1 bytes. The default bucket storage quota is 0, indicating that the bucket storage // quota is not limited. Quota pulumi.IntPtrInput // Specifies the region where this bucket will be created. If not specified, used // the region by the provider. Changing this will create a new bucket. Region pulumi.StringPtrInput // Specifies the storage class of the bucket. OBS provides three storage classes: // "STANDARD", "WARM" (Infrequent Access) and "COLD" (Archive). Defaults to `STANDARD`. StorageClass pulumi.StringPtrInput // The OBS storage info of the bucket. // The object structure is documented below. StorageInfos BucketStorageInfoArrayInput // A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair. Tags pulumi.StringMapInput // Whether enable versioning. Once you version-enable a bucket, it can never return to an // unversioned state. You can, however, suspend versioning on that bucket. Versioning pulumi.BoolPtrInput // A website object (documented below). Website BucketWebsitePtrInput }
func (BucketState) ElementType ¶
func (BucketState) ElementType() reflect.Type
type BucketStorageInfo ¶ added in v0.0.8
type BucketStorageInfoArgs ¶ added in v0.0.8
type BucketStorageInfoArgs struct { // The number of objects stored in the bucket. ObjectNumber pulumi.IntPtrInput `pulumi:"objectNumber"` // The stored size of the bucket. Size pulumi.IntPtrInput `pulumi:"size"` }
func (BucketStorageInfoArgs) ElementType ¶ added in v0.0.8
func (BucketStorageInfoArgs) ElementType() reflect.Type
func (BucketStorageInfoArgs) ToBucketStorageInfoOutput ¶ added in v0.0.8
func (i BucketStorageInfoArgs) ToBucketStorageInfoOutput() BucketStorageInfoOutput
func (BucketStorageInfoArgs) ToBucketStorageInfoOutputWithContext ¶ added in v0.0.8
func (i BucketStorageInfoArgs) ToBucketStorageInfoOutputWithContext(ctx context.Context) BucketStorageInfoOutput
type BucketStorageInfoArray ¶ added in v0.0.8
type BucketStorageInfoArray []BucketStorageInfoInput
func (BucketStorageInfoArray) ElementType ¶ added in v0.0.8
func (BucketStorageInfoArray) ElementType() reflect.Type
func (BucketStorageInfoArray) ToBucketStorageInfoArrayOutput ¶ added in v0.0.8
func (i BucketStorageInfoArray) ToBucketStorageInfoArrayOutput() BucketStorageInfoArrayOutput
func (BucketStorageInfoArray) ToBucketStorageInfoArrayOutputWithContext ¶ added in v0.0.8
func (i BucketStorageInfoArray) ToBucketStorageInfoArrayOutputWithContext(ctx context.Context) BucketStorageInfoArrayOutput
type BucketStorageInfoArrayInput ¶ added in v0.0.8
type BucketStorageInfoArrayInput interface { pulumi.Input ToBucketStorageInfoArrayOutput() BucketStorageInfoArrayOutput ToBucketStorageInfoArrayOutputWithContext(context.Context) BucketStorageInfoArrayOutput }
BucketStorageInfoArrayInput is an input type that accepts BucketStorageInfoArray and BucketStorageInfoArrayOutput values. You can construct a concrete instance of `BucketStorageInfoArrayInput` via:
BucketStorageInfoArray{ BucketStorageInfoArgs{...} }
type BucketStorageInfoArrayOutput ¶ added in v0.0.8
type BucketStorageInfoArrayOutput struct{ *pulumi.OutputState }
func (BucketStorageInfoArrayOutput) ElementType ¶ added in v0.0.8
func (BucketStorageInfoArrayOutput) ElementType() reflect.Type
func (BucketStorageInfoArrayOutput) Index ¶ added in v0.0.8
func (o BucketStorageInfoArrayOutput) Index(i pulumi.IntInput) BucketStorageInfoOutput
func (BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutput ¶ added in v0.0.8
func (o BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutput() BucketStorageInfoArrayOutput
func (BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutputWithContext ¶ added in v0.0.8
func (o BucketStorageInfoArrayOutput) ToBucketStorageInfoArrayOutputWithContext(ctx context.Context) BucketStorageInfoArrayOutput
type BucketStorageInfoInput ¶ added in v0.0.8
type BucketStorageInfoInput interface { pulumi.Input ToBucketStorageInfoOutput() BucketStorageInfoOutput ToBucketStorageInfoOutputWithContext(context.Context) BucketStorageInfoOutput }
BucketStorageInfoInput is an input type that accepts BucketStorageInfoArgs and BucketStorageInfoOutput values. You can construct a concrete instance of `BucketStorageInfoInput` via:
BucketStorageInfoArgs{...}
type BucketStorageInfoOutput ¶ added in v0.0.8
type BucketStorageInfoOutput struct{ *pulumi.OutputState }
func (BucketStorageInfoOutput) ElementType ¶ added in v0.0.8
func (BucketStorageInfoOutput) ElementType() reflect.Type
func (BucketStorageInfoOutput) ObjectNumber ¶ added in v0.0.8
func (o BucketStorageInfoOutput) ObjectNumber() pulumi.IntPtrOutput
The number of objects stored in the bucket.
func (BucketStorageInfoOutput) Size ¶ added in v0.0.8
func (o BucketStorageInfoOutput) Size() pulumi.IntPtrOutput
The stored size of the bucket.
func (BucketStorageInfoOutput) ToBucketStorageInfoOutput ¶ added in v0.0.8
func (o BucketStorageInfoOutput) ToBucketStorageInfoOutput() BucketStorageInfoOutput
func (BucketStorageInfoOutput) ToBucketStorageInfoOutputWithContext ¶ added in v0.0.8
func (o BucketStorageInfoOutput) ToBucketStorageInfoOutputWithContext(ctx context.Context) BucketStorageInfoOutput
type BucketWebsite ¶
type BucketWebsite struct { // Specifies the error page returned when an error occurs during static website // access. Only HTML, JPG, PNG, BMP, and WEBP files under the root directory are supported. ErrorDocument *string `pulumi:"errorDocument"` // Unless using `redirectAllRequestsTo`. Specifies the default homepage of the // static website, only HTML web pages are supported. OBS only allows files such as `index.html` in the root directory of // a bucket to function as the default homepage. That is to say, do not set the default homepage with a multi-level // directory structure (for example, /page/index.html). IndexDocument *string `pulumi:"indexDocument"` // A hostname to redirect all website requests for this bucket to. // Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The // default is the protocol that is used in the original request. RedirectAllRequestsTo *string `pulumi:"redirectAllRequestsTo"` // A JSON or XML format containing routing rules describing redirect behavior and // when redirects are applied. Each rule contains a `Condition` and a `Redirect` as shown in the following table: RoutingRules *string `pulumi:"routingRules"` }
type BucketWebsiteArgs ¶
type BucketWebsiteArgs struct { // Specifies the error page returned when an error occurs during static website // access. Only HTML, JPG, PNG, BMP, and WEBP files under the root directory are supported. ErrorDocument pulumi.StringPtrInput `pulumi:"errorDocument"` // Unless using `redirectAllRequestsTo`. Specifies the default homepage of the // static website, only HTML web pages are supported. OBS only allows files such as `index.html` in the root directory of // a bucket to function as the default homepage. That is to say, do not set the default homepage with a multi-level // directory structure (for example, /page/index.html). IndexDocument pulumi.StringPtrInput `pulumi:"indexDocument"` // A hostname to redirect all website requests for this bucket to. // Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The // default is the protocol that is used in the original request. RedirectAllRequestsTo pulumi.StringPtrInput `pulumi:"redirectAllRequestsTo"` // A JSON or XML format containing routing rules describing redirect behavior and // when redirects are applied. Each rule contains a `Condition` and a `Redirect` as shown in the following table: RoutingRules pulumi.StringPtrInput `pulumi:"routingRules"` }
func (BucketWebsiteArgs) ElementType ¶
func (BucketWebsiteArgs) ElementType() reflect.Type
func (BucketWebsiteArgs) ToBucketWebsiteOutput ¶
func (i BucketWebsiteArgs) ToBucketWebsiteOutput() BucketWebsiteOutput
func (BucketWebsiteArgs) ToBucketWebsiteOutputWithContext ¶
func (i BucketWebsiteArgs) ToBucketWebsiteOutputWithContext(ctx context.Context) BucketWebsiteOutput
func (BucketWebsiteArgs) ToBucketWebsitePtrOutput ¶
func (i BucketWebsiteArgs) ToBucketWebsitePtrOutput() BucketWebsitePtrOutput
func (BucketWebsiteArgs) ToBucketWebsitePtrOutputWithContext ¶
func (i BucketWebsiteArgs) ToBucketWebsitePtrOutputWithContext(ctx context.Context) BucketWebsitePtrOutput
type BucketWebsiteInput ¶
type BucketWebsiteInput interface { pulumi.Input ToBucketWebsiteOutput() BucketWebsiteOutput ToBucketWebsiteOutputWithContext(context.Context) BucketWebsiteOutput }
BucketWebsiteInput is an input type that accepts BucketWebsiteArgs and BucketWebsiteOutput values. You can construct a concrete instance of `BucketWebsiteInput` via:
BucketWebsiteArgs{...}
type BucketWebsiteOutput ¶
type BucketWebsiteOutput struct{ *pulumi.OutputState }
func (BucketWebsiteOutput) ElementType ¶
func (BucketWebsiteOutput) ElementType() reflect.Type
func (BucketWebsiteOutput) ErrorDocument ¶
func (o BucketWebsiteOutput) ErrorDocument() pulumi.StringPtrOutput
Specifies the error page returned when an error occurs during static website access. Only HTML, JPG, PNG, BMP, and WEBP files under the root directory are supported.
func (BucketWebsiteOutput) IndexDocument ¶
func (o BucketWebsiteOutput) IndexDocument() pulumi.StringPtrOutput
Unless using `redirectAllRequestsTo`. Specifies the default homepage of the static website, only HTML web pages are supported. OBS only allows files such as `index.html` in the root directory of a bucket to function as the default homepage. That is to say, do not set the default homepage with a multi-level directory structure (for example, /page/index.html).
func (BucketWebsiteOutput) RedirectAllRequestsTo ¶
func (o BucketWebsiteOutput) RedirectAllRequestsTo() pulumi.StringPtrOutput
A hostname to redirect all website requests for this bucket to. Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The default is the protocol that is used in the original request.
func (BucketWebsiteOutput) RoutingRules ¶
func (o BucketWebsiteOutput) RoutingRules() pulumi.StringPtrOutput
A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied. Each rule contains a `Condition` and a `Redirect` as shown in the following table:
func (BucketWebsiteOutput) ToBucketWebsiteOutput ¶
func (o BucketWebsiteOutput) ToBucketWebsiteOutput() BucketWebsiteOutput
func (BucketWebsiteOutput) ToBucketWebsiteOutputWithContext ¶
func (o BucketWebsiteOutput) ToBucketWebsiteOutputWithContext(ctx context.Context) BucketWebsiteOutput
func (BucketWebsiteOutput) ToBucketWebsitePtrOutput ¶
func (o BucketWebsiteOutput) ToBucketWebsitePtrOutput() BucketWebsitePtrOutput
func (BucketWebsiteOutput) ToBucketWebsitePtrOutputWithContext ¶
func (o BucketWebsiteOutput) ToBucketWebsitePtrOutputWithContext(ctx context.Context) BucketWebsitePtrOutput
type BucketWebsitePtrInput ¶
type BucketWebsitePtrInput interface { pulumi.Input ToBucketWebsitePtrOutput() BucketWebsitePtrOutput ToBucketWebsitePtrOutputWithContext(context.Context) BucketWebsitePtrOutput }
BucketWebsitePtrInput is an input type that accepts BucketWebsiteArgs, BucketWebsitePtr and BucketWebsitePtrOutput values. You can construct a concrete instance of `BucketWebsitePtrInput` via:
BucketWebsiteArgs{...} or: nil
func BucketWebsitePtr ¶
func BucketWebsitePtr(v *BucketWebsiteArgs) BucketWebsitePtrInput
type BucketWebsitePtrOutput ¶
type BucketWebsitePtrOutput struct{ *pulumi.OutputState }
func (BucketWebsitePtrOutput) Elem ¶
func (o BucketWebsitePtrOutput) Elem() BucketWebsiteOutput
func (BucketWebsitePtrOutput) ElementType ¶
func (BucketWebsitePtrOutput) ElementType() reflect.Type
func (BucketWebsitePtrOutput) ErrorDocument ¶
func (o BucketWebsitePtrOutput) ErrorDocument() pulumi.StringPtrOutput
Specifies the error page returned when an error occurs during static website access. Only HTML, JPG, PNG, BMP, and WEBP files under the root directory are supported.
func (BucketWebsitePtrOutput) IndexDocument ¶
func (o BucketWebsitePtrOutput) IndexDocument() pulumi.StringPtrOutput
Unless using `redirectAllRequestsTo`. Specifies the default homepage of the static website, only HTML web pages are supported. OBS only allows files such as `index.html` in the root directory of a bucket to function as the default homepage. That is to say, do not set the default homepage with a multi-level directory structure (for example, /page/index.html).
func (BucketWebsitePtrOutput) RedirectAllRequestsTo ¶
func (o BucketWebsitePtrOutput) RedirectAllRequestsTo() pulumi.StringPtrOutput
A hostname to redirect all website requests for this bucket to. Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The default is the protocol that is used in the original request.
func (BucketWebsitePtrOutput) RoutingRules ¶
func (o BucketWebsitePtrOutput) RoutingRules() pulumi.StringPtrOutput
A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied. Each rule contains a `Condition` and a `Redirect` as shown in the following table:
func (BucketWebsitePtrOutput) ToBucketWebsitePtrOutput ¶
func (o BucketWebsitePtrOutput) ToBucketWebsitePtrOutput() BucketWebsitePtrOutput
func (BucketWebsitePtrOutput) ToBucketWebsitePtrOutputWithContext ¶
func (o BucketWebsitePtrOutput) ToBucketWebsitePtrOutputWithContext(ctx context.Context) BucketWebsitePtrOutput
type GetBucketsArgs ¶
type GetBucketsArgs struct { // The name of the OBS bucket. Bucket *string `pulumi:"bucket"` // The enterprise project id of the OBS bucket. EnterpriseProjectId *string `pulumi:"enterpriseProjectId"` // The region in which to obtain the OBS bucket. // If omitted, the provider-level region will be used. Region *string `pulumi:"region"` }
A collection of arguments for invoking getBuckets.
type GetBucketsBucket ¶
type GetBucketsBucket struct { // The name of the OBS bucket. Bucket string `pulumi:"bucket"` // The date when the OBS bucket was created. CreatedAt string `pulumi:"createdAt"` // The enterprise project id of the OBS bucket. EnterpriseProjectId string `pulumi:"enterpriseProjectId"` // The region in which to obtain the OBS bucket. // If omitted, the provider-level region will be used. Region string `pulumi:"region"` // The storage class of the OBS bucket. StorageClass string `pulumi:"storageClass"` }
type GetBucketsBucketArgs ¶
type GetBucketsBucketArgs struct { // The name of the OBS bucket. Bucket pulumi.StringInput `pulumi:"bucket"` // The date when the OBS bucket was created. CreatedAt pulumi.StringInput `pulumi:"createdAt"` // The enterprise project id of the OBS bucket. EnterpriseProjectId pulumi.StringInput `pulumi:"enterpriseProjectId"` // The region in which to obtain the OBS bucket. // If omitted, the provider-level region will be used. Region pulumi.StringInput `pulumi:"region"` // The storage class of the OBS bucket. StorageClass pulumi.StringInput `pulumi:"storageClass"` }
func (GetBucketsBucketArgs) ElementType ¶
func (GetBucketsBucketArgs) ElementType() reflect.Type
func (GetBucketsBucketArgs) ToGetBucketsBucketOutput ¶
func (i GetBucketsBucketArgs) ToGetBucketsBucketOutput() GetBucketsBucketOutput
func (GetBucketsBucketArgs) ToGetBucketsBucketOutputWithContext ¶
func (i GetBucketsBucketArgs) ToGetBucketsBucketOutputWithContext(ctx context.Context) GetBucketsBucketOutput
type GetBucketsBucketArray ¶
type GetBucketsBucketArray []GetBucketsBucketInput
func (GetBucketsBucketArray) ElementType ¶
func (GetBucketsBucketArray) ElementType() reflect.Type
func (GetBucketsBucketArray) ToGetBucketsBucketArrayOutput ¶
func (i GetBucketsBucketArray) ToGetBucketsBucketArrayOutput() GetBucketsBucketArrayOutput
func (GetBucketsBucketArray) ToGetBucketsBucketArrayOutputWithContext ¶
func (i GetBucketsBucketArray) ToGetBucketsBucketArrayOutputWithContext(ctx context.Context) GetBucketsBucketArrayOutput
type GetBucketsBucketArrayInput ¶
type GetBucketsBucketArrayInput interface { pulumi.Input ToGetBucketsBucketArrayOutput() GetBucketsBucketArrayOutput ToGetBucketsBucketArrayOutputWithContext(context.Context) GetBucketsBucketArrayOutput }
GetBucketsBucketArrayInput is an input type that accepts GetBucketsBucketArray and GetBucketsBucketArrayOutput values. You can construct a concrete instance of `GetBucketsBucketArrayInput` via:
GetBucketsBucketArray{ GetBucketsBucketArgs{...} }
type GetBucketsBucketArrayOutput ¶
type GetBucketsBucketArrayOutput struct{ *pulumi.OutputState }
func (GetBucketsBucketArrayOutput) ElementType ¶
func (GetBucketsBucketArrayOutput) ElementType() reflect.Type
func (GetBucketsBucketArrayOutput) Index ¶
func (o GetBucketsBucketArrayOutput) Index(i pulumi.IntInput) GetBucketsBucketOutput
func (GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutput ¶
func (o GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutput() GetBucketsBucketArrayOutput
func (GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutputWithContext ¶
func (o GetBucketsBucketArrayOutput) ToGetBucketsBucketArrayOutputWithContext(ctx context.Context) GetBucketsBucketArrayOutput
type GetBucketsBucketInput ¶
type GetBucketsBucketInput interface { pulumi.Input ToGetBucketsBucketOutput() GetBucketsBucketOutput ToGetBucketsBucketOutputWithContext(context.Context) GetBucketsBucketOutput }
GetBucketsBucketInput is an input type that accepts GetBucketsBucketArgs and GetBucketsBucketOutput values. You can construct a concrete instance of `GetBucketsBucketInput` via:
GetBucketsBucketArgs{...}
type GetBucketsBucketOutput ¶
type GetBucketsBucketOutput struct{ *pulumi.OutputState }
func (GetBucketsBucketOutput) Bucket ¶
func (o GetBucketsBucketOutput) Bucket() pulumi.StringOutput
The name of the OBS bucket.
func (GetBucketsBucketOutput) CreatedAt ¶
func (o GetBucketsBucketOutput) CreatedAt() pulumi.StringOutput
The date when the OBS bucket was created.
func (GetBucketsBucketOutput) ElementType ¶
func (GetBucketsBucketOutput) ElementType() reflect.Type
func (GetBucketsBucketOutput) EnterpriseProjectId ¶
func (o GetBucketsBucketOutput) EnterpriseProjectId() pulumi.StringOutput
The enterprise project id of the OBS bucket.
func (GetBucketsBucketOutput) Region ¶
func (o GetBucketsBucketOutput) Region() pulumi.StringOutput
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
func (GetBucketsBucketOutput) StorageClass ¶
func (o GetBucketsBucketOutput) StorageClass() pulumi.StringOutput
The storage class of the OBS bucket.
func (GetBucketsBucketOutput) ToGetBucketsBucketOutput ¶
func (o GetBucketsBucketOutput) ToGetBucketsBucketOutput() GetBucketsBucketOutput
func (GetBucketsBucketOutput) ToGetBucketsBucketOutputWithContext ¶
func (o GetBucketsBucketOutput) ToGetBucketsBucketOutputWithContext(ctx context.Context) GetBucketsBucketOutput
type GetBucketsOutputArgs ¶
type GetBucketsOutputArgs struct { // The name of the OBS bucket. Bucket pulumi.StringPtrInput `pulumi:"bucket"` // The enterprise project id of the OBS bucket. EnterpriseProjectId pulumi.StringPtrInput `pulumi:"enterpriseProjectId"` // The region in which to obtain the OBS bucket. // If omitted, the provider-level region will be used. Region pulumi.StringPtrInput `pulumi:"region"` }
A collection of arguments for invoking getBuckets.
func (GetBucketsOutputArgs) ElementType ¶
func (GetBucketsOutputArgs) ElementType() reflect.Type
type GetBucketsResult ¶
type GetBucketsResult struct { // The name of the OBS bucket. Bucket *string `pulumi:"bucket"` // A list of OBS buckets. Buckets []GetBucketsBucket `pulumi:"buckets"` // The enterprise project id of the OBS bucket. EnterpriseProjectId *string `pulumi:"enterpriseProjectId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The region where the OBS bucket belongs. Region *string `pulumi:"region"` }
A collection of values returned by getBuckets.
func GetBuckets ¶
func GetBuckets(ctx *pulumi.Context, args *GetBucketsArgs, opts ...pulumi.InvokeOption) (*GetBucketsResult, error)
Use this data source to get all OBS buckets.
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Obs.GetBuckets(ctx, &obs.GetBucketsArgs{ Bucket: pulumi.StringRef("your-bucket-name"), }, nil) if err != nil { return err } return nil }) }
```
type GetBucketsResultOutput ¶
type GetBucketsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getBuckets.
func GetBucketsOutput ¶
func GetBucketsOutput(ctx *pulumi.Context, args GetBucketsOutputArgs, opts ...pulumi.InvokeOption) GetBucketsResultOutput
func (GetBucketsResultOutput) Bucket ¶
func (o GetBucketsResultOutput) Bucket() pulumi.StringPtrOutput
The name of the OBS bucket.
func (GetBucketsResultOutput) Buckets ¶
func (o GetBucketsResultOutput) Buckets() GetBucketsBucketArrayOutput
A list of OBS buckets.
func (GetBucketsResultOutput) ElementType ¶
func (GetBucketsResultOutput) ElementType() reflect.Type
func (GetBucketsResultOutput) EnterpriseProjectId ¶
func (o GetBucketsResultOutput) EnterpriseProjectId() pulumi.StringPtrOutput
The enterprise project id of the OBS bucket.
func (GetBucketsResultOutput) Id ¶
func (o GetBucketsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetBucketsResultOutput) Region ¶
func (o GetBucketsResultOutput) Region() pulumi.StringPtrOutput
The region where the OBS bucket belongs.
func (GetBucketsResultOutput) ToGetBucketsResultOutput ¶
func (o GetBucketsResultOutput) ToGetBucketsResultOutput() GetBucketsResultOutput
func (GetBucketsResultOutput) ToGetBucketsResultOutputWithContext ¶
func (o GetBucketsResultOutput) ToGetBucketsResultOutputWithContext(ctx context.Context) GetBucketsResultOutput
type LookupBucketObjectArgs ¶
type LookupBucketObjectArgs struct { // The name of the bucket to put the file in. Bucket string `pulumi:"bucket"` // The name of the object once it is in the bucket. Key string `pulumi:"key"` // The region in which to obtain the OBS object. If omitted, the provider-level region will // be used. Region *string `pulumi:"region"` }
A collection of arguments for invoking getBucketObject.
type LookupBucketObjectOutputArgs ¶
type LookupBucketObjectOutputArgs struct { // The name of the bucket to put the file in. Bucket pulumi.StringInput `pulumi:"bucket"` // The name of the object once it is in the bucket. Key pulumi.StringInput `pulumi:"key"` // The region in which to obtain the OBS object. If omitted, the provider-level region will // be used. Region pulumi.StringPtrInput `pulumi:"region"` }
A collection of arguments for invoking getBucketObject.
func (LookupBucketObjectOutputArgs) ElementType ¶
func (LookupBucketObjectOutputArgs) ElementType() reflect.Type
type LookupBucketObjectResult ¶
type LookupBucketObjectResult struct { // The content of an object which is available only for objects which have a human-readable Content-Type // (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and // potentially downloading large amount of data. Body string `pulumi:"body"` Bucket string `pulumi:"bucket"` // a standard MIME type describing the format of the object data, e.g. application/octet-stream. All // Valid MIME Types are valid for this input. ContentType string `pulumi:"contentType"` // the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the // server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the // server-side encryption. Etag string `pulumi:"etag"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Key string `pulumi:"key"` Region string `pulumi:"region"` // the size of the object in bytes. Size int `pulumi:"size"` // specifies the storage class of the object. StorageClass string `pulumi:"storageClass"` // a unique version ID value for the object, if bucket versioning is enabled. VersionId string `pulumi:"versionId"` }
A collection of values returned by getBucketObject.
func LookupBucketObject ¶
func LookupBucketObject(ctx *pulumi.Context, args *LookupBucketObjectArgs, opts ...pulumi.InvokeOption) (*LookupBucketObjectResult, error)
Use this data source to get info of special HuaweiCloud obs object.
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Obs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Obs.GetBucketObject(ctx, &obs.GetBucketObjectArgs{ Bucket: "my-test-bucket", Key: "new-key", }, nil) if err != nil { return err } return nil }) }
```
type LookupBucketObjectResultOutput ¶
type LookupBucketObjectResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getBucketObject.
func LookupBucketObjectOutput ¶
func LookupBucketObjectOutput(ctx *pulumi.Context, args LookupBucketObjectOutputArgs, opts ...pulumi.InvokeOption) LookupBucketObjectResultOutput
func (LookupBucketObjectResultOutput) Body ¶
func (o LookupBucketObjectResultOutput) Body() pulumi.StringOutput
The content of an object which is available only for objects which have a human-readable Content-Type (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and potentially downloading large amount of data.
func (LookupBucketObjectResultOutput) Bucket ¶
func (o LookupBucketObjectResultOutput) Bucket() pulumi.StringOutput
func (LookupBucketObjectResultOutput) ContentType ¶
func (o LookupBucketObjectResultOutput) ContentType() pulumi.StringOutput
a standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
func (LookupBucketObjectResultOutput) ElementType ¶
func (LookupBucketObjectResultOutput) ElementType() reflect.Type
func (LookupBucketObjectResultOutput) Etag ¶
func (o LookupBucketObjectResultOutput) Etag() pulumi.StringOutput
the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the server-side encryption.
func (LookupBucketObjectResultOutput) Id ¶
func (o LookupBucketObjectResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupBucketObjectResultOutput) Key ¶
func (o LookupBucketObjectResultOutput) Key() pulumi.StringOutput
func (LookupBucketObjectResultOutput) Region ¶
func (o LookupBucketObjectResultOutput) Region() pulumi.StringOutput
func (LookupBucketObjectResultOutput) Size ¶
func (o LookupBucketObjectResultOutput) Size() pulumi.IntOutput
the size of the object in bytes.
func (LookupBucketObjectResultOutput) StorageClass ¶
func (o LookupBucketObjectResultOutput) StorageClass() pulumi.StringOutput
specifies the storage class of the object.
func (LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutput ¶
func (o LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutput() LookupBucketObjectResultOutput
func (LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutputWithContext ¶
func (o LookupBucketObjectResultOutput) ToLookupBucketObjectResultOutputWithContext(ctx context.Context) LookupBucketObjectResultOutput
func (LookupBucketObjectResultOutput) VersionId ¶
func (o LookupBucketObjectResultOutput) VersionId() pulumi.StringOutput
a unique version ID value for the object, if bucket versioning is enabled.