Skip to content

BucketProps

Properties for defining a Bucket.

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

Initializer

using AlibabaCloud.SDK.ROS.CDK.Oss;
new BucketProps {
    object BucketName,
    object AccessControl = null,
    object CorsConfiguration = null,
    object DeletionForce = null,
    object EnableOssHdfsService = null,
    object LifecycleConfiguration = null,
    object LoggingConfiguration = null,
    object Policy = null,
    object RedundancyType = null,
    object RefererConfiguration = null,
    object ResourceGroupId = null,
    object ServerSideEncryptionConfiguration = null,
    object StorageClass = null,
    System.Collections.Generic.IDictionary<string, object> Tags = null,
    object VersioningConfiguration = null,
    object WebsiteConfigurationV2 = null
};

Properties

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

BucketNameRequired

public object BucketName { get; set; }
  • Type: object

Property bucketName: bucket name.


AccessControlOptional

public object AccessControl { get; set; }
  • Type: object

Property accessControl: The access control list.


CorsConfigurationOptional

public object CorsConfiguration { get; set; }
  • Type: object

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


DeletionForceOptional

public object DeletionForce { get; set; }
  • Type: object

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

Default value is false.


EnableOssHdfsServiceOptional

public object EnableOssHdfsService { get; set; }
  • Type: object

Property enableOssHdfsService: Whether enable OSS-HDFS service.

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


LifecycleConfigurationOptional

public object LifecycleConfiguration { get; set; }
  • Type: object

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


LoggingConfigurationOptional

public object LoggingConfiguration { get; set; }
  • Type: object

Property loggingConfiguration: Settings that defines where logs are stored.


PolicyOptional

public object Policy { get; set; }
  • Type: object

Property policy: Bucket policy.


RedundancyTypeOptional

public object RedundancyType { get; set; }
  • Type: object

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

public object RefererConfiguration { get; set; }
  • Type: object

Property refererConfiguration: undefined.


ResourceGroupIdOptional

public object ResourceGroupId { get; set; }
  • Type: object

Property resourceGroupId: The resource group id.


ServerSideEncryptionConfigurationOptional

public object ServerSideEncryptionConfiguration { get; set; }
  • Type: object

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


StorageClassOptional

public object StorageClass { get; set; }
  • Type: object

Property storageClass: Specifies the storage class of the bucket.

Default is "Standard".


TagsOptional

public System.Collections.Generic.IDictionary<string, object> Tags { get; set; }
  • Type: System.Collections.Generic.IDictionary

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


VersioningConfigurationOptional

public object VersioningConfiguration { get; set; }
  • Type: object

Property versioningConfiguration: A state of versioning.


WebsiteConfigurationV2Optional

public object WebsiteConfigurationV2 { get; set; }
  • Type: object

Property websiteConfigurationV2: Website configuration.