Class CfnSecurityGroupIngress

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:56.492Z") @Stability(Stable) public class CfnSecurityGroupIngress extends CfnResource implements IInspectable
A CloudFormation AWS::ElastiCache::SecurityGroupIngress.

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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnSecurityGroupIngress

      protected CfnSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnSecurityGroupIngress

      protected CfnSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnSecurityGroupIngress

      @Stability(Stable) public CfnSecurityGroupIngress(@NotNull Construct scope, @NotNull String id, @NotNull CfnSecurityGroupIngressProps props)
      Create a new AWS::ElastiCache::SecurityGroupIngress.

      Parameters:
      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.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCacheSecurityGroupName

      @Stability(Stable) @NotNull public String getCacheSecurityGroupName()
      The name of the Cache Security Group to authorize.
    • setCacheSecurityGroupName

      @Stability(Stable) public void setCacheSecurityGroupName(@NotNull String value)
      The name of the Cache Security Group to authorize.
    • getEc2SecurityGroupName

      @Stability(Stable) @NotNull public String getEc2SecurityGroupName()
      Name of the EC2 Security Group to include in the authorization.
    • setEc2SecurityGroupName

      @Stability(Stable) public void setEc2SecurityGroupName(@NotNull String value)
      Name of the EC2 Security Group to include in the authorization.
    • getEc2SecurityGroupOwnerId

      @Stability(Stable) @Nullable public String getEc2SecurityGroupOwnerId()
      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.

    • setEc2SecurityGroupOwnerId

      @Stability(Stable) public void setEc2SecurityGroupOwnerId(@Nullable String value)
      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.