interface CfnResourcePolicyMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Lambda.CfnResourcePolicyMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awslambda#CfnResourcePolicyMixinProps |
Java | software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnResourcePolicyMixinProps |
Python | aws_cdk.cfn_property_mixins.aws_lambda.CfnResourcePolicyMixinProps |
TypeScript | @aws-cdk/cfn-property-mixins » aws_lambda » CfnResourcePolicyMixinProps |
Properties for CfnResourcePolicyPropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from '@aws-cdk/cfn-property-mixins';
declare const policyDocument: any;
const cfnResourcePolicyMixinProps: lambda.CfnResourcePolicyMixinProps = {
policyDocument: policyDocument,
resourceArn: 'resourceArn',
};
Properties
| Name | Type | Description |
|---|---|---|
| policy | any | The policy document you want to add to your LAM resource. |
| resource | string | The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to. |
policyDocument?
Type:
any
(optional)
The policy document you want to add to your LAM resource.
This is formatted as a JSON string. For more information, see Working with resource-based policies in in the Developer Guide.
resourceArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to.
For a function, you can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.

.NET
Go
Java
Python
TypeScript