CfnResourcePolicyProps

class aws_cdk.aws_vpclattice.CfnResourcePolicyProps(*, policy, resource_arn)

Bases: object

Properties for defining a CfnResourcePolicy.

Parameters:
  • policy (Any) – The Amazon Resource Name (ARN) of the service network or service.

  • resource_arn (str) – An IAM policy.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-resourcepolicy.html

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

# policy: Any

cfn_resource_policy_props = vpclattice.CfnResourcePolicyProps(
    policy=policy,
    resource_arn="resourceArn"
)

Attributes

policy

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-resourcepolicy.html#cfn-vpclattice-resourcepolicy-policy

resource_arn

An IAM policy.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-resourcepolicy.html#cfn-vpclattice-resourcepolicy-resourcearn