akeyless.RotatedSecretAws
Explore with Pulumi AI
Aws rotated secret resource
Create RotatedSecretAws Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RotatedSecretAws(name: string, args: RotatedSecretAwsArgs, opts?: CustomResourceOptions);
@overload
def RotatedSecretAws(resource_name: str,
args: RotatedSecretAwsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RotatedSecretAws(resource_name: str,
opts: Optional[ResourceOptions] = None,
rotator_type: Optional[str] = None,
target_name: Optional[str] = None,
key: Optional[str] = None,
auto_rotate: Optional[str] = None,
description: Optional[str] = None,
grace_rotation: Optional[str] = None,
api_id: Optional[str] = None,
name: Optional[str] = None,
password_length: Optional[str] = None,
rotated_secret_aws_id: Optional[str] = None,
rotation_hour: Optional[float] = None,
rotation_interval: Optional[str] = None,
authentication_credentials: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
api_key: Optional[str] = None)
func NewRotatedSecretAws(ctx *Context, name string, args RotatedSecretAwsArgs, opts ...ResourceOption) (*RotatedSecretAws, error)
public RotatedSecretAws(string name, RotatedSecretAwsArgs args, CustomResourceOptions? opts = null)
public RotatedSecretAws(String name, RotatedSecretAwsArgs args)
public RotatedSecretAws(String name, RotatedSecretAwsArgs args, CustomResourceOptions options)
type: akeyless:RotatedSecretAws
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 RotatedSecretAwsArgs
- 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 RotatedSecretAwsArgs
- 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 RotatedSecretAwsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RotatedSecretAwsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RotatedSecretAwsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var rotatedSecretAwsResource = new Akeyless.RotatedSecretAws("rotatedSecretAwsResource", new()
{
RotatorType = "string",
TargetName = "string",
Key = "string",
AutoRotate = "string",
Description = "string",
GraceRotation = "string",
ApiId = "string",
Name = "string",
PasswordLength = "string",
RotatedSecretAwsId = "string",
RotationHour = 0,
RotationInterval = "string",
AuthenticationCredentials = "string",
Tags = new[]
{
"string",
},
ApiKey = "string",
});
example, err := akeyless.NewRotatedSecretAws(ctx, "rotatedSecretAwsResource", &akeyless.RotatedSecretAwsArgs{
RotatorType: pulumi.String("string"),
TargetName: pulumi.String("string"),
Key: pulumi.String("string"),
AutoRotate: pulumi.String("string"),
Description: pulumi.String("string"),
GraceRotation: pulumi.String("string"),
ApiId: pulumi.String("string"),
Name: pulumi.String("string"),
PasswordLength: pulumi.String("string"),
RotatedSecretAwsId: pulumi.String("string"),
RotationHour: pulumi.Float64(0),
RotationInterval: pulumi.String("string"),
AuthenticationCredentials: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
ApiKey: pulumi.String("string"),
})
var rotatedSecretAwsResource = new RotatedSecretAws("rotatedSecretAwsResource", RotatedSecretAwsArgs.builder()
.rotatorType("string")
.targetName("string")
.key("string")
.autoRotate("string")
.description("string")
.graceRotation("string")
.apiId("string")
.name("string")
.passwordLength("string")
.rotatedSecretAwsId("string")
.rotationHour(0)
.rotationInterval("string")
.authenticationCredentials("string")
.tags("string")
.apiKey("string")
.build());
rotated_secret_aws_resource = akeyless.RotatedSecretAws("rotatedSecretAwsResource",
rotator_type="string",
target_name="string",
key="string",
auto_rotate="string",
description="string",
grace_rotation="string",
api_id="string",
name="string",
password_length="string",
rotated_secret_aws_id="string",
rotation_hour=0,
rotation_interval="string",
authentication_credentials="string",
tags=["string"],
api_key="string")
const rotatedSecretAwsResource = new akeyless.RotatedSecretAws("rotatedSecretAwsResource", {
rotatorType: "string",
targetName: "string",
key: "string",
autoRotate: "string",
description: "string",
graceRotation: "string",
apiId: "string",
name: "string",
passwordLength: "string",
rotatedSecretAwsId: "string",
rotationHour: 0,
rotationInterval: "string",
authenticationCredentials: "string",
tags: ["string"],
apiKey: "string",
});
type: akeyless:RotatedSecretAws
properties:
apiId: string
apiKey: string
authenticationCredentials: string
autoRotate: string
description: string
graceRotation: string
key: string
name: string
passwordLength: string
rotatedSecretAwsId: string
rotationHour: 0
rotationInterval: string
rotatorType: string
tags:
- string
targetName: string
RotatedSecretAws Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RotatedSecretAws resource accepts the following input properties:
- Rotator
Type string - The rotator type [target/api-key]
- Target
Name string - The target name to associate
- Api
Id string - API ID to rotate (relevant only for rotator-type=api-key)
- Api
Key string - API key to rotate (relevant only for rotator-type=api-key)
- Authentication
Credentials string - The credentials to connect with [use-self-creds/use-target-creds]
- Auto
Rotate string - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- Description string
- Description of the object
- Grace
Rotation string - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- Key string
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- Name string
- Secret name
- Password
Length string - The length of the password to be generated
- Rotated
Secret stringAws Id - The ID of this resource.
- Rotation
Hour double - The Hour of the rotation in UTC
- Rotation
Interval string - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- List<string>
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- Rotator
Type string - The rotator type [target/api-key]
- Target
Name string - The target name to associate
- Api
Id string - API ID to rotate (relevant only for rotator-type=api-key)
- Api
Key string - API key to rotate (relevant only for rotator-type=api-key)
- Authentication
Credentials string - The credentials to connect with [use-self-creds/use-target-creds]
- Auto
Rotate string - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- Description string
- Description of the object
- Grace
Rotation string - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- Key string
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- Name string
- Secret name
- Password
Length string - The length of the password to be generated
- Rotated
Secret stringAws Id - The ID of this resource.
- Rotation
Hour float64 - The Hour of the rotation in UTC
- Rotation
Interval string - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- []string
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- rotator
Type String - The rotator type [target/api-key]
- target
Name String - The target name to associate
- api
Id String - API ID to rotate (relevant only for rotator-type=api-key)
- api
Key String - API key to rotate (relevant only for rotator-type=api-key)
- authentication
Credentials String - The credentials to connect with [use-self-creds/use-target-creds]
- auto
Rotate String - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- description String
- Description of the object
- grace
Rotation String - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- key String
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- name String
- Secret name
- password
Length String - The length of the password to be generated
- rotated
Secret StringAws Id - The ID of this resource.
- rotation
Hour Double - The Hour of the rotation in UTC
- rotation
Interval String - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- List<String>
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- rotator
Type string - The rotator type [target/api-key]
- target
Name string - The target name to associate
- api
Id string - API ID to rotate (relevant only for rotator-type=api-key)
- api
Key string - API key to rotate (relevant only for rotator-type=api-key)
- authentication
Credentials string - The credentials to connect with [use-self-creds/use-target-creds]
- auto
Rotate string - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- description string
- Description of the object
- grace
Rotation string - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- key string
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- name string
- Secret name
- password
Length string - The length of the password to be generated
- rotated
Secret stringAws Id - The ID of this resource.
- rotation
Hour number - The Hour of the rotation in UTC
- rotation
Interval string - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- string[]
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- rotator_
type str - The rotator type [target/api-key]
- target_
name str - The target name to associate
- api_
id str - API ID to rotate (relevant only for rotator-type=api-key)
- api_
key str - API key to rotate (relevant only for rotator-type=api-key)
- authentication_
credentials str - The credentials to connect with [use-self-creds/use-target-creds]
- auto_
rotate str - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- description str
- Description of the object
- grace_
rotation str - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- key str
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- name str
- Secret name
- password_
length str - The length of the password to be generated
- rotated_
secret_ straws_ id - The ID of this resource.
- rotation_
hour float - The Hour of the rotation in UTC
- rotation_
interval str - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- Sequence[str]
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- rotator
Type String - The rotator type [target/api-key]
- target
Name String - The target name to associate
- api
Id String - API ID to rotate (relevant only for rotator-type=api-key)
- api
Key String - API key to rotate (relevant only for rotator-type=api-key)
- authentication
Credentials String - The credentials to connect with [use-self-creds/use-target-creds]
- auto
Rotate String - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- description String
- Description of the object
- grace
Rotation String - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- key String
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- name String
- Secret name
- password
Length String - The length of the password to be generated
- rotated
Secret StringAws Id - The ID of this resource.
- rotation
Hour Number - The Hour of the rotation in UTC
- rotation
Interval String - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- List<String>
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
Outputs
All input properties are implicitly available as output properties. Additionally, the RotatedSecretAws resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing RotatedSecretAws Resource
Get an existing RotatedSecretAws 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?: RotatedSecretAwsState, opts?: CustomResourceOptions): RotatedSecretAws
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
api_key: Optional[str] = None,
authentication_credentials: Optional[str] = None,
auto_rotate: Optional[str] = None,
description: Optional[str] = None,
grace_rotation: Optional[str] = None,
key: Optional[str] = None,
name: Optional[str] = None,
password_length: Optional[str] = None,
rotated_secret_aws_id: Optional[str] = None,
rotation_hour: Optional[float] = None,
rotation_interval: Optional[str] = None,
rotator_type: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None) -> RotatedSecretAws
func GetRotatedSecretAws(ctx *Context, name string, id IDInput, state *RotatedSecretAwsState, opts ...ResourceOption) (*RotatedSecretAws, error)
public static RotatedSecretAws Get(string name, Input<string> id, RotatedSecretAwsState? state, CustomResourceOptions? opts = null)
public static RotatedSecretAws get(String name, Output<String> id, RotatedSecretAwsState state, CustomResourceOptions options)
resources: _: type: akeyless:RotatedSecretAws get: id: ${id}
- 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.
- Api
Id string - API ID to rotate (relevant only for rotator-type=api-key)
- Api
Key string - API key to rotate (relevant only for rotator-type=api-key)
- Authentication
Credentials string - The credentials to connect with [use-self-creds/use-target-creds]
- Auto
Rotate string - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- Description string
- Description of the object
- Grace
Rotation string - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- Key string
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- Name string
- Secret name
- Password
Length string - The length of the password to be generated
- Rotated
Secret stringAws Id - The ID of this resource.
- Rotation
Hour double - The Hour of the rotation in UTC
- Rotation
Interval string - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- Rotator
Type string - The rotator type [target/api-key]
- List<string>
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- Target
Name string - The target name to associate
- Api
Id string - API ID to rotate (relevant only for rotator-type=api-key)
- Api
Key string - API key to rotate (relevant only for rotator-type=api-key)
- Authentication
Credentials string - The credentials to connect with [use-self-creds/use-target-creds]
- Auto
Rotate string - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- Description string
- Description of the object
- Grace
Rotation string - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- Key string
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- Name string
- Secret name
- Password
Length string - The length of the password to be generated
- Rotated
Secret stringAws Id - The ID of this resource.
- Rotation
Hour float64 - The Hour of the rotation in UTC
- Rotation
Interval string - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- Rotator
Type string - The rotator type [target/api-key]
- []string
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- Target
Name string - The target name to associate
- api
Id String - API ID to rotate (relevant only for rotator-type=api-key)
- api
Key String - API key to rotate (relevant only for rotator-type=api-key)
- authentication
Credentials String - The credentials to connect with [use-self-creds/use-target-creds]
- auto
Rotate String - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- description String
- Description of the object
- grace
Rotation String - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- key String
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- name String
- Secret name
- password
Length String - The length of the password to be generated
- rotated
Secret StringAws Id - The ID of this resource.
- rotation
Hour Double - The Hour of the rotation in UTC
- rotation
Interval String - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- rotator
Type String - The rotator type [target/api-key]
- List<String>
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- target
Name String - The target name to associate
- api
Id string - API ID to rotate (relevant only for rotator-type=api-key)
- api
Key string - API key to rotate (relevant only for rotator-type=api-key)
- authentication
Credentials string - The credentials to connect with [use-self-creds/use-target-creds]
- auto
Rotate string - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- description string
- Description of the object
- grace
Rotation string - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- key string
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- name string
- Secret name
- password
Length string - The length of the password to be generated
- rotated
Secret stringAws Id - The ID of this resource.
- rotation
Hour number - The Hour of the rotation in UTC
- rotation
Interval string - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- rotator
Type string - The rotator type [target/api-key]
- string[]
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- target
Name string - The target name to associate
- api_
id str - API ID to rotate (relevant only for rotator-type=api-key)
- api_
key str - API key to rotate (relevant only for rotator-type=api-key)
- authentication_
credentials str - The credentials to connect with [use-self-creds/use-target-creds]
- auto_
rotate str - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- description str
- Description of the object
- grace_
rotation str - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- key str
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- name str
- Secret name
- password_
length str - The length of the password to be generated
- rotated_
secret_ straws_ id - The ID of this resource.
- rotation_
hour float - The Hour of the rotation in UTC
- rotation_
interval str - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- rotator_
type str - The rotator type [target/api-key]
- Sequence[str]
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- target_
name str - The target name to associate
- api
Id String - API ID to rotate (relevant only for rotator-type=api-key)
- api
Key String - API key to rotate (relevant only for rotator-type=api-key)
- authentication
Credentials String - The credentials to connect with [use-self-creds/use-target-creds]
- auto
Rotate String - Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
- description String
- Description of the object
- grace
Rotation String - Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false]
- key String
- The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
- name String
- Secret name
- password
Length String - The length of the password to be generated
- rotated
Secret StringAws Id - The ID of this resource.
- rotation
Hour Number - The Hour of the rotation in UTC
- rotation
Interval String - The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
- rotator
Type String - The rotator type [target/api-key]
- List<String>
- List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
- target
Name String - The target name to associate
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeyless
Terraform Provider.