#[non_exhaustive]pub struct AddPermissionInputBuilder { /* private fields */ }
Expand description
A builder for AddPermissionInput
.
Implementations§
source§impl AddPermissionInputBuilder
impl AddPermissionInputBuilder
sourcepub fn topic_arn(self, input: impl Into<String>) -> Self
pub fn topic_arn(self, input: impl Into<String>) -> Self
The ARN of the topic whose access control policy you wish to modify.
This field is required.sourcepub fn set_topic_arn(self, input: Option<String>) -> Self
pub fn set_topic_arn(self, input: Option<String>) -> Self
The ARN of the topic whose access control policy you wish to modify.
sourcepub fn get_topic_arn(&self) -> &Option<String>
pub fn get_topic_arn(&self) -> &Option<String>
The ARN of the topic whose access control policy you wish to modify.
sourcepub fn label(self, input: impl Into<String>) -> Self
pub fn label(self, input: impl Into<String>) -> Self
A unique identifier for the new policy statement.
This field is required.sourcepub fn set_label(self, input: Option<String>) -> Self
pub fn set_label(self, input: Option<String>) -> Self
A unique identifier for the new policy statement.
sourcepub fn aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
Appends an item to aws_account_id
.
To override the contents of this collection use set_aws_account_id
.
The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. The users must have Amazon Web Services account, but do not need to be signed up for this service.
sourcepub fn set_aws_account_id(self, input: Option<Vec<String>>) -> Self
pub fn set_aws_account_id(self, input: Option<Vec<String>>) -> Self
The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. The users must have Amazon Web Services account, but do not need to be signed up for this service.
sourcepub fn get_aws_account_id(&self) -> &Option<Vec<String>>
pub fn get_aws_account_id(&self) -> &Option<Vec<String>>
The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. The users must have Amazon Web Services account, but do not need to be signed up for this service.
sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
Appends an item to action_name
.
To override the contents of this collection use set_action_name
.
The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example Publish
.
sourcepub fn set_action_name(self, input: Option<Vec<String>>) -> Self
pub fn set_action_name(self, input: Option<Vec<String>>) -> Self
The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example Publish
.
sourcepub fn get_action_name(&self) -> &Option<Vec<String>>
pub fn get_action_name(&self) -> &Option<Vec<String>>
The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example Publish
.
sourcepub fn build(self) -> Result<AddPermissionInput, BuildError>
pub fn build(self) -> Result<AddPermissionInput, BuildError>
Consumes the builder and constructs a AddPermissionInput
.
source§impl AddPermissionInputBuilder
impl AddPermissionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AddPermissionOutput, SdkError<AddPermissionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AddPermissionOutput, SdkError<AddPermissionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AddPermissionInputBuilder
impl Clone for AddPermissionInputBuilder
source§fn clone(&self) -> AddPermissionInputBuilder
fn clone(&self) -> AddPermissionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddPermissionInputBuilder
impl Debug for AddPermissionInputBuilder
source§impl Default for AddPermissionInputBuilder
impl Default for AddPermissionInputBuilder
source§fn default() -> AddPermissionInputBuilder
fn default() -> AddPermissionInputBuilder
source§impl PartialEq for AddPermissionInputBuilder
impl PartialEq for AddPermissionInputBuilder
source§fn eq(&self, other: &AddPermissionInputBuilder) -> bool
fn eq(&self, other: &AddPermissionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.