Class CfnServiceNetworkVpcAssociationProps
Properties for defining a CfnServiceNetworkVpcAssociation
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.AWS.VpcLattice.dll
Syntax (csharp)
public class CfnServiceNetworkVpcAssociationProps : Object, ICfnServiceNetworkVpcAssociationProps
Syntax (vb)
Public Class CfnServiceNetworkVpcAssociationProps
Inherits Object
Implements ICfnServiceNetworkVpcAssociationProps
Remarks
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 cfnServiceNetworkVpcAssociationProps = new CfnServiceNetworkVpcAssociationProps {
SecurityGroupIds = new [] { "securityGroupIds" },
ServiceNetworkIdentifier = "serviceNetworkIdentifier",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcIdentifier = "vpcIdentifier"
};
Synopsis
Constructors
CfnServiceNetworkVpcAssociationProps() |
Properties
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. |
Constructors
CfnServiceNetworkVpcAssociationProps()
public CfnServiceNetworkVpcAssociationProps()
Properties
SecurityGroupIds
The IDs of the security groups.
public 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 .
ServiceNetworkIdentifier
The ID or Amazon Resource Name (ARN) of the service network.
public 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.
Tags
VpcIdentifier
The ID of the VPC.
public string VpcIdentifier { get; set; }
Property Value
System.String