Class CfnBucketProps
Properties for defining a CfnBucket
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnBucketProps : Object, ICfnBucketProps
Syntax (vb)
Public Class CfnBucketProps
Inherits Object
Implements ICfnBucketProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-bucket.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;
var cfnBucketProps = new CfnBucketProps {
BucketName = "bucketName",
BundleId = "bundleId",
// the properties below are optional
AccessRules = new AccessRulesProperty {
AllowPublicOverrides = false,
ObjectAccess = "objectAccess"
},
ObjectVersioning = false,
ReadOnlyAccessAccounts = new [] { "readOnlyAccessAccounts" },
ResourcesReceivingAccess = new [] { "resourcesReceivingAccess" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnBucketProps() |
Properties
AccessRules | An object that describes the access rules for the bucket. |
BucketName | The name of the bucket. |
BundleId | The bundle ID for the bucket (for example, |
ObjectVersioning | Indicates whether object versioning is enabled for the bucket. |
ReadOnlyAccessAccounts | An array of AWS account IDs that have read-only access to the bucket. |
ResourcesReceivingAccess | An array of Lightsail instances that have access to the bucket. |
Tags | An array of key-value pairs to apply to this resource. |
Constructors
CfnBucketProps()
public CfnBucketProps()
Properties
AccessRules
An object that describes the access rules for the bucket.
public object AccessRules { get; set; }
Property Value
System.Object
Remarks
BucketName
The name of the bucket.
public string BucketName { get; set; }
Property Value
System.String
Remarks
BundleId
The bundle ID for the bucket (for example, small_1_0
).
public string BundleId { get; set; }
Property Value
System.String
Remarks
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
ObjectVersioning
Indicates whether object versioning is enabled for the bucket.
public object ObjectVersioning { get; set; }
Property Value
System.Object
Remarks
The following options can be configured:
ReadOnlyAccessAccounts
An array of AWS account IDs that have read-only access to the bucket.
public string[] ReadOnlyAccessAccounts { get; set; }
Property Value
System.String[]
Remarks
ResourcesReceivingAccess
An array of Lightsail instances that have access to the bucket.
public string[] ResourcesReceivingAccess { get; set; }
Property Value
System.String[]
Remarks
Tags
An array of key-value pairs to apply to this resource.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
For more information, see Tag in the AWS CloudFormation User Guide .
The Value
of Tags
is optional for Lightsail resources.