Terraform data source for managing an AWS VPC Lattice Resource Policy.
data "aws_vpclattice_resource_policy" "example" {
resource_arn = aws_vpclattice_service_network.example.arn
}
The following arguments are required:
resource_arn
- (Required) Resource ARN of the resource for which a policy is retrieved.This data source exports the following attributes in addition to the arguments above:
policy
- JSON-encoded string representation of the applied resource policy.