#[non_exhaustive]
pub enum Configuration {
IamRole(IamRoleConfiguration),
KmsKey(KmsKeyConfiguration),
S3Bucket(S3BucketConfiguration),
SecretsManagerSecret(SecretsManagerSecretConfiguration),
SqsQueue(SqsQueueConfiguration),
Unknown,
}
Expand description
Access control configuration structures for your resource. You specify the configuration as a type-value pair. You can specify only one type of access control configuration.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
IamRole(IamRoleConfiguration)
The access control configuration is for an IAM role.
KmsKey(KmsKeyConfiguration)
The access control configuration is for a KMS key.
S3Bucket(S3BucketConfiguration)
The access control configuration is for an Amazon S3 Bucket.
SecretsManagerSecret(SecretsManagerSecretConfiguration)
The access control configuration is for a Secrets Manager secret.
SqsQueue(SqsQueueConfiguration)
The access control configuration is for an Amazon SQS queue.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations
sourceimpl Configuration
impl Configuration
sourcepub fn as_iam_role(&self) -> Result<&IamRoleConfiguration, &Self>
pub fn as_iam_role(&self) -> Result<&IamRoleConfiguration, &Self>
Tries to convert the enum instance into IamRole
, extracting the inner IamRoleConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_iam_role(&self) -> bool
pub fn is_iam_role(&self) -> bool
Returns true if this is a IamRole
.
sourcepub fn as_kms_key(&self) -> Result<&KmsKeyConfiguration, &Self>
pub fn as_kms_key(&self) -> Result<&KmsKeyConfiguration, &Self>
Tries to convert the enum instance into KmsKey
, extracting the inner KmsKeyConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_kms_key(&self) -> bool
pub fn is_kms_key(&self) -> bool
Returns true if this is a KmsKey
.
sourcepub fn as_s3_bucket(&self) -> Result<&S3BucketConfiguration, &Self>
pub fn as_s3_bucket(&self) -> Result<&S3BucketConfiguration, &Self>
Tries to convert the enum instance into S3Bucket
, extracting the inner S3BucketConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_s3_bucket(&self) -> bool
pub fn is_s3_bucket(&self) -> bool
Returns true if this is a S3Bucket
.
sourcepub fn as_secrets_manager_secret(
&self
) -> Result<&SecretsManagerSecretConfiguration, &Self>
pub fn as_secrets_manager_secret(
&self
) -> Result<&SecretsManagerSecretConfiguration, &Self>
Tries to convert the enum instance into SecretsManagerSecret
, extracting the inner SecretsManagerSecretConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_secrets_manager_secret(&self) -> bool
pub fn is_secrets_manager_secret(&self) -> bool
Returns true if this is a SecretsManagerSecret
.
sourcepub fn as_sqs_queue(&self) -> Result<&SqsQueueConfiguration, &Self>
pub fn as_sqs_queue(&self) -> Result<&SqsQueueConfiguration, &Self>
Tries to convert the enum instance into SqsQueue
, extracting the inner SqsQueueConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_sqs_queue(&self) -> bool
pub fn is_sqs_queue(&self) -> bool
Returns true if this is a SqsQueue
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations
sourceimpl Clone for Configuration
impl Clone for Configuration
sourcefn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Configuration
impl Debug for Configuration
sourceimpl PartialEq<Configuration> for Configuration
impl PartialEq<Configuration> for Configuration
sourcefn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Configuration) -> bool
fn ne(&self, other: &Configuration) -> bool
This method tests for !=
.
impl StructuralPartialEq for Configuration
Auto Trait Implementations
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more