AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::NetworkInterfacePermission

CfnNetworkInterfacePermission

Specifies a permission for the network interface, For example, you can grant an AWS -authorized account permission to attach the network interface to an instance in their account.

Import

import { CfnNetworkInterfacePermission } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnNetworkInterfacePermission

Properties

Configuration passed to the constructor as CfnNetworkInterfacePermissionProps.

awsAccountIdRequired
string

The AWS account ID.

networkInterfaceIdRequired
string

The ID of the network interface.

permissionRequired
string

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

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic