You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::SNS::Types::AddPermissionInput

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing AddPermissionInput as input to an Aws::Client method, you can use a vanilla Hash:

{
  topic_arn: "topicARN", # required
  label: "label", # required
  aws_account_id: ["delegate"], # required
  action_name: ["action"], # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#action_nameArray<String>

The action you want to allow for the specified principal(s).

Valid values: Any Amazon SNS action name, for example Publish.

Returns:

  • (Array<String>)

    The action you want to allow for the specified principal(s).

#aws_account_idArray<String>

The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.

Returns:

  • (Array<String>)

    The AWS account IDs of the users (principals) who will be given access to the specified actions.

#labelString

A unique identifier for the new policy statement.

Returns:

  • (String)

    A unique identifier for the new policy statement.

#topic_arnString

The ARN of the topic whose access control policy you wish to modify.

Returns:

  • (String)

    The ARN of the topic whose access control policy you wish to modify.