Interface ICfnBucketProps
Properties for defining a CfnBucket
.
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.AWS.Lightsail.dll
Syntax (csharp)
public interface ICfnBucketProps
Syntax (vb)
Public Interface ICfnBucketProps
Remarks
Link: 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
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. |
Properties
AccessRules
An object that describes the access rules for the bucket.
virtual object AccessRules { get; }
Property Value
System.Object
Remarks
BucketName
The name of the bucket.
string BucketName { get; }
Property Value
System.String
Remarks
BundleId
The bundle ID for the bucket (for example, small_1_0
).
string BundleId { get; }
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.
virtual object ObjectVersioning { get; }
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.
virtual string[] ReadOnlyAccessAccounts { get; }
Property Value
System.String[]
Remarks
ResourcesReceivingAccess
An array of Lightsail instances that have access to the bucket.
virtual string[] ResourcesReceivingAccess { get; }
Property Value
System.String[]