CfnSecurityGroupIngressProps

class aws_cdk.aws_elasticache.CfnSecurityGroupIngressProps(*, cache_security_group_name, ec2_security_group_name, ec2_security_group_owner_id=None)

Bases: object

Properties for defining a CfnSecurityGroupIngress.

Parameters
  • cache_security_group_name (str) – The name of the Cache Security Group to authorize.

  • ec2_security_group_name (str) – Name of the EC2 Security Group to include in the authorization.

  • ec2_security_group_owner_id (Optional[str]) – 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.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group-ingress.html

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.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"
)

Attributes

cache_security_group_name

The name of the Cache Security Group to authorize.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group-ingress.html#cfn-elasticache-securitygroupingress-cachesecuritygroupname

Return type

str

ec2_security_group_name

Name of the EC2 Security Group to include in the authorization.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group-ingress.html#cfn-elasticache-securitygroupingress-ec2securitygroupname

Return type

str

ec2_security_group_owner_id

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.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group-ingress.html#cfn-elasticache-securitygroupingress-ec2securitygroupownerid

Return type

Optional[str]