Class: AWSCDK::EC2::CfnNetworkInterfacePermissionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_network_interface_permission_props.rb

Overview

Properties for defining a CfnNetworkInterfacePermission.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aws_account_id:, network_interface_id:, permission:) ⇒ CfnNetworkInterfacePermissionProps

Returns a new instance of CfnNetworkInterfacePermissionProps.

Parameters:

  • aws_account_id (String)

    The AWS account ID.

  • network_interface_id (String)

    The ID of the network interface.

  • permission (String)

    The type of permission to grant: INSTANCE-ATTACH or EIP-ASSOCIATE .



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

def initialize(aws_account_id:, network_interface_id:, permission:)
  @aws_account_id = 
  Jsii::Type.check_type(@aws_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "awsAccountId")
  @network_interface_id = network_interface_id
  Jsii::Type.check_type(@network_interface_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkInterfaceId")
  @permission = permission
  Jsii::Type.check_type(@permission, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "permission")
end

Instance Attribute Details

#aws_account_idString (readonly)

The AWS account ID.



25
26
27
# File 'ec2/cfn_network_interface_permission_props.rb', line 25

def 
  @aws_account_id
end

#network_interface_idString (readonly)

The ID of the network interface.



30
31
32
# File 'ec2/cfn_network_interface_permission_props.rb', line 30

def network_interface_id
  @network_interface_id
end

#permissionString (readonly)

The type of permission to grant: INSTANCE-ATTACH or EIP-ASSOCIATE .



35
36
37
# File 'ec2/cfn_network_interface_permission_props.rb', line 35

def permission
  @permission
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'ec2/cfn_network_interface_permission_props.rb', line 37

def self.jsii_properties
  {
    :aws_account_id => "awsAccountId",
    :network_interface_id => "networkInterfaceId",
    :permission => "permission",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'ec2/cfn_network_interface_permission_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "awsAccountId" => @aws_account_id,
    "networkInterfaceId" => @network_interface_id,
    "permission" => @permission,
  })
  result.compact
end