import { IamCredentialsRotator } from 'cdk-iam-credentials-rotator'
new IamCredentialsRotator(scope: Construct, id: string, props: IIamCredentialsRotatorProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
IIamCredentialsRotatorProps |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { IamCredentialsRotator } from 'cdk-iam-credentials-rotator'
IamCredentialsRotator.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
- Implemented By: IIamCredentialsRotatorProps
Name | Type | Description |
---|---|---|
credentialsHandler |
aws-cdk-lib.aws_lambda.IFunction |
Lambda function which is invoked after new credentials are created for a user. |
users |
IUser[] |
List of users to rotate credentials for in the target account. |
cleanupWaitDuration |
aws-cdk-lib.Duration |
The amount of time to wait before deleting old credentials. |
scheduleDuration |
aws-cdk-lib.Duration |
Frequency of key rotation. |
public readonly credentialsHandler: IFunction;
- Type: aws-cdk-lib.aws_lambda.IFunction
Lambda function which is invoked after new credentials are created for a user.
public readonly users: IUser[];
- Type: IUser[]
List of users to rotate credentials for in the target account.
public readonly cleanupWaitDuration: Duration;
- Type: aws-cdk-lib.Duration
- Default: 5 minutes
The amount of time to wait before deleting old credentials.
This value MUST be significantly less-than scheduleDuration
.
public readonly scheduleDuration: Duration;
- Type: aws-cdk-lib.Duration
- Default: 1 hour
Frequency of key rotation.
- Implemented By: IUser
Name | Type | Description |
---|---|---|
username |
string |
Username of an IAM user in the target account. |
metadata |
string |
Optional metadata. |
public readonly username: string;
- Type: string
Username of an IAM user in the target account.
public readonly metadata: string;
- Type: string
Optional metadata.