@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.421Z") @Stability(value=Stable) public class CfnDBSecurityGroup extends CfnResource implements IInspectable
The AWS::RDS::DBSecurityGroup resource creates or updates an Amazon RDS DB security group.
DB security groups are a part of the EC2-Classic Platform and as such are not supported in all regions. It is advised to use the
AWS::EC2::SecurityGroupresource in those regions instead. To determine which platform you are on, see Determining Whether You Are Using the EC2-VPC or EC2-Classic Platform . For more information on theAWS::EC2::SecurityGroup, see the documentation for EC2 security groups .
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.*;
CfnDBSecurityGroup cfnDBSecurityGroup = CfnDBSecurityGroup.Builder.create(this, "MyCfnDBSecurityGroup")
.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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDBSecurityGroup.Builder
A fluent builder for
CfnDBSecurityGroup. |
static interface |
CfnDBSecurityGroup.IngressProperty
The `Ingress` property type specifies an individual ingress rule within an `AWS::RDS::DBSecurityGroup` resource.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDBSecurityGroup(software.constructs.Construct scope,
String id,
CfnDBSecurityGroupProps props)
Create a new `AWS::RDS::DBSecurityGroup`.
|
protected |
CfnDBSecurityGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDBSecurityGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
Object |
getDbSecurityGroupIngress()
Ingress rules to be applied to the DB security group.
|
String |
getEc2VpcId()
The identifier of an Amazon VPC.
|
String |
getGroupDescription()
Provides the description of the DB security group.
|
TagManager |
getTags()
Tags to assign to the DB security group.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDbSecurityGroupIngress(IResolvable value)
Ingress rules to be applied to the DB security group.
|
void |
setDbSecurityGroupIngress(List<Object> value)
Ingress rules to be applied to the DB security group.
|
void |
setEc2VpcId(String value)
The identifier of an Amazon VPC.
|
void |
setGroupDescription(String value)
Provides the description of the DB security group.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDBSecurityGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDBSecurityGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDBSecurityGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDBSecurityGroupProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getDbSecurityGroupIngress()
@Stability(value=Stable)
public void setDbSecurityGroupIngress(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setDbSecurityGroupIngress(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public String getGroupDescription()
@Stability(value=Stable)
public void setGroupDescription(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getEc2VpcId()
The
EC2VpcIdproperty is for backward compatibility with older regions, and is no longer recommended for providing security information to an RDS DB instance.
@Stability(value=Stable)
public void setEc2VpcId(@Nullable
String value)
The
EC2VpcIdproperty is for backward compatibility with older regions, and is no longer recommended for providing security information to an RDS DB instance.
Copyright © 2022. All rights reserved.