aws-sdk-apiportal 1.1.0

AWS SDK for APIPortal
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetProduct`](crate::operation::get_product::builders::GetProductFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`product_id(impl Into<String>)`](crate::operation::get_product::builders::GetProductFluentBuilder::product_id) / [`set_product_id(Option<String>)`](crate::operation::get_product::builders::GetProductFluentBuilder::set_product_id):<br>required: **true**<br>The identifier of the product.<br>
    ///   - [`resource_owner_account_id(impl Into<String>)`](crate::operation::get_product::builders::GetProductFluentBuilder::resource_owner_account_id) / [`set_resource_owner_account_id(Option<String>)`](crate::operation::get_product::builders::GetProductFluentBuilder::set_resource_owner_account_id):<br>required: **false**<br>The AWS account ID that owns the product. Supply it to read a product shared with you by another account. Omit it for products in your own account.<br>
    /// - On success, responds with [`GetProductOutput`](crate::operation::get_product::GetProductOutput) with field(s):
    ///   - [`product_id(String)`](crate::operation::get_product::GetProductOutput::product_id): The identifier of the product.
    ///   - [`product_arn(String)`](crate::operation::get_product::GetProductOutput::product_arn): The ARN of the product.
    ///   - [`display_name(String)`](crate::operation::get_product::GetProductOutput::display_name): The name of the product, from 1 to 255 characters.
    ///   - [`display_order(Option<DisplayOrder>)`](crate::operation::get_product::GetProductOutput::display_order): The order of the product's pages and API page sections in the portal navigation.
    ///   - [`description(String)`](crate::operation::get_product::GetProductOutput::description): A description of the product, up to 1024 characters.
    ///   - [`updated_at(DateTime)`](crate::operation::get_product::GetProductOutput::updated_at): When the resource was last updated.
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_product::GetProductOutput::tags): Up to 50 tags per request, matching API Gateway's limit of 50 tags per resource.
    ///   - [`api_selection_configuration(Option<ApiSelectionConfiguration>)`](crate::operation::get_product::GetProductOutput::api_selection_configuration): How Managed APIs are selected for the product.
    ///   - [`status(Option<ProductStatus>)`](crate::operation::get_product::GetProductOutput::status): Whether the product's member APIs match its apiSelectionConfiguration. ACTIVE - membership matches. The only status a CUSTOM product reports. IN_PROGRESS - ruleFilters changed and membership is still being evaluated. FAILED - evaluation could not finish and membership is incomplete; failureReason says why.
    ///   - [`failure_reason(Option<ProductFailureReason>)`](crate::operation::get_product::GetProductOutput::failure_reason): Reason a product's rules could not be fully applied, present only when `status` is `FAILED`. New reasons may be added over time, so clients MUST treat any unrecognized value as `UNKNOWN` and fall back to generic handling.
    /// - On failure, responds with [`SdkError<GetProductError>`](crate::operation::get_product::GetProductError)
    pub fn get_product(&self) -> crate::operation::get_product::builders::GetProductFluentBuilder {
        crate::operation::get_product::builders::GetProductFluentBuilder::new(self.handle.clone())
    }
}