CfnNetworkInterfacePermissionProps Struct
Properties for defining a CfnNetworkInterfacePermission.
| Source |
|---|
Example
ts
// 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',
};
python
# 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"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnNetworkInterfacePermissionProps cfnNetworkInterfacePermissionProps = CfnNetworkInterfacePermissionProps.builder()
.awsAccountId("awsAccountId")
.networkInterfaceId("networkInterfaceId")
.permission("permission")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnNetworkInterfacePermissionProps = new CfnNetworkInterfacePermissionProps {
AwsAccountId = "awsAccountId",
NetworkInterfaceId = "networkInterfaceId",
Permission = "permission"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnNetworkInterfacePermissionProps := &CfnNetworkInterfacePermissionProps{
AwsAccountId: jsii.String("awsAccountId"),
NetworkInterfaceId: jsii.String("networkInterfaceId"),
Permission: jsii.String("permission"),
}
Properties
awsAccountIdstringaws_account_idstrawsAccountIdStringAwsAccountIdstringAwsAccountId*string required #The AWS account ID.
networkInterfaceIdstringnetwork_interface_idstrnetworkInterfaceIdStringNetworkInterfaceIdstringNetworkInterfaceId*string required #The ID of the network interface.
The type of permission to grant: `INSTANCE-ATTACH` or `EIP-ASSOCIATE` .