@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.977Z") public class CfnSecurityGroupIngress extends CfnResource implements IInspectable
The AWS::ElastiCache::SecurityGroupIngress type authorizes ingress to a cache security group from hosts in specified Amazon EC2 security groups. For more information about ElastiCache security group ingress, go to AuthorizeCacheSecurityGroupIngress in the Amazon ElastiCache API Reference Guide .
Updates are not supported.
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.elasticache.*; CfnSecurityGroupIngress cfnSecurityGroupIngress = CfnSecurityGroupIngress.Builder.create(this, "MyCfnSecurityGroupIngress") .cacheSecurityGroupName("cacheSecurityGroupName") .ec2SecurityGroupName("ec2SecurityGroupName") // the properties below are optional .ec2SecurityGroupOwnerId("ec2SecurityGroupOwnerId") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnSecurityGroupIngress.Builder
A fluent builder for
CfnSecurityGroupIngress . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnSecurityGroupIngress(Construct scope,
java.lang.String id,
CfnSecurityGroupIngressProps props)
Create a new `AWS::ElastiCache::SecurityGroupIngress`.
|
protected |
CfnSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCacheSecurityGroupName()
The name of the Cache Security Group to authorize.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getEc2SecurityGroupName()
Name of the EC2 Security Group to include in the authorization.
|
java.lang.String |
getEc2SecurityGroupOwnerId()
Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCacheSecurityGroupName(java.lang.String value)
The name of the Cache Security Group to authorize.
|
void |
setEc2SecurityGroupName(java.lang.String value)
Name of the EC2 Security Group to include in the authorization.
|
void |
setEc2SecurityGroupOwnerId(java.lang.String value)
Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnSecurityGroupIngress(Construct scope, java.lang.String id, CfnSecurityGroupIngressProps 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getCacheSecurityGroupName()
public void setCacheSecurityGroupName(java.lang.String value)
public java.lang.String getEc2SecurityGroupName()
public void setEc2SecurityGroupName(java.lang.String value)
public java.lang.String getEc2SecurityGroupOwnerId()
The Amazon access key ID is not an acceptable value.
public void setEc2SecurityGroupOwnerId(java.lang.String value)
The Amazon access key ID is not an acceptable value.