CfnNetworkInterfacePermissionProps

class aws_cdk.aws_ec2.CfnNetworkInterfacePermissionProps(*, aws_account_id, network_interface_id, permission)

Bases: object

Properties for defining a CfnNetworkInterfacePermission.

Parameters:
  • aws_account_id (str) – The AWS account ID.

  • network_interface_id (str) – The ID of the network interface.

  • permission (str) – The type of permission to grant: INSTANCE-ATTACH or EIP-ASSOCIATE .

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.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_ec2 as ec2

cfn_network_interface_permission_props = ec2.CfnNetworkInterfacePermissionProps(
    aws_account_id="awsAccountId",
    network_interface_id="networkInterfaceId",
    permission="permission"
)

Attributes

aws_account_id

The AWS account ID.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-awsaccountid

network_interface_id

The ID of the network interface.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-networkinterfaceid

permission

INSTANCE-ATTACH or EIP-ASSOCIATE .

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-permission

Type:

The type of permission to grant