CfnServiceNetworkVpcAssociationProps
- class aws_cdk.aws_vpclattice.CfnServiceNetworkVpcAssociationProps(*, security_group_ids=None, service_network_identifier=None, tags=None, vpc_identifier=None)
Bases:
object
Properties for defining a
CfnServiceNetworkVpcAssociation
.- Parameters:
security_group_ids (
Optional
[Sequence
[str
]]) – The IDs of the security groups. 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 .service_network_identifier (
Optional
[str
]) – The ID or Amazon Resource Name (ARN) of the service network. You must use the ARN when the resources specified in the operation are in different accounts.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – The tags for the association.vpc_identifier (
Optional
[str
]) – The ID of the VPC.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_vpclattice as vpclattice cfn_service_network_vpc_association_props = vpclattice.CfnServiceNetworkVpcAssociationProps( security_group_ids=["securityGroupIds"], service_network_identifier="serviceNetworkIdentifier", tags=[CfnTag( key="key", value="value" )], vpc_identifier="vpcIdentifier" )
Attributes
- security_group_ids
The IDs of the security groups.
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 .
- service_network_identifier
The ID or Amazon Resource Name (ARN) of the service network.
You must use the ARN when the resources specified in the operation are in different accounts.
- tags
The tags for the association.