aws-cdk-lib.aws_ssm.CfnResourcePolicyProps

interface CfnResourcePolicyProps

LanguageType name
.NETAmazon.CDK.AWS.SSM.CfnResourcePolicyProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsssm#CfnResourcePolicyProps
Javasoftware.amazon.awscdk.services.ssm.CfnResourcePolicyProps
Pythonaws_cdk.aws_ssm.CfnResourcePolicyProps
TypeScript aws-cdk-lib » aws_ssm » CfnResourcePolicyProps

Properties for defining a CfnResourcePolicy.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';

declare const policy: any;
const cfnResourcePolicyProps: ssm.CfnResourcePolicyProps = {
  policy: policy,
  resourceArn: 'resourceArn',
};

Properties

NameTypeDescription
policyanyA policy you want to associate with a resource.
resourceArnstringAmazon Resource Name (ARN) of the resource to which you want to attach a policy.

policy

Type: any

A policy you want to associate with a resource.


resourceArn

Type: string

Amazon Resource Name (ARN) of the resource to which you want to attach a policy.