Struct aws_sdk_sns::operation::add_permission::AddPermissionInput
source · #[non_exhaustive]pub struct AddPermissionInput {
pub topic_arn: Option<String>,
pub label: Option<String>,
pub aws_account_id: Option<Vec<String>>,
pub action_name: Option<Vec<String>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.topic_arn: Option<String>
The ARN of the topic whose access control policy you wish to modify.
label: Option<String>
A unique identifier for the new policy statement.
aws_account_id: 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.
action_name: Option<Vec<String>>
The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example Publish
.
Implementations§
source§impl AddPermissionInput
impl AddPermissionInput
sourcepub fn topic_arn(&self) -> Option<&str>
pub fn topic_arn(&self) -> Option<&str>
The ARN of the topic whose access control policy you wish to modify.
sourcepub fn aws_account_id(&self) -> &[String]
pub fn aws_account_id(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .aws_account_id.is_none()
.
sourcepub fn action_name(&self) -> &[String]
pub fn action_name(&self) -> &[String]
The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example Publish
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .action_name.is_none()
.
source§impl AddPermissionInput
impl AddPermissionInput
sourcepub fn builder() -> AddPermissionInputBuilder
pub fn builder() -> AddPermissionInputBuilder
Creates a new builder-style object to manufacture AddPermissionInput
.
Trait Implementations§
source§impl Clone for AddPermissionInput
impl Clone for AddPermissionInput
source§fn clone(&self) -> AddPermissionInput
fn clone(&self) -> AddPermissionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddPermissionInput
impl Debug for AddPermissionInput
source§impl PartialEq for AddPermissionInput
impl PartialEq for AddPermissionInput
source§fn eq(&self, other: &AddPermissionInput) -> bool
fn eq(&self, other: &AddPermissionInput) -> bool
self
and other
values to be equal, and is used
by ==
.