Class CfnNetworkInterfacePermission
A CloudFormation AWS::EC2::NetworkInterfacePermission
.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnNetworkInterfacePermission : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnNetworkInterfacePermission
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Specifies a permission for an Amazon EC2 network interface. For example, you can grant an AWS authorized partner account permission to attach the specified network interface to an instance in their account.
CloudformationResource: AWS::EC2::NetworkInterfacePermission
ExampleMetadata: fixture=_generated
Examples
// 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 cfnNetworkInterfacePermission = new CfnNetworkInterfacePermission(this, "MyCfnNetworkInterfacePermission", new CfnNetworkInterfacePermissionProps {
AwsAccountId = "awsAccountId",
NetworkInterfaceId = "networkInterfaceId",
Permission = "permission"
});
Synopsis
Constructors
CfnNetworkInterfacePermission(Construct, String, ICfnNetworkInterfacePermissionProps) | Create a new |
CfnNetworkInterfacePermission(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnNetworkInterfacePermission(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AwsAccountId | The AWS account ID. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
NetworkInterfaceId | The ID of the network interface. |
Permission | The type of permission to grant: |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnNetworkInterfacePermission(Construct, String, ICfnNetworkInterfacePermissionProps)
Create a new AWS::EC2::NetworkInterfacePermission
.
public CfnNetworkInterfacePermission(Construct scope, string id, ICfnNetworkInterfacePermissionProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnNetworkInterfacePermissionProps
- resource properties.
CfnNetworkInterfacePermission(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnNetworkInterfacePermission(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnNetworkInterfacePermission(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnNetworkInterfacePermission(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AwsAccountId
The AWS account ID.
public virtual string AwsAccountId { get; set; }
Property Value
System.String
Remarks
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
NetworkInterfaceId
The ID of the network interface.
public virtual string NetworkInterfaceId { get; set; }
Property Value
System.String
Remarks
Permission
The type of permission to grant: INSTANCE-ATTACH
or EIP-ASSOCIATE
.
public virtual string Permission { get; set; }
Property Value
System.String
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>