# AWS::VpcLattice::ServiceNetworkVpcAssociation Associates a VPC with a service network. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::VpcLattice::ServiceNetworkVpcAssociation",
    "Properties" : {
        "SecurityGroupIds" : [ String, ... ],
        "ServiceNetworkIdentifier" : String,
        "VpcIdentifier" : String,
        "Tags" : [ Tag, ... ]
    }
}
### YAML
Type: AWS::VpcLattice::ServiceNetworkVpcAssociation
Properties:
    SecurityGroupIds: 
      - String
    ServiceNetworkIdentifier: String
    VpcIdentifier: String
    Tags: 
      - Tag
## Properties #### SecurityGroupIds _Required_: No _Type_: List of String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### ServiceNetworkIdentifier _Required_: No _Type_: String _Minimum Length_: 20 _Maximum Length_: 2048 _Pattern_: ^((sn-[0-9a-z]{17})|(arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:servicenetwork/sn-[0-9a-z]{17}))$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### VpcIdentifier _Required_: No _Type_: String _Minimum Length_: 5 _Maximum Length_: 2048 _Pattern_: ^vpc-(([0-9a-z]{8})|([0-9a-z]{17}))$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Tags _Required_: No _Type_: List of Tag _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Arn. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### Arn Returns the Arn value. #### CreatedAt Returns the CreatedAt value. #### Id Returns the Id value. #### ServiceNetworkArn Returns the ServiceNetworkArn value. #### ServiceNetworkId Returns the ServiceNetworkId value. #### ServiceNetworkName Returns the ServiceNetworkName value. #### Status Returns the Status value. #### VpcId Returns the VpcId value.