@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.009Z") @Stability(value=Stable) 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. |
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 |
|---|---|
|
CfnSecurityGroupIngress(software.constructs.Construct scope,
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 |
|---|---|
String |
getCacheSecurityGroupName()
The name of the Cache Security Group to authorize.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getEc2SecurityGroupName()
Name of the EC2 Security Group to include in the authorization.
|
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 Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCacheSecurityGroupName(String value)
The name of the Cache Security Group to authorize.
|
void |
setEc2SecurityGroupName(String value)
Name of the EC2 Security Group to include in the authorization.
|
void |
setEc2SecurityGroupOwnerId(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, 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 CfnSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnSecurityGroupIngress(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@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 String getCacheSecurityGroupName()
@Stability(value=Stable)
public void setCacheSecurityGroupName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getEc2SecurityGroupName()
@Stability(value=Stable)
public void setEc2SecurityGroupName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getEc2SecurityGroupOwnerId()
The Amazon access key ID is not an acceptable value.
@Stability(value=Stable)
public void setEc2SecurityGroupOwnerId(@Nullable
String value)
The Amazon access key ID is not an acceptable value.
Copyright © 2022. All rights reserved.