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 .

See:

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.
from aws_cdk import 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.

See:

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.

See:

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

permission

INSTANCE-ATTACH or EIP-ASSOCIATE .

See:

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

Type:

The type of permission to grant