Skip to main content

aws_sdk_accountaccess/client/
get_entitlement.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 [`GetEntitlement`](crate::operation::get_entitlement::builders::GetEntitlementFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`application_arn(impl Into<String>)`](crate::operation::get_entitlement::builders::GetEntitlementFluentBuilder::application_arn) / [`set_application_arn(Option<String>)`](crate::operation::get_entitlement::builders::GetEntitlementFluentBuilder::set_application_arn):<br>required: **true**<br><p>Specifies the ARN of the application that the entitlement belongs to.</p><br>
7    ///   - [`entitlement_id(impl Into<String>)`](crate::operation::get_entitlement::builders::GetEntitlementFluentBuilder::entitlement_id) / [`set_entitlement_id(Option<String>)`](crate::operation::get_entitlement::builders::GetEntitlementFluentBuilder::set_entitlement_id):<br>required: **true**<br><p>Specifies the unique identifier of the entitlement to retrieve.</p><br>
8    /// - On success, responds with [`GetEntitlementOutput`](crate::operation::get_entitlement::GetEntitlementOutput) with field(s):
9    ///   - [`application_arn(String)`](crate::operation::get_entitlement::GetEntitlementOutput::application_arn): <p>The ARN of the application that the entitlement belongs to.</p>
10    ///   - [`entitlement_id(String)`](crate::operation::get_entitlement::GetEntitlementOutput::entitlement_id): <p>The unique identifier of the entitlement.</p>
11    ///   - [`entitlement(Option<EntitlementDetails>)`](crate::operation::get_entitlement::GetEntitlementOutput::entitlement): <p>The entitlement details, including the principal, IAM role, and target account.</p>
12    ///   - [`created_at(DateTime)`](crate::operation::get_entitlement::GetEntitlementOutput::created_at): <p>The date and time when the entitlement was created.</p>
13    /// - On failure, responds with [`SdkError<GetEntitlementError>`](crate::operation::get_entitlement::GetEntitlementError)
14    pub fn get_entitlement(&self) -> crate::operation::get_entitlement::builders::GetEntitlementFluentBuilder {
15        crate::operation::get_entitlement::builders::GetEntitlementFluentBuilder::new(self.handle.clone())
16    }
17}