# AWS::VpcLattice::ResourcePolicy Retrieves information about the resource policy. The resource policy is an IAM policy created by AWS RAM on behalf of the resource owner when they share a resource. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::VpcLattice::ResourcePolicy",
    "Properties" : {
        "ResourceArn" : String,
        "Policy" : Map
    }
}
### YAML
Type: AWS::VpcLattice::ResourcePolicy
Properties:
    ResourceArn: String
    Policy: Map
## Properties #### ResourceArn _Required_: Yes _Type_: String _Minimum Length_: 20 _Maximum Length_: 200 _Pattern_: ^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:((servicenetwork/sn)|(service/svc))-[0-9a-z]{17}$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Policy _Required_: Yes _Type_: Map _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 ResourceArn.