CfnBucketPropsMixin
- class aws_cdk.mixins_preview.aws_s3outposts.mixins.CfnBucketPropsMixin(props, *, strategy=None)
Bases:
MixinThe AWS::S3Outposts::Bucket resource specifies a new Amazon S3 on Outposts bucket.
To create an S3 on Outposts bucket, you must have S3 on Outposts capacity provisioned on your Outpost. For more information, see Using Amazon S3 on Outposts .
S3 on Outposts buckets support the following:
Tags
Lifecycle configuration rules for deleting expired objects
For a complete list of restrictions and Amazon S3 feature limitations on S3 on Outposts, see Amazon S3 on Outposts Restrictions and Limitations .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3outposts-bucket.html
- CloudformationResource:
AWS::S3Outposts::Bucket
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_s3outposts import mixins as s3outposts_mixins # filter: Any cfn_bucket_props_mixin = s3outposts_mixins.CfnBucketPropsMixin(s3outposts_mixins.CfnBucketMixinProps( bucket_name="bucketName", lifecycle_configuration=s3outposts_mixins.CfnBucketPropsMixin.LifecycleConfigurationProperty( rules=[s3outposts_mixins.CfnBucketPropsMixin.RuleProperty( abort_incomplete_multipart_upload=s3outposts_mixins.CfnBucketPropsMixin.AbortIncompleteMultipartUploadProperty( days_after_initiation=123 ), expiration_date="expirationDate", expiration_in_days=123, filter=filter, id="id", status="status" )] ), outpost_id="outpostId", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::S3Outposts::Bucket.- Parameters:
props (
Union[CfnBucketMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['bucketName', 'lifecycleConfiguration', 'outpostId', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AbortIncompleteMultipartUploadProperty
- class CfnBucketPropsMixin.AbortIncompleteMultipartUploadProperty(*, days_after_initiation=None)
Bases:
objectSpecifies the days since the initiation of an incomplete multipart upload that Amazon S3 on Outposts waits before permanently removing all parts of the upload.
For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy .
- Parameters:
days_after_initiation (
Union[int,float,None]) – Specifies the number of days after initiation that Amazon S3 on Outposts aborts an incomplete multipart upload.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3outposts import mixins as s3outposts_mixins abort_incomplete_multipart_upload_property = s3outposts_mixins.CfnBucketPropsMixin.AbortIncompleteMultipartUploadProperty( days_after_initiation=123 )
Attributes
- days_after_initiation
Specifies the number of days after initiation that Amazon S3 on Outposts aborts an incomplete multipart upload.
LifecycleConfigurationProperty
- class CfnBucketPropsMixin.LifecycleConfigurationProperty(*, rules=None)
Bases:
objectThe container for the lifecycle configuration for the objects stored in an S3 on Outposts bucket.
- Parameters:
rules (
Union[IResolvable,Sequence[Union[IResolvable,RuleProperty,Dict[str,Any]]],None]) – The container for the lifecycle configuration rules for the objects stored in the S3 on Outposts bucket.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3outposts import mixins as s3outposts_mixins # filter: Any lifecycle_configuration_property = s3outposts_mixins.CfnBucketPropsMixin.LifecycleConfigurationProperty( rules=[s3outposts_mixins.CfnBucketPropsMixin.RuleProperty( abort_incomplete_multipart_upload=s3outposts_mixins.CfnBucketPropsMixin.AbortIncompleteMultipartUploadProperty( days_after_initiation=123 ), expiration_date="expirationDate", expiration_in_days=123, filter=filter, id="id", status="status" )] )
Attributes
- rules
The container for the lifecycle configuration rules for the objects stored in the S3 on Outposts bucket.
RuleProperty
- class CfnBucketPropsMixin.RuleProperty(*, abort_incomplete_multipart_upload=None, expiration_date=None, expiration_in_days=None, filter=None, id=None, status=None)
Bases:
objectA container for an Amazon S3 on Outposts bucket lifecycle rule.
- Parameters:
abort_incomplete_multipart_upload (
Union[IResolvable,AbortIncompleteMultipartUploadProperty,Dict[str,Any],None]) – The container for the abort incomplete multipart upload rule.expiration_date (
Optional[str]) – Specifies the expiration for the lifecycle of the object by specifying an expiry date.expiration_in_days (
Union[int,float,None]) – Specifies the expiration for the lifecycle of the object in the form of days that the object has been in the S3 on Outposts bucket.filter (
Any) – The container for the filter of the lifecycle rule.id (
Optional[str]) – Unique identifier for the lifecycle rule. The value can’t be longer than 255 characters.status (
Optional[str]) – IfEnabled, the rule is currently being applied. IfDisabled, the rule is not currently being applied.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3outposts import mixins as s3outposts_mixins # filter: Any rule_property = s3outposts_mixins.CfnBucketPropsMixin.RuleProperty( abort_incomplete_multipart_upload=s3outposts_mixins.CfnBucketPropsMixin.AbortIncompleteMultipartUploadProperty( days_after_initiation=123 ), expiration_date="expirationDate", expiration_in_days=123, filter=filter, id="id", status="status" )
Attributes
- abort_incomplete_multipart_upload
The container for the abort incomplete multipart upload rule.
- expiration_date
Specifies the expiration for the lifecycle of the object by specifying an expiry date.
- expiration_in_days
Specifies the expiration for the lifecycle of the object in the form of days that the object has been in the S3 on Outposts bucket.
- filter
The container for the filter of the lifecycle rule.
- id
Unique identifier for the lifecycle rule.
The value can’t be longer than 255 characters.
- status
If
Enabled, the rule is currently being applied.If
Disabled, the rule is not currently being applied.