# AWS::S3Outposts::Bucket Resource Type Definition for AWS::S3Outposts::Bucket ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::S3Outposts::Bucket", "Properties" : { "BucketName" : String, "OutpostId" : String, "Tags" : [ Tag, ... ], "LifecycleConfiguration" : LifecycleConfiguration } }### YAML
Type: AWS::S3Outposts::Bucket Properties: BucketName: String OutpostId: String Tags: - Tag LifecycleConfiguration: LifecycleConfiguration## Properties #### BucketName A name for the bucket. _Required_: Yes _Type_: String _Minimum_:
3
_Maximum_: 63
_Pattern_: (?=^.{3,63}$)(?!^(\d+\.)+\d+$)(^(([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])$)
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### OutpostId
The id of the customer outpost on which the bucket resides.
_Required_: Yes
_Type_: String
_Pattern_: ^(op-[a-f0-9]{17}|\d{12}|ec2)$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### Tags
An arbitrary set of tags (key-value pairs) for this S3Outposts bucket.
_Required_: No
_Type_: List of Tag
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### LifecycleConfiguration
_Required_: No
_Type_: LifecycleConfiguration
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
## Return Values
### Ref
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Arn.
### Fn::GetAtt
The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).
#### Arn
The Amazon Resource Name (ARN) of the specified bucket.