We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
aws-native.lightsail.getBucket
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
Resource Type definition for AWS::Lightsail::Bucket
Using getBucket
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBucket(args: GetBucketArgs, opts?: InvokeOptions): Promise<GetBucketResult>
function getBucketOutput(args: GetBucketOutputArgs, opts?: InvokeOptions): Output<GetBucketResult>def get_bucket(bucket_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBucketResult
def get_bucket_output(bucket_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBucketResult]func LookupBucket(ctx *Context, args *LookupBucketArgs, opts ...InvokeOption) (*LookupBucketResult, error)
func LookupBucketOutput(ctx *Context, args *LookupBucketOutputArgs, opts ...InvokeOption) LookupBucketResultOutput> Note: This function is named LookupBucket in the Go SDK.
public static class GetBucket
{
public static Task<GetBucketResult> InvokeAsync(GetBucketArgs args, InvokeOptions? opts = null)
public static Output<GetBucketResult> Invoke(GetBucketInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBucketResult> getBucket(GetBucketArgs args, InvokeOptions options)
public static Output<GetBucketResult> getBucket(GetBucketArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:lightsail:getBucket
arguments:
# arguments dictionaryThe following arguments are supported:
- Bucket
Name string - The name for the bucket.
- Bucket
Name string - The name for the bucket.
- bucket
Name String - The name for the bucket.
- bucket
Name string - The name for the bucket.
- bucket_
name str - The name for the bucket.
- bucket
Name String - The name for the bucket.
getBucket Result
The following output properties are available:
- 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.
- Access
Rules Pulumi.Aws Native. Lightsail. Outputs. Bucket Access Rules - An object that describes the access rules for the bucket.
- Bucket
Arn string - The Amazon Resource Name (ARN) of the bucket.
- Bundle
Id string - The ID of the bundle to use 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. Outputs. Tag> - An array of key-value pairs to apply to this 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.
- Access
Rules BucketAccess Rules - An object that describes the access rules for the bucket.
- Bucket
Arn string - The Amazon Resource Name (ARN) of the bucket.
- Bundle
Id string - The ID of the bundle to use 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
- An array of key-value pairs to apply to this 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.
- access
Rules BucketAccess Rules - An object that describes the access rules for the bucket.
- bucket
Arn String - The Amazon Resource Name (ARN) of the bucket.
- bundle
Id String - The ID of the bundle to use 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.
- 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.
- access
Rules BucketAccess Rules - An object that describes the access rules for the bucket.
- bucket
Arn string - The Amazon Resource Name (ARN) of the bucket.
- bundle
Id string - The ID of the bundle to use 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.
- 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.
- access_
rules BucketAccess Rules - An object that describes the access rules for the bucket.
- bucket_
arn str - The Amazon Resource Name (ARN) of the bucket.
- bundle_
id str - The ID of the bundle to use 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[root_Tag]
- An array of key-value pairs to apply to this 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.
- access
Rules Property Map - An object that describes the access rules for the bucket.
- bucket
Arn String - The Amazon Resource Name (ARN) of the bucket.
- bundle
Id String - The ID of the bundle to use 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.
- url String
- The URL of the bucket.
Supporting Types
BucketAccessRules
- 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
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 Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
