AWS::VpcLattice::ResourcePolicy - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::VpcLattice::ResourcePolicy

Retrieves information about the resource policy. The resource policy is an IAM policy created on behalf of the resource owner when they share a resource.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::VpcLattice::ResourcePolicy", "Properties" : { "Policy" : Json, "ResourceArn" : String } }

YAML

Type: AWS::VpcLattice::ResourcePolicy Properties: Policy: Json ResourceArn: String

Properties

Policy

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

Required: Yes

Type: Json

Update requires: No interruption

ResourceArn

An IAM policy.

Required: Yes

Type: String

Pattern: ^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:((servicenetwork/sn)|(service/svc))-[0-9a-z]{17}$

Minimum: 20

Maximum: 200

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the Amazon Resource Name (ARN) of the resource policy.

For more information about using the Ref function, see Ref.