Class: AWSCDK::Elasticache::CfnSecurityGroupIngressProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticache/cfn_security_group_ingress_props.rb

Overview

Properties for defining a CfnSecurityGroupIngress.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cache_security_group_name:, ec2_security_group_name:, ec2_security_group_owner_id: nil) ⇒ CfnSecurityGroupIngressProps

Returns a new instance of CfnSecurityGroupIngressProps.

Parameters:

  • cache_security_group_name (String)

    The name of the Cache Security Group to authorize.

  • ec2_security_group_name (String)

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

  • ec2_security_group_owner_id (String, nil) (defaults to: nil)

    Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property.



12
13
14
15
16
17
18
19
# File 'elasticache/cfn_security_group_ingress_props.rb', line 12

def initialize(cache_security_group_name:, ec2_security_group_name:, ec2_security_group_owner_id: nil)
  @cache_security_group_name = cache_security_group_name
  Jsii::Type.check_type(@cache_security_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cacheSecurityGroupName")
  @ec2_security_group_name = ec2_security_group_name
  Jsii::Type.check_type(@ec2_security_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ec2SecurityGroupName")
  @ec2_security_group_owner_id = ec2_security_group_owner_id
  Jsii::Type.check_type(@ec2_security_group_owner_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ec2SecurityGroupOwnerId") unless @ec2_security_group_owner_id.nil?
end

Instance Attribute Details

#cache_security_group_nameString (readonly)

The name of the Cache Security Group to authorize.



25
26
27
# File 'elasticache/cfn_security_group_ingress_props.rb', line 25

def cache_security_group_name
  @cache_security_group_name
end

#ec2_security_group_nameString (readonly)

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



30
31
32
# File 'elasticache/cfn_security_group_ingress_props.rb', line 30

def ec2_security_group_name
  @ec2_security_group_name
end

#ec2_security_group_owner_idString? (readonly)

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.



37
38
39
# File 'elasticache/cfn_security_group_ingress_props.rb', line 37

def ec2_security_group_owner_id
  @ec2_security_group_owner_id
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'elasticache/cfn_security_group_ingress_props.rb', line 39

def self.jsii_properties
  {
    :cache_security_group_name => "cacheSecurityGroupName",
    :ec2_security_group_name => "ec2SecurityGroupName",
    :ec2_security_group_owner_id => "ec2SecurityGroupOwnerId",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'elasticache/cfn_security_group_ingress_props.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "cacheSecurityGroupName" => @cache_security_group_name,
    "ec2SecurityGroupName" => @ec2_security_group_name,
    "ec2SecurityGroupOwnerId" => @ec2_security_group_owner_id,
  })
  result.compact
end