MultiUserHostedRotationOptions¶
-
class
aws_cdk.aws_secretsmanager.
MultiUserHostedRotationOptions
(*, function_name=None, security_groups=None, vpc=None, vpc_subnets=None, master_secret)¶ Bases:
aws_cdk.aws_secretsmanager.SingleUserHostedRotationOptions
Multi user hosted rotation options.
- Parameters
function_name (
Optional
[str
]) – A name for the Lambda created to rotate the secret. Default: - a CloudFormation generated namesecurity_groups (
Optional
[Sequence
[ISecurityGroup
]]) – A list of security groups for the Lambda created to rotate the secret. Default: - a new security group is createdvpc (
Optional
[IVpc
]) – The VPC where the Lambda rotation function will run. Default: - the Lambda is not deployed in a VPCvpc_subnets (
Optional
[SubnetSelection
]) – The type of subnets in the VPC where the Lambda rotation function will run. Default: - the Vpc default strategy if not specified.master_secret (
ISecret
) – The master secret for a multi user rotation scheme.
- ExampleMetadata
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ec2 as ec2 import aws_cdk.aws_secretsmanager as secretsmanager # secret: secretsmanager.Secret # security_group: ec2.SecurityGroup # subnet: ec2.Subnet # subnet_filter: ec2.SubnetFilter # vpc: ec2.Vpc multi_user_hosted_rotation_options = secretsmanager.MultiUserHostedRotationOptions( master_secret=secret, # the properties below are optional function_name="functionName", security_groups=[security_group], vpc=vpc, vpc_subnets=ec2.SubnetSelection( availability_zones=["availabilityZones"], one_per_az=False, subnet_filters=[subnet_filter], subnet_group_name="subnetGroupName", subnet_name="subnetName", subnets=[subnet], subnet_type=ec2.SubnetType.ISOLATED ) )
Attributes
-
function_name
¶ A name for the Lambda created to rotate the secret.
- Default
a CloudFormation generated name
- Return type
Optional
[str
]
-
security_groups
¶ A list of security groups for the Lambda created to rotate the secret.
- Default
a new security group is created
- Return type
Optional
[List
[ISecurityGroup
]]
-
vpc
¶ The VPC where the Lambda rotation function will run.
- Default
the Lambda is not deployed in a VPC
- Return type
Optional
[IVpc
]
-
vpc_subnets
¶ The type of subnets in the VPC where the Lambda rotation function will run.
- Default
the Vpc default strategy if not specified.
- Return type
Optional
[SubnetSelection
]