Skip to content

BucketProps

Properties for defining a Bucket.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-oss-bucket

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkoss"
&alicloudroscdkoss.BucketProps {
    BucketName: interface{},
    AccessControl: interface{},
    CorsConfiguration: interface{},
    DeletionForce: interface{},
    EnableOssHdfsService: interface{},
    LifecycleConfiguration: interface{},
    LoggingConfiguration: interface{},
    Policy: interface{},
    RedundancyType: interface{},
    RefererConfiguration: interface{},
    ResourceGroupId: interface{},
    ServerSideEncryptionConfiguration: interface{},
    StorageClass: interface{},
    Tags: *map[string]interface{},
    VersioningConfiguration: interface{},
    WebsiteConfigurationV2: interface{},
}

Properties

Name Type Description
BucketName interface{} Property bucketName: bucket name.
AccessControl interface{} Property accessControl: The access control list.
CorsConfiguration interface{} Property corsConfiguration: Rules that define cross-origin resource sharing of objects in this bucket.
DeletionForce interface{} Property deletionForce: Whether force delete the relative objects in the bucket.
EnableOssHdfsService interface{} Property enableOssHdfsService: Whether enable OSS-HDFS service.
LifecycleConfiguration interface{} Property lifecycleConfiguration: Rules that define how oss bucket manages objects during their lifetime.
LoggingConfiguration interface{} Property loggingConfiguration: Settings that defines where logs are stored.
Policy interface{} Property policy: Bucket policy.
RedundancyType interface{} Property redundancyType: Specifies the data disaster recovery type of the storage space.
RefererConfiguration interface{} Property refererConfiguration: undefined.
ResourceGroupId interface{} Property resourceGroupId: The resource group id.
ServerSideEncryptionConfiguration interface{} Property serverSideEncryptionConfiguration: Specifies the bucket used to store the server-side encryption rule.
StorageClass interface{} Property storageClass: Specifies the storage class of the bucket.
Tags *map[string]interface{} Property tags: Bucket tags in k-v pairs format.
VersioningConfiguration interface{} Property versioningConfiguration: A state of versioning.
WebsiteConfigurationV2 interface{} Property websiteConfigurationV2: Website configuration.

BucketNameRequired

BucketName interface{}
  • Type: interface{}

Property bucketName: bucket name.


AccessControlOptional

AccessControl interface{}
  • Type: interface{}

Property accessControl: The access control list.


CorsConfigurationOptional

CorsConfiguration interface{}
  • Type: interface{}

Property corsConfiguration: Rules that define cross-origin resource sharing of objects in this bucket.


DeletionForceOptional

DeletionForce interface{}
  • Type: interface{}

Property deletionForce: Whether force delete the relative objects in the bucket.

Default value is false.


EnableOssHdfsServiceOptional

EnableOssHdfsService interface{}
  • Type: interface{}

Property enableOssHdfsService: Whether enable OSS-HDFS service.

Note: Once it's enabled, it can't be disabled again.


LifecycleConfigurationOptional

LifecycleConfiguration interface{}
  • Type: interface{}

Property lifecycleConfiguration: Rules that define how oss bucket manages objects during their lifetime.


LoggingConfigurationOptional

LoggingConfiguration interface{}
  • Type: interface{}

Property loggingConfiguration: Settings that defines where logs are stored.


PolicyOptional

Policy interface{}
  • Type: interface{}

Property policy: Bucket policy.


RedundancyTypeOptional

RedundancyType interface{}
  • Type: interface{}

Property redundancyType: Specifies the data disaster recovery type of the storage space.

The value range is as follows: LRS (default): Local redundant LRS stores your data redundantly on different storage devices in the same availability zone, and can support data loss and normal access even when two storage devices are damaged concurrently. ZRS: Intra-city redundant ZRS adopts a data redundancy storage mechanism in multiple availability zones (AZ), and stores user data redundantly in multiple availability zones in the same region. When an availability zone is unavailable, normal access to data can still be guaranteed.


RefererConfigurationOptional

RefererConfiguration interface{}
  • Type: interface{}

Property refererConfiguration: undefined.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The resource group id.


ServerSideEncryptionConfigurationOptional

ServerSideEncryptionConfiguration interface{}
  • Type: interface{}

Property serverSideEncryptionConfiguration: Specifies the bucket used to store the server-side encryption rule.


StorageClassOptional

StorageClass interface{}
  • Type: interface{}

Property storageClass: Specifies the storage class of the bucket.

Default is "Standard".


TagsOptional

Tags *map[string]interface{}
  • Type: *map[string]interface{}

Property tags: Bucket tags in k-v pairs format.


VersioningConfigurationOptional

VersioningConfiguration interface{}
  • Type: interface{}

Property versioningConfiguration: A state of versioning.


WebsiteConfigurationV2Optional

WebsiteConfigurationV2 interface{}
  • Type: interface{}

Property websiteConfigurationV2: Website configuration.