Class CfnNetworkInterfacePermission
Specifies a permission for an Amazon EC2 network interface.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnNetworkInterfacePermission : CfnResource, IInspectable
Syntax (vb)
Public Class CfnNetworkInterfacePermission
Inherits CfnResource
Implements IInspectable
Remarks
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(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 |
CfnNetworkInterfacePermission(Construct, String, ICfnNetworkInterfacePermissionProps) |
Properties
AttrId | |
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(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
CfnNetworkInterfacePermission(Construct, String, ICfnNetworkInterfacePermissionProps)
public CfnNetworkInterfacePermission(Construct scope, string id, ICfnNetworkInterfacePermissionProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnNetworkInterfacePermissionProps
Resource properties.
Properties
AttrId
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
AwsAccountId
The AWS account ID.
public virtual string AwsAccountId { get; set; }
Property Value
System.String
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
Permission
The type of permission to grant: INSTANCE-ATTACH
or EIP-ASSOCIATE
.
public virtual string Permission { get; set; }
Property Value
System.String
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>