Interface CfnDBSecurityGroupProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDBSecurityGroupProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.059Z") @Stability(Stable) public interface CfnDBSecurityGroupProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnDBSecurityGroup.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.rds.*;
 CfnDBSecurityGroupProps cfnDBSecurityGroupProps = CfnDBSecurityGroupProps.builder()
         .dbSecurityGroupIngress(List.of(IngressProperty.builder()
                 .cidrip("cidrip")
                 .ec2SecurityGroupId("ec2SecurityGroupId")
                 .ec2SecurityGroupName("ec2SecurityGroupName")
                 .ec2SecurityGroupOwnerId("ec2SecurityGroupOwnerId")
                 .build()))
         .groupDescription("groupDescription")
         // the properties below are optional
         .ec2VpcId("ec2VpcId")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getDbSecurityGroupIngress

      @Stability(Stable) @NotNull Object getDbSecurityGroupIngress()
      Ingress rules to be applied to the DB security group.
    • getGroupDescription

      @Stability(Stable) @NotNull String getGroupDescription()
      Provides the description of the DB security group.
    • getEc2VpcId

      @Stability(Stable) @Nullable default String getEc2VpcId()
      The identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to.

      The EC2VpcId property is for backward compatibility with older regions, and is no longer recommended for providing security information to an RDS DB instance.

    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      An optional array of key-value pairs to apply to this DB security group.
    • builder

      @Stability(Stable) static CfnDBSecurityGroupProps.Builder builder()
      Returns:
      a CfnDBSecurityGroupProps.Builder of CfnDBSecurityGroupProps