Class: AWSCDK::RDS::CfnDBSecurityGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RDS::CfnDBSecurityGroupProps
- Defined in:
- rds/cfn_db_security_group_props.rb
Overview
Properties for defining a CfnDBSecurityGroup.
Instance Attribute Summary collapse
-
#db_security_group_ingress ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::RDS::CfnDBSecurityGroup::IngressProperty>
readonly
Ingress rules to be applied to the DB security group.
-
#ec2_vpc_id ⇒ String?
readonly
The identifier of an Amazon virtual private cloud (VPC).
-
#group_description ⇒ String
readonly
Provides the description of the DB security group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Metadata assigned to an Amazon RDS resource consisting of a key-value pair.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(db_security_group_ingress:, group_description:, ec2_vpc_id: nil, tags: nil) ⇒ CfnDBSecurityGroupProps
constructor
A new instance of CfnDBSecurityGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(db_security_group_ingress:, group_description:, ec2_vpc_id: nil, tags: nil) ⇒ CfnDBSecurityGroupProps
Returns a new instance of CfnDBSecurityGroupProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'rds/cfn_db_security_group_props.rb', line 13 def initialize(db_security_group_ingress:, group_description:, ec2_vpc_id: nil, tags: nil) @db_security_group_ingress = db_security_group_ingress Jsii::Type.check_type(@db_security_group_ingress, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkNmbkRCU2VjdXJpdHlHcm91cC5JbmdyZXNzUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "dbSecurityGroupIngress") @group_description = group_description Jsii::Type.check_type(@group_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupDescription") @ec2_vpc_id = ec2_vpc_id Jsii::Type.check_type(@ec2_vpc_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ec2VpcId") unless @ec2_vpc_id.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#db_security_group_ingress ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::RDS::CfnDBSecurityGroup::IngressProperty> (readonly)
Ingress rules to be applied to the DB security group.
28 29 30 |
# File 'rds/cfn_db_security_group_props.rb', line 28 def db_security_group_ingress @db_security_group_ingress end |
#ec2_vpc_id ⇒ String? (readonly)
The identifier of an Amazon virtual private cloud (VPC).
This property indicates the VPC that this DB security group belongs to.
This property is included for backwards compatibility and is no longer recommended for providing security information to an RDS DB instance.
42 43 44 |
# File 'rds/cfn_db_security_group_props.rb', line 42 def ec2_vpc_id @ec2_vpc_id end |
#group_description ⇒ String (readonly)
Provides the description of the DB security group.
33 34 35 |
# File 'rds/cfn_db_security_group_props.rb', line 33 def group_description @group_description end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Metadata assigned to an Amazon RDS resource consisting of a key-value pair.
For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide .
49 50 51 |
# File 'rds/cfn_db_security_group_props.rb', line 49 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'rds/cfn_db_security_group_props.rb', line 51 def self.jsii_properties { :db_security_group_ingress => "dbSecurityGroupIngress", :group_description => "groupDescription", :ec2_vpc_id => "ec2VpcId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'rds/cfn_db_security_group_props.rb', line 60 def to_jsii result = {} result.merge!({ "dbSecurityGroupIngress" => @db_security_group_ingress, "groupDescription" => @group_description, "ec2VpcId" => @ec2_vpc_id, "tags" => @tags, }) result.compact end |