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
orEIP-ASSOCIATE
.
- See:
- 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.
- network_interface_id
The ID of the network interface.
- permission
INSTANCE-ATTACH
orEIP-ASSOCIATE
.- See:
- Type:
The type of permission to grant