Skip to content

Put Resource Policy

pinpointsmsvoicev2_put_resource_policy R Documentation

Attaches a resource-based policy to a AWS End User Messaging SMS and Voice resource(phone number, sender Id, phone poll, or opt-out list) that is used for sharing the resource

Description

Attaches a resource-based policy to a AWS End User Messaging SMS and Voice 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 in the AWS End User Messaging SMS User Guide.

Usage

pinpointsmsvoicev2_put_resource_policy(ResourceArn, Policy)

Arguments

ResourceArn

[required] The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource to attach the resource-based policy to.

Policy

[required] The JSON formatted resource-based policy to attach.

Value

A list with the following syntax:

list(
  ResourceArn = "string",
  Policy = "string",
  CreatedTimestamp = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$put_resource_policy(
  ResourceArn = "string",
  Policy = "string"
)