Show / Hide Table of Contents

Class CfnServiceNetworkVpcAssociation

A CloudFormation AWS::VpcLattice::ServiceNetworkVpcAssociation.

Inheritance
System.Object
Construct
CfnElement
CfnRefElement
CfnResource
CfnServiceNetworkVpcAssociation
Implements
IConstruct
Constructs.IConstruct
IDependable
IInspectable
Inherited Members
CfnResource.IsCfnResource(IConstruct)
CfnResource.AddDeletionOverride(String)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(String, Object)
CfnResource.AddOverride(String, Object)
CfnResource.AddPropertyDeletionOverride(String)
CfnResource.AddPropertyOverride(String, Object)
CfnResource.ApplyRemovalPolicy(Nullable<RemovalPolicy>, IRemovalPolicyOptions)
CfnResource.GetAtt(String)
CfnResource.GetMetadata(String)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(Object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.UpdatedProperites
CfnRefElement.Ref
CfnElement.IsCfnElement(Object)
CfnElement.OverrideLogicalId(String)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.AWS.VpcLattice.dll
Syntax (csharp)
public class CfnServiceNetworkVpcAssociation : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnServiceNetworkVpcAssociation
    Inherits CfnResource
    Implements IConstruct, IDependable, IInspectable
Remarks

Associates a VPC with a service network. 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

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html

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(Construct, String, ICfnServiceNetworkVpcAssociationProps)

Create a new AWS::VpcLattice::ServiceNetworkVpcAssociation.

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

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

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(Construct, String, ICfnServiceNetworkVpcAssociationProps)

Create a new AWS::VpcLattice::ServiceNetworkVpcAssociation.

public CfnServiceNetworkVpcAssociation(Construct scope, string id, ICfnServiceNetworkVpcAssociationProps props = null)
Parameters
scope Construct
  • scope in which this resource is defined.
id System.String
  • scoped id of the resource.
props ICfnServiceNetworkVpcAssociationProps
  • resource properties.

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

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
CfnResource.CfnProperties

SecurityGroupIds

The IDs of the security groups.

public virtual string[] SecurityGroupIds { get; set; }
Property Value

System.String[]

Remarks

Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html#cfn-vpclattice-servicenetworkvpcassociation-securitygroupids

ServiceNetworkIdentifier

The ID or Amazon Resource Name (ARN) of the service network.

public virtual string ServiceNetworkIdentifier { get; set; }
Property Value

System.String

Remarks

You must use the ARN when the resources specified in the operation are in different accounts.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html#cfn-vpclattice-servicenetworkvpcassociation-servicenetworkidentifier

Tags

The tags for the association.

public virtual TagManager Tags { get; }
Property Value

TagManager

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html#cfn-vpclattice-servicenetworkvpcassociation-tags

VpcIdentifier

The ID of the VPC.

public virtual string VpcIdentifier { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html#cfn-vpclattice-servicenetworkvpcassociation-vpcidentifier

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>

Overrides
CfnResource.RenderProperties(IDictionary<String, Object>)

Implements

IConstruct
Constructs.IConstruct
IDependable
IInspectable
Back to top Generated by DocFX