#[non_exhaustive]
pub enum Configuration {
EbsSnapshot(EbsSnapshotConfiguration),
EcrRepository(EcrRepositoryConfiguration),
EfsFileSystem(EfsFileSystemConfiguration),
IamRole(IamRoleConfiguration),
KmsKey(KmsKeyConfiguration),
RdsDbClusterSnapshot(RdsDbClusterSnapshotConfiguration),
RdsDbSnapshot(RdsDbSnapshotConfiguration),
S3Bucket(S3BucketConfiguration),
SecretsManagerSecret(SecretsManagerSecretConfiguration),
SnsTopic(SnsTopicConfiguration),
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
EbsSnapshot(EbsSnapshotConfiguration)
The access control configuration is for an Amazon EBS volume snapshot.
EcrRepository(EcrRepositoryConfiguration)
The access control configuration is for an Amazon ECR repository.
EfsFileSystem(EfsFileSystemConfiguration)
The access control configuration is for an Amazon EFS file system.
IamRole(IamRoleConfiguration)
The access control configuration is for an IAM role.
KmsKey(KmsKeyConfiguration)
The access control configuration is for a KMS key.
RdsDbClusterSnapshot(RdsDbClusterSnapshotConfiguration)
The access control configuration is for an Amazon RDS DB cluster snapshot.
RdsDbSnapshot(RdsDbSnapshotConfiguration)
The access control configuration is for an Amazon RDS DB snapshot.
S3Bucket(S3BucketConfiguration)
The access control configuration is for an Amazon S3 Bucket.
SecretsManagerSecret(SecretsManagerSecretConfiguration)
The access control configuration is for a Secrets Manager secret.
SnsTopic(SnsTopicConfiguration)
The access control configuration is for an Amazon SNS topic
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§
source§impl Configuration
impl Configuration
sourcepub fn as_ebs_snapshot(&self) -> Result<&EbsSnapshotConfiguration, &Self>
pub fn as_ebs_snapshot(&self) -> Result<&EbsSnapshotConfiguration, &Self>
Tries to convert the enum instance into EbsSnapshot
, extracting the inner EbsSnapshotConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_ebs_snapshot(&self) -> bool
pub fn is_ebs_snapshot(&self) -> bool
Returns true if this is a EbsSnapshot
.
sourcepub fn as_ecr_repository(&self) -> Result<&EcrRepositoryConfiguration, &Self>
pub fn as_ecr_repository(&self) -> Result<&EcrRepositoryConfiguration, &Self>
Tries to convert the enum instance into EcrRepository
, extracting the inner EcrRepositoryConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_ecr_repository(&self) -> bool
pub fn is_ecr_repository(&self) -> bool
Returns true if this is a EcrRepository
.
sourcepub fn as_efs_file_system(&self) -> Result<&EfsFileSystemConfiguration, &Self>
pub fn as_efs_file_system(&self) -> Result<&EfsFileSystemConfiguration, &Self>
Tries to convert the enum instance into EfsFileSystem
, extracting the inner EfsFileSystemConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_efs_file_system(&self) -> bool
pub fn is_efs_file_system(&self) -> bool
Returns true if this is a EfsFileSystem
.
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_rds_db_cluster_snapshot(
&self
) -> Result<&RdsDbClusterSnapshotConfiguration, &Self>
pub fn as_rds_db_cluster_snapshot(
&self
) -> Result<&RdsDbClusterSnapshotConfiguration, &Self>
Tries to convert the enum instance into RdsDbClusterSnapshot
, extracting the inner RdsDbClusterSnapshotConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_rds_db_cluster_snapshot(&self) -> bool
pub fn is_rds_db_cluster_snapshot(&self) -> bool
Returns true if this is a RdsDbClusterSnapshot
.
sourcepub fn as_rds_db_snapshot(&self) -> Result<&RdsDbSnapshotConfiguration, &Self>
pub fn as_rds_db_snapshot(&self) -> Result<&RdsDbSnapshotConfiguration, &Self>
Tries to convert the enum instance into RdsDbSnapshot
, extracting the inner RdsDbSnapshotConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_rds_db_snapshot(&self) -> bool
pub fn is_rds_db_snapshot(&self) -> bool
Returns true if this is a RdsDbSnapshot
.
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_sns_topic(&self) -> Result<&SnsTopicConfiguration, &Self>
pub fn as_sns_topic(&self) -> Result<&SnsTopicConfiguration, &Self>
Tries to convert the enum instance into SnsTopic
, extracting the inner SnsTopicConfiguration
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_sns_topic(&self) -> bool
pub fn is_sns_topic(&self) -> bool
Returns true if this is a SnsTopic
.
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§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Configuration
impl Debug for Configuration
source§impl PartialEq<Configuration> for Configuration
impl PartialEq<Configuration> for Configuration
source§fn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
self
and other
values to be equal, and is used
by ==
.