aws-cdk-lib.aws_ec2.CfnNetworkInterfacePermissionProps

interface CfnNetworkInterfacePermissionProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnNetworkInterfacePermissionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnNetworkInterfacePermissionProps
Javasoftware.amazon.awscdk.services.ec2.CfnNetworkInterfacePermissionProps
Pythonaws_cdk.aws_ec2.CfnNetworkInterfacePermissionProps
TypeScript aws-cdk-lib » aws_ec2 » CfnNetworkInterfacePermissionProps

Properties for defining a CfnNetworkInterfacePermission.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnNetworkInterfacePermissionProps: ec2.CfnNetworkInterfacePermissionProps = {
  awsAccountId: 'awsAccountId',
  networkInterfaceId: 'networkInterfaceId',
  permission: 'permission',
};

Properties

NameTypeDescription
awsAccountIdstringThe AWS account ID.
networkInterfaceIdstringThe ID of the network interface.
permissionstringThe type of permission to grant: INSTANCE-ATTACH or EIP-ASSOCIATE .

awsAccountId

Type: string

The AWS account ID.


networkInterfaceId

Type: string

The ID of the network interface.


permission

Type: string

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