Skip to content
v2.276.0

CfnSecurityGroupIngressProps Struct ​

Properties for defining a CfnSecurityGroupIngress.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticache as elasticache } from 'aws-cdk-lib';
const cfnSecurityGroupIngressProps: elasticache.CfnSecurityGroupIngressProps = {
  cacheSecurityGroupName: 'cacheSecurityGroupName',
  ec2SecurityGroupName: 'ec2SecurityGroupName',

  // the properties below are optional
  ec2SecurityGroupOwnerId: 'ec2SecurityGroupOwnerId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticache as elasticache

cfn_security_group_ingress_props = elasticache.CfnSecurityGroupIngressProps(
    cache_security_group_name="cacheSecurityGroupName",
    ec2_security_group_name="ec2SecurityGroupName",

    # the properties below are optional
    ec2_security_group_owner_id="ec2SecurityGroupOwnerId"
)
java
// 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.*;

CfnSecurityGroupIngressProps cfnSecurityGroupIngressProps = CfnSecurityGroupIngressProps.builder()
        .cacheSecurityGroupName("cacheSecurityGroupName")
        .ec2SecurityGroupName("ec2SecurityGroupName")

        // the properties below are optional
        .ec2SecurityGroupOwnerId("ec2SecurityGroupOwnerId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElastiCache;

var cfnSecurityGroupIngressProps = new CfnSecurityGroupIngressProps {
    CacheSecurityGroupName = "cacheSecurityGroupName",
    Ec2SecurityGroupName = "ec2SecurityGroupName",

    // the properties below are optional
    Ec2SecurityGroupOwnerId = "ec2SecurityGroupOwnerId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnSecurityGroupIngressProps := &CfnSecurityGroupIngressProps{
	CacheSecurityGroupName: jsii.String("cacheSecurityGroupName"),
	Ec2SecurityGroupName: jsii.String("ec2SecurityGroupName"),

	// the properties below are optional
	Ec2SecurityGroupOwnerId: jsii.String("ec2SecurityGroupOwnerId"),
}

Properties ​

cacheSecurityGroupNamestringcache_security_group_namestrcacheSecurityGroupNameStringCacheSecurityGroupNamestringCacheSecurityGroupName*stringrequired#
The name of the Cache Security Group to authorize.
ec2SecurityGroupNamestringec2_security_group_namestrec2SecurityGroupNameStringEc2SecurityGroupNamestringEc2SecurityGroupName*stringrequired#
Name of the EC2 Security Group to include in the authorization.
ec2SecurityGroupOwnerIdoptionalstringec2_security_group_owner_idoptionalstrec2SecurityGroupOwnerIdoptionalStringEc2SecurityGroupOwnerIdoptionalstringEc2SecurityGroupOwnerIdoptional*string#
Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property.

The Amazon access key ID is not an acceptable value.