# CfnNetworkInterfacePermissionProps

Properties for defining a `CfnNetworkInterfacePermission`.

Used as props by: [CfnNetworkInterfacePermission](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkInterfacePermission.html)

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `awsAccountId`: string (required) — The AWS account ID.

- `networkInterfaceId`: string (required) — The ID of the network interface.

- `permission`: string (required) — The type of permission to grant: `INSTANCE-ATTACH` or `EIP-ASSOCIATE` .
