Try AWS Native preview for resources not in the classic version.
aws.lightsail.BucketAccessKey
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a lightsail bucket access key. This is a set of credentials that allow API requests to be made to the lightsail bucket.
Create BucketAccessKey Resource
new BucketAccessKey(name: string, args: BucketAccessKeyArgs, opts?: CustomResourceOptions);
@overload
def BucketAccessKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket_name: Optional[str] = None)
@overload
def BucketAccessKey(resource_name: str,
args: BucketAccessKeyArgs,
opts: Optional[ResourceOptions] = None)
func NewBucketAccessKey(ctx *Context, name string, args BucketAccessKeyArgs, opts ...ResourceOption) (*BucketAccessKey, error)
public BucketAccessKey(string name, BucketAccessKeyArgs args, CustomResourceOptions? opts = null)
public BucketAccessKey(String name, BucketAccessKeyArgs args)
public BucketAccessKey(String name, BucketAccessKeyArgs args, CustomResourceOptions options)
type: aws:lightsail:BucketAccessKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketAccessKeyArgs
- 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 BucketAccessKeyArgs
- 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 BucketAccessKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketAccessKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketAccessKeyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BucketAccessKey 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 BucketAccessKey resource accepts the following input properties:
- Bucket
Name string The name of the bucket that the new access key will belong to, and grant access to.
- Bucket
Name string The name of the bucket that the new access key will belong to, and grant access to.
- bucket
Name String The name of the bucket that the new access key will belong to, and grant access to.
- bucket
Name string The name of the bucket that the new access key will belong to, and grant access to.
- bucket_
name str The name of the bucket that the new access key will belong to, and grant access to.
- bucket
Name String The name of the bucket that the new access key will belong to, and grant access to.
Outputs
All input properties are implicitly available as output properties. Additionally, the BucketAccessKey resource produces the following output properties:
- Access
Key stringId The ID of the access key.
- Created
At string The timestamp when the access key was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Secret
Access stringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- Status string
The status of the access key.
- Access
Key stringId The ID of the access key.
- Created
At string The timestamp when the access key was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Secret
Access stringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- Status string
The status of the access key.
- access
Key StringId The ID of the access key.
- created
At String The timestamp when the access key was created.
- id String
The provider-assigned unique ID for this managed resource.
- secret
Access StringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- status String
The status of the access key.
- access
Key stringId The ID of the access key.
- created
At string The timestamp when the access key was created.
- id string
The provider-assigned unique ID for this managed resource.
- secret
Access stringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- status string
The status of the access key.
- access_
key_ strid The ID of the access key.
- created_
at str The timestamp when the access key was created.
- id str
The provider-assigned unique ID for this managed resource.
- secret_
access_ strkey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- status str
The status of the access key.
- access
Key StringId The ID of the access key.
- created
At String The timestamp when the access key was created.
- id String
The provider-assigned unique ID for this managed resource.
- secret
Access StringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- status String
The status of the access key.
Look up Existing BucketAccessKey Resource
Get an existing BucketAccessKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BucketAccessKeyState, opts?: CustomResourceOptions): BucketAccessKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_key_id: Optional[str] = None,
bucket_name: Optional[str] = None,
created_at: Optional[str] = None,
secret_access_key: Optional[str] = None,
status: Optional[str] = None) -> BucketAccessKey
func GetBucketAccessKey(ctx *Context, name string, id IDInput, state *BucketAccessKeyState, opts ...ResourceOption) (*BucketAccessKey, error)
public static BucketAccessKey Get(string name, Input<string> id, BucketAccessKeyState? state, CustomResourceOptions? opts = null)
public static BucketAccessKey get(String name, Output<String> id, BucketAccessKeyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Key stringId The ID of the access key.
- Bucket
Name string The name of the bucket that the new access key will belong to, and grant access to.
- Created
At string The timestamp when the access key was created.
- Secret
Access stringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- Status string
The status of the access key.
- Access
Key stringId The ID of the access key.
- Bucket
Name string The name of the bucket that the new access key will belong to, and grant access to.
- Created
At string The timestamp when the access key was created.
- Secret
Access stringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- Status string
The status of the access key.
- access
Key StringId The ID of the access key.
- bucket
Name String The name of the bucket that the new access key will belong to, and grant access to.
- created
At String The timestamp when the access key was created.
- secret
Access StringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- status String
The status of the access key.
- access
Key stringId The ID of the access key.
- bucket
Name string The name of the bucket that the new access key will belong to, and grant access to.
- created
At string The timestamp when the access key was created.
- secret
Access stringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- status string
The status of the access key.
- access_
key_ strid The ID of the access key.
- bucket_
name str The name of the bucket that the new access key will belong to, and grant access to.
- created_
at str The timestamp when the access key was created.
- secret_
access_ strkey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- status str
The status of the access key.
- access
Key StringId The ID of the access key.
- bucket
Name String The name of the bucket that the new access key will belong to, and grant access to.
- created
At String The timestamp when the access key was created.
- secret
Access StringKey The secret access key used to sign requests. This attribute is not available for imported resources. Note that this will be written to the state file.
- status String
The status of the access key.
Import
Using pulumi import
, import aws_lightsail_bucket_access_key
using the id
attribute. For example:
$ pulumi import aws:lightsail/bucketAccessKey:BucketAccessKey test example-bucket,AKIAIOSFODNN7EXAMPLE
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.