Skip to main content

aws_sdk_supportauthz/client/
get_support_permit.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetSupportPermit`](crate::operation::get_support_permit::builders::GetSupportPermitFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`support_permit_identifier(impl Into<String>)`](crate::operation::get_support_permit::builders::GetSupportPermitFluentBuilder::support_permit_identifier) / [`set_support_permit_identifier(Option<String>)`](crate::operation::get_support_permit::builders::GetSupportPermitFluentBuilder::set_support_permit_identifier):<br>required: **true**<br><p>The ARN or name of the support permit to retrieve.</p><br>
7    /// - On success, responds with [`GetSupportPermitOutput`](crate::operation::get_support_permit::GetSupportPermitOutput) with field(s):
8    ///   - [`name(String)`](crate::operation::get_support_permit::GetSupportPermitOutput::name): <p>The name of the support permit.</p>
9    ///   - [`arn(String)`](crate::operation::get_support_permit::GetSupportPermitOutput::arn): <p>The ARN of the support permit.</p>
10    ///   - [`description(Option<String>)`](crate::operation::get_support_permit::GetSupportPermitOutput::description): <p>The description of the support permit.</p>
11    ///   - [`permit(Option<Permit>)`](crate::operation::get_support_permit::GetSupportPermitOutput::permit): <p>The permit definition.</p>
12    ///   - [`status(SupportPermitStatus)`](crate::operation::get_support_permit::GetSupportPermitOutput::status): <p>The current status of the support permit.</p>
13    ///   - [`signing_key_info(Option<SigningKeyInfo>)`](crate::operation::get_support_permit::GetSupportPermitOutput::signing_key_info): <p>The signing key information for the permit.</p>
14    ///   - [`created_at(DateTime)`](crate::operation::get_support_permit::GetSupportPermitOutput::created_at): <p>The timestamp when the permit was created.</p>
15    ///   - [`support_case_display_id(Option<String>)`](crate::operation::get_support_permit::GetSupportPermitOutput::support_case_display_id): <p>The display identifier of the support case associated with the permit.</p>
16    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_support_permit::GetSupportPermitOutput::tags): <p>The tags associated with the support permit.</p>
17    /// - On failure, responds with [`SdkError<GetSupportPermitError>`](crate::operation::get_support_permit::GetSupportPermitError)
18    pub fn get_support_permit(&self) -> crate::operation::get_support_permit::builders::GetSupportPermitFluentBuilder {
19        crate::operation::get_support_permit::builders::GetSupportPermitFluentBuilder::new(self.handle.clone())
20    }
21}