CfnDBSecurityGroupIngressPropsMixin
- class aws_cdk.mixins_preview.aws_rds.mixins.CfnDBSecurityGroupIngressPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::RDS::DBSecurityGroupIngressresource enables ingress to a DB security group using one of two forms of authorization.First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress . .. epigraph:
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see `Migrate from EC2-Classic to a VPC <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html>`_ in the *Amazon EC2 User Guide* , the blog `EC2-Classic Networking is Retiring – Here’s How to Prepare <https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/>`_ , and `Moving a DB instance not in a VPC into a VPC <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html>`_ in the *Amazon RDS User Guide* .
- See:
- CloudformationResource:
AWS::RDS::DBSecurityGroupIngress
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_rds import mixins as rds_mixins cfn_dBSecurity_group_ingress_props_mixin = rds_mixins.CfnDBSecurityGroupIngressPropsMixin(rds_mixins.CfnDBSecurityGroupIngressMixinProps( cidrip="cidrip", db_security_group_name="dbSecurityGroupName", ec2_security_group_id="ec2SecurityGroupId", ec2_security_group_name="ec2SecurityGroupName", ec2_security_group_owner_id="ec2SecurityGroupOwnerId" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::RDS::DBSecurityGroupIngress.- Parameters:
props (
Union[CfnDBSecurityGroupIngressMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['cidrip', 'dbSecurityGroupName', 'ec2SecurityGroupId', 'ec2SecurityGroupName', 'ec2SecurityGroupOwnerId']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental