We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
aws-native.lightsail.Bucket
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
Resource Type definition for AWS::Lightsail::Bucket
Create Bucket Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Bucket(name: string, args: BucketArgs, opts?: CustomResourceOptions);
@overload
def Bucket(resource_name: str,
args: BucketArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Bucket(resource_name: str,
opts: Optional[ResourceOptions] = None,
bundle_id: Optional[str] = None,
access_rules: Optional[BucketAccessRulesArgs] = None,
bucket_name: Optional[str] = None,
object_versioning: Optional[bool] = None,
read_only_access_accounts: Optional[Sequence[str]] = None,
resources_receiving_access: Optional[Sequence[str]] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewBucket(ctx *Context, name string, args BucketArgs, opts ...ResourceOption) (*Bucket, error)
public Bucket(string name, BucketArgs args, CustomResourceOptions? opts = null)
public Bucket(String name, BucketArgs args)
public Bucket(String name, BucketArgs args, CustomResourceOptions options)
type: aws-native:lightsail:Bucket
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Bucket Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Bucket resource accepts the following input properties:
- Bundle
Id string - The ID of the bundle to use for the bucket.
- Access
Rules Pulumi.Aws Native. Lightsail. Inputs. Bucket Access Rules - An object that describes the access rules for the bucket.
- Bucket
Name string - The name for the bucket.
- Object
Versioning bool - Specifies whether to enable or disable versioning of objects in the bucket.
- Read
Only List<string>Access Accounts - An array of strings to specify the AWS account IDs that can access the bucket.
- Resources
Receiving List<string>Access - The names of the Lightsail resources for which to set bucket access.
- List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Bundle
Id string - The ID of the bundle to use for the bucket.
- Access
Rules BucketAccess Rules Args - An object that describes the access rules for the bucket.
- Bucket
Name string - The name for the bucket.
- Object
Versioning bool - Specifies whether to enable or disable versioning of objects in the bucket.
- Read
Only []stringAccess Accounts - An array of strings to specify the AWS account IDs that can access the bucket.
- Resources
Receiving []stringAccess - The names of the Lightsail resources for which to set bucket access.
- Tag
Args - An array of key-value pairs to apply to this resource.
- bundle
Id String - The ID of the bundle to use for the bucket.
- access
Rules BucketAccess Rules - An object that describes the access rules for the bucket.
- bucket
Name String - The name for the bucket.
- object
Versioning Boolean - Specifies whether to enable or disable versioning of objects in the bucket.
- read
Only List<String>Access Accounts - An array of strings to specify the AWS account IDs that can access the bucket.
- resources
Receiving List<String>Access - The names of the Lightsail resources for which to set bucket access.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- bundle
Id string - The ID of the bundle to use for the bucket.
- access
Rules BucketAccess Rules - An object that describes the access rules for the bucket.
- bucket
Name string - The name for the bucket.
- object
Versioning boolean - Specifies whether to enable or disable versioning of objects in the bucket.
- read
Only string[]Access Accounts - An array of strings to specify the AWS account IDs that can access the bucket.
- resources
Receiving string[]Access - The names of the Lightsail resources for which to set bucket access.
- Tag[]
- An array of key-value pairs to apply to this resource.
- bundle_
id str - The ID of the bundle to use for the bucket.
- access_
rules BucketAccess Rules Args - An object that describes the access rules for the bucket.
- bucket_
name str - The name for the bucket.
- object_
versioning bool - Specifies whether to enable or disable versioning of objects in the bucket.
- read_
only_ Sequence[str]access_ accounts - An array of strings to specify the AWS account IDs that can access the bucket.
- resources_
receiving_ Sequence[str]access - The names of the Lightsail resources for which to set bucket access.
- Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- bundle
Id String - The ID of the bundle to use for the bucket.
- access
Rules Property Map - An object that describes the access rules for the bucket.
- bucket
Name String - The name for the bucket.
- object
Versioning Boolean - Specifies whether to enable or disable versioning of objects in the bucket.
- read
Only List<String>Access Accounts - An array of strings to specify the AWS account IDs that can access the bucket.
- resources
Receiving List<String>Access - The names of the Lightsail resources for which to set bucket access.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Bucket resource produces the following output properties:
- Able
To boolUpdate Bundle - Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle.
- Bucket
Arn string - The Amazon Resource Name (ARN) of the bucket.
- Id string
- The provider-assigned unique ID for this managed resource.
- Url string
- The URL of the bucket.
- Able
To boolUpdate Bundle - Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle.
- Bucket
Arn string - The Amazon Resource Name (ARN) of the bucket.
- Id string
- The provider-assigned unique ID for this managed resource.
- Url string
- The URL of the bucket.
- able
To BooleanUpdate Bundle - Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle.
- bucket
Arn String - The Amazon Resource Name (ARN) of the bucket.
- id String
- The provider-assigned unique ID for this managed resource.
- url String
- The URL of the bucket.
- able
To booleanUpdate Bundle - Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle.
- bucket
Arn string - The Amazon Resource Name (ARN) of the bucket.
- id string
- The provider-assigned unique ID for this managed resource.
- url string
- The URL of the bucket.
- able_
to_ boolupdate_ bundle - Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle.
- bucket_
arn str - The Amazon Resource Name (ARN) of the bucket.
- id str
- The provider-assigned unique ID for this managed resource.
- url str
- The URL of the bucket.
- able
To BooleanUpdate Bundle - Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle.
- bucket
Arn String - The Amazon Resource Name (ARN) of the bucket.
- id String
- The provider-assigned unique ID for this managed resource.
- url String
- The URL of the bucket.
Supporting Types
BucketAccessRules, BucketAccessRulesArgs
- Allow
Public boolOverrides - A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.
- Get
Object string - Specifies the anonymous access to all objects in a bucket.
- Allow
Public boolOverrides - A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.
- Get
Object string - Specifies the anonymous access to all objects in a bucket.
- allow
Public BooleanOverrides - A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.
- get
Object String - Specifies the anonymous access to all objects in a bucket.
- allow
Public booleanOverrides - A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.
- get
Object string - Specifies the anonymous access to all objects in a bucket.
- allow_
public_ booloverrides - A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.
- get_
object str - Specifies the anonymous access to all objects in a bucket.
- allow
Public BooleanOverrides - A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.
- get
Object String - Specifies the anonymous access to all objects in a bucket.
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi