AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::SMSVOICE::ResourcePolicy

CfnResourcePolicy

Attaches a resource-based policy to a End User Messaging resource(phone number, sender Id, phone poll, or opt-out list) that is used for sharing the resource. A shared resource can be a Pool, Opt-out list, Sender Id, or Phone number. For more information about resource-based policies, see [Working with shared resources](https://docs.aws.amazon.com/sms-voice/latest/userguide/shared-resources.html) in the *End User Messaging User Guide* .

Import

import { CfnResourcePolicy } from 'aws-cdk-lib/aws-smsvoice';

Or use the module namespace:

import * as smsvoice from 'aws-cdk-lib/aws-smsvoice';
// smsvoice.CfnResourcePolicy

Properties

Configuration passed to the constructor as CfnResourcePolicyProps.

policyDocumentRequired
any

The JSON formatted resource-based policy to attach.

resourceArnRequired
string

The Amazon Resource Name (ARN) of the End User Messaging resource attached to the resource-based policy.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-smsvoice
CFN TypeAWS::SMSVOICE::ResourcePolicy
Properties2

External Links