Class CfnServiceNetworkVpcAssociation
Associates a VPC with a service network.
Inherited Members
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnServiceNetworkVpcAssociation : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnServiceNetworkVpcAssociation
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
When you associate a VPC with the service network, it enables all the resources within that VPC to be clients and communicate with other services in the service network. For more information, see Manage VPC associations in the Amazon VPC Lattice User Guide .
You can't use this operation if there is a disassociation in progress. If the association fails, retry by deleting the association and recreating it.
As a result of this operation, the association gets created in the service network account and the VPC owner account.
If you add a security group to the service network and VPC association, the association must continue to always have at least one security group. You can add or edit security groups at any time. However, to remove all security groups, you must first delete the association and recreate it without security groups.
CloudformationResource: AWS::VpcLattice::ServiceNetworkVpcAssociation
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.VpcLattice;
var cfnServiceNetworkVpcAssociation = new CfnServiceNetworkVpcAssociation(this, "MyCfnServiceNetworkVpcAssociation", new CfnServiceNetworkVpcAssociationProps {
SecurityGroupIds = new [] { "securityGroupIds" },
ServiceNetworkIdentifier = "serviceNetworkIdentifier",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcIdentifier = "vpcIdentifier"
});
Synopsis
Constructors
CfnServiceNetworkVpcAssociation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnServiceNetworkVpcAssociation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnServiceNetworkVpcAssociation(Construct, String, ICfnServiceNetworkVpcAssociationProps) |
Properties
AttrArn | The Amazon Resource Name (ARN) of the association between the service network and the VPC. |
AttrCreatedAt | The date and time that the association was created, specified in ISO-8601 format. |
AttrId | The ID of the specified association between the service network and the VPC. |
AttrServiceNetworkArn | The Amazon Resource Name (ARN) of the service network. |
AttrServiceNetworkId | The ID of the service network. |
AttrServiceNetworkName | The name of the service network. |
AttrStatus | The status of the association. |
AttrVpcId | The ID of the VPC. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
SecurityGroupIds | The IDs of the security groups. |
ServiceNetworkIdentifier | The ID or Amazon Resource Name (ARN) of the service network. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags for the association. |
VpcIdentifier | The ID of the VPC. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnServiceNetworkVpcAssociation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnServiceNetworkVpcAssociation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnServiceNetworkVpcAssociation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnServiceNetworkVpcAssociation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnServiceNetworkVpcAssociation(Construct, String, ICfnServiceNetworkVpcAssociationProps)
public CfnServiceNetworkVpcAssociation(Construct scope, string id, ICfnServiceNetworkVpcAssociationProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnServiceNetworkVpcAssociationProps
Resource properties.
Properties
AttrArn
The Amazon Resource Name (ARN) of the association between the service network and the VPC.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
AttrCreatedAt
The date and time that the association was created, specified in ISO-8601 format.
public virtual string AttrCreatedAt { get; }
Property Value
System.String
Remarks
CloudformationAttribute: CreatedAt
AttrId
The ID of the specified association between the service network and the VPC.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
AttrServiceNetworkArn
The Amazon Resource Name (ARN) of the service network.
public virtual string AttrServiceNetworkArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: ServiceNetworkArn
AttrServiceNetworkId
The ID of the service network.
public virtual string AttrServiceNetworkId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: ServiceNetworkId
AttrServiceNetworkName
The name of the service network.
public virtual string AttrServiceNetworkName { get; }
Property Value
System.String
Remarks
CloudformationAttribute: ServiceNetworkName
AttrStatus
The status of the association.
public virtual string AttrStatus { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Status
AttrVpcId
The ID of the VPC.
public virtual string AttrVpcId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: VpcId
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
SecurityGroupIds
The IDs of the security groups.
public virtual string[] SecurityGroupIds { get; set; }
Property Value
System.String[]
ServiceNetworkIdentifier
The ID or Amazon Resource Name (ARN) of the service network.
public virtual string ServiceNetworkIdentifier { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags for the association.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
VpcIdentifier
The ID of the VPC.
public virtual string VpcIdentifier { 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>