Class: AWSCDK::SecretsManager::SingleUserHostedRotationOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecretsManager::SingleUserHostedRotationOptions
- Defined in:
- secrets_manager/single_user_hosted_rotation_options.rb
Overview
Single user hosted rotation options.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exclude_characters ⇒ String?
readonly
A string of the characters that you don't want in the password.
-
#function_name ⇒ String?
readonly
A name for the Lambda created to rotate the secret.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>?
readonly
A list of security groups for the Lambda created to rotate the secret.
-
#vpc ⇒ AWSCDK::EC2::IVPC?
readonly
The VPC where the Lambda rotation function will run.
-
#vpc_subnets ⇒ AWSCDK::EC2::SubnetSelection?
readonly
The type of subnets in the VPC where the Lambda rotation function will run.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exclude_characters: nil, function_name: nil, security_groups: nil, vpc: nil, vpc_subnets: nil) ⇒ SingleUserHostedRotationOptions
constructor
A new instance of SingleUserHostedRotationOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exclude_characters: nil, function_name: nil, security_groups: nil, vpc: nil, vpc_subnets: nil) ⇒ SingleUserHostedRotationOptions
Returns a new instance of SingleUserHostedRotationOptions.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'secrets_manager/single_user_hosted_rotation_options.rb', line 12 def initialize(exclude_characters: nil, function_name: nil, security_groups: nil, vpc: nil, vpc_subnets: nil) @exclude_characters = exclude_characters Jsii::Type.check_type(@exclude_characters, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "excludeCharacters") unless @exclude_characters.nil? @function_name = function_name Jsii::Type.check_type(@function_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "functionName") unless @function_name.nil? @security_groups = security_groups Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups") unless @security_groups.nil? @vpc = vpc Jsii::Type.check_type(@vpc, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklWcGMifQ==")), "vpc") unless @vpc.nil? @vpc_subnets = vpc_subnets.is_a?(Hash) ? ::AWSCDK::EC2::SubnetSelection.new(**vpc_subnets.transform_keys(&:to_sym)) : vpc_subnets Jsii::Type.check_type(@vpc_subnets, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLlN1Ym5ldFNlbGVjdGlvbiJ9")), "vpcSubnets") unless @vpc_subnets.nil? end |
Instance Attribute Details
#exclude_characters ⇒ String? (readonly)
Default: the same exclude characters as the ones used for the secret or " %+~`#$&*()|[]{}:;<>?!'/@\"\"
A string of the characters that you don't want in the password.
29 30 31 |
# File 'secrets_manager/single_user_hosted_rotation_options.rb', line 29 def exclude_characters @exclude_characters end |
#function_name ⇒ String? (readonly)
Default: - a CloudFormation generated name
A name for the Lambda created to rotate the secret.
34 35 36 |
# File 'secrets_manager/single_user_hosted_rotation_options.rb', line 34 def function_name @function_name end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>? (readonly)
Default: - a new security group is created
A list of security groups for the Lambda created to rotate the secret.
39 40 41 |
# File 'secrets_manager/single_user_hosted_rotation_options.rb', line 39 def security_groups @security_groups end |
#vpc ⇒ AWSCDK::EC2::IVPC? (readonly)
Default: - the Lambda is not deployed in a VPC
The VPC where the Lambda rotation function will run.
44 45 46 |
# File 'secrets_manager/single_user_hosted_rotation_options.rb', line 44 def vpc @vpc end |
#vpc_subnets ⇒ AWSCDK::EC2::SubnetSelection? (readonly)
Default: - the Vpc default strategy if not specified.
The type of subnets in the VPC where the Lambda rotation function will run.
49 50 51 |
# File 'secrets_manager/single_user_hosted_rotation_options.rb', line 49 def vpc_subnets @vpc_subnets end |
Class Method Details
.jsii_properties ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'secrets_manager/single_user_hosted_rotation_options.rb', line 51 def self.jsii_properties { :exclude_characters => "excludeCharacters", :function_name => "functionName", :security_groups => "securityGroups", :vpc => "vpc", :vpc_subnets => "vpcSubnets", } end |
Instance Method Details
#to_jsii ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'secrets_manager/single_user_hosted_rotation_options.rb', line 61 def to_jsii result = {} result.merge!({ "excludeCharacters" => @exclude_characters, "functionName" => @function_name, "securityGroups" => @security_groups, "vpc" => @vpc, "vpcSubnets" => @vpc_subnets, }) result.compact end |