Struct aws_sdk_sqs::operation::add_permission::AddPermissionInput
source · #[non_exhaustive]pub struct AddPermissionInput {
pub queue_url: Option<String>,
pub label: Option<String>,
pub aws_account_ids: Option<Vec<String>>,
pub actions: Option<Vec<String>>,
}
Expand description
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.queue_url: Option<String>
The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
label: Option<String>
The unique identification of the permission you're setting (for example, AliceSendMessage
). Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and underscores (_
).
aws_account_ids: Option<Vec<String>>
The Amazon Web Services account numbers of the principals who are to receive permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.
actions: Option<Vec<String>>
The action the client wants to allow for the specified principal. Valid values: the name of any action or *
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those actions: SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
Implementations§
source§impl AddPermissionInput
impl AddPermissionInput
sourcepub fn queue_url(&self) -> Option<&str>
pub fn queue_url(&self) -> Option<&str>
The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
sourcepub fn label(&self) -> Option<&str>
pub fn label(&self) -> Option<&str>
The unique identification of the permission you're setting (for example, AliceSendMessage
). Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and underscores (_
).
sourcepub fn aws_account_ids(&self) -> &[String]
pub fn aws_account_ids(&self) -> &[String]
The Amazon Web Services account numbers of the principals who are to receive permission. For information about locating the Amazon Web Services account identification, see Your Amazon Web Services Identifiers in the Amazon SQS Developer Guide.
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_ids.is_none()
.
sourcepub fn actions(&self) -> &[String]
pub fn actions(&self) -> &[String]
The action the client wants to allow for the specified principal. Valid values: the name of any action or *
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon SQS Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those actions: SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .actions.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 ==
.