Struct aws_sdk_ec2::model::LaunchPermission
source · #[non_exhaustive]pub struct LaunchPermission { /* private fields */ }
Expand description
Describes a launch permission.
Implementations§
source§impl LaunchPermission
impl LaunchPermission
sourcepub fn group(&self) -> Option<&PermissionGroup>
pub fn group(&self) -> Option<&PermissionGroup>
The name of the group.
sourcepub fn user_id(&self) -> Option<&str>
pub fn user_id(&self) -> Option<&str>
The Amazon Web Services account ID.
Constraints: Up to 10 000 account IDs can be specified in a single request.
sourcepub fn organization_arn(&self) -> Option<&str>
pub fn organization_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of an organization.
sourcepub fn organizational_unit_arn(&self) -> Option<&str>
pub fn organizational_unit_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of an organizational unit (OU).
source§impl LaunchPermission
impl LaunchPermission
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LaunchPermission
.
Examples found in repository?
src/xml_deser.rs (line 46157)
46153 46154 46155 46156 46157 46158 46159 46160 46161 46162 46163 46164 46165 46166 46167 46168 46169 46170 46171 46172 46173 46174 46175 46176 46177 46178 46179 46180 46181 46182 46183 46184 46185 46186 46187 46188 46189 46190 46191 46192 46193 46194 46195 46196 46197 46198 46199 46200 46201 46202 46203 46204 46205 46206 46207 46208 46209 46210 46211 46212 46213 46214 46215 46216 46217
pub fn deser_structure_crate_model_launch_permission(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LaunchPermission, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LaunchPermission::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("group") /* Group com.amazonaws.ec2#LaunchPermission$Group */ => {
let var_2073 =
Some(
Result::<crate::model::PermissionGroup, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PermissionGroup::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_group(var_2073);
}
,
s if s.matches("userId") /* UserId com.amazonaws.ec2#LaunchPermission$UserId */ => {
let var_2074 =
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_user_id(var_2074);
}
,
s if s.matches("organizationArn") /* OrganizationArn com.amazonaws.ec2#LaunchPermission$OrganizationArn */ => {
let var_2075 =
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_organization_arn(var_2075);
}
,
s if s.matches("organizationalUnitArn") /* OrganizationalUnitArn com.amazonaws.ec2#LaunchPermission$OrganizationalUnitArn */ => {
let var_2076 =
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_organizational_unit_arn(var_2076);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for LaunchPermission
impl Clone for LaunchPermission
source§fn clone(&self) -> LaunchPermission
fn clone(&self) -> LaunchPermission
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