Class: AWSCDK::EC2::CfnNetworkInterfacePermissionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnNetworkInterfacePermissionProps
- Defined in:
- ec2/cfn_network_interface_permission_props.rb
Overview
Properties for defining a CfnNetworkInterfacePermission.
Instance Attribute Summary collapse
-
#aws_account_id ⇒ String
readonly
The AWS account ID.
-
#network_interface_id ⇒ String
readonly
The ID of the network interface.
-
#permission ⇒ String
readonly
The type of permission to grant:
INSTANCE-ATTACHorEIP-ASSOCIATE.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(aws_account_id:, network_interface_id:, permission:) ⇒ CfnNetworkInterfacePermissionProps
constructor
A new instance of CfnNetworkInterfacePermissionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(aws_account_id:, network_interface_id:, permission:) ⇒ CfnNetworkInterfacePermissionProps
Returns a new instance of CfnNetworkInterfacePermissionProps.
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 = 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 = Jsii::Type.check_type(@permission, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "permission") end |
Instance Attribute Details
#aws_account_id ⇒ String (readonly)
The AWS account ID.
25 26 27 |
# File 'ec2/cfn_network_interface_permission_props.rb', line 25 def aws_account_id @aws_account_id end |
#network_interface_id ⇒ String (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 |
#permission ⇒ String (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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |