Struct aws_sdk_ec2::model::AssociatedRole
source · #[non_exhaustive]pub struct AssociatedRole { /* private fields */ }
Expand description
Information about the associated IAM roles.
Implementations§
source§impl AssociatedRole
impl AssociatedRole
sourcepub fn associated_role_arn(&self) -> Option<&str>
pub fn associated_role_arn(&self) -> Option<&str>
The ARN of the associated IAM role.
sourcepub fn certificate_s3_bucket_name(&self) -> Option<&str>
pub fn certificate_s3_bucket_name(&self) -> Option<&str>
The name of the Amazon S3 bucket in which the Amazon S3 object is stored.
sourcepub fn certificate_s3_object_key(&self) -> Option<&str>
pub fn certificate_s3_object_key(&self) -> Option<&str>
The key of the Amazon S3 object ey where the certificate, certificate chain, and encrypted private key bundle is stored. The object key is formated as follows: role_arn
/certificate_arn
.
sourcepub fn encryption_kms_key_id(&self) -> Option<&str>
pub fn encryption_kms_key_id(&self) -> Option<&str>
The ID of the KMS customer master key (CMK) used to encrypt the private key.
source§impl AssociatedRole
impl AssociatedRole
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AssociatedRole
.
Examples found in repository?
src/xml_deser.rs (line 52046)
52042 52043 52044 52045 52046 52047 52048 52049 52050 52051 52052 52053 52054 52055 52056 52057 52058 52059 52060 52061 52062 52063 52064 52065 52066 52067 52068 52069 52070 52071 52072 52073 52074 52075 52076 52077 52078 52079 52080 52081 52082 52083 52084 52085 52086 52087 52088 52089 52090 52091 52092 52093 52094 52095 52096 52097 52098 52099 52100 52101 52102 52103 52104 52105
pub fn deser_structure_crate_model_associated_role(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AssociatedRole, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AssociatedRole::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("associatedRoleArn") /* AssociatedRoleArn com.amazonaws.ec2#AssociatedRole$AssociatedRoleArn */ => {
let var_2479 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_associated_role_arn(var_2479);
}
,
s if s.matches("certificateS3BucketName") /* CertificateS3BucketName com.amazonaws.ec2#AssociatedRole$CertificateS3BucketName */ => {
let var_2480 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_certificate_s3_bucket_name(var_2480);
}
,
s if s.matches("certificateS3ObjectKey") /* CertificateS3ObjectKey com.amazonaws.ec2#AssociatedRole$CertificateS3ObjectKey */ => {
let var_2481 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_certificate_s3_object_key(var_2481);
}
,
s if s.matches("encryptionKmsKeyId") /* EncryptionKmsKeyId com.amazonaws.ec2#AssociatedRole$EncryptionKmsKeyId */ => {
let var_2482 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_encryption_kms_key_id(var_2482);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AssociatedRole
impl Clone for AssociatedRole
source§fn clone(&self) -> AssociatedRole
fn clone(&self) -> AssociatedRole
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more