aws_sdk_apigatewayv2/client/
get_portal_product.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 [`GetPortalProduct`](crate::operation::get_portal_product::builders::GetPortalProductFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`portal_product_id(impl Into<String>)`](crate::operation::get_portal_product::builders::GetPortalProductFluentBuilder::portal_product_id) / [`set_portal_product_id(Option<String>)`](crate::operation::get_portal_product::builders::GetPortalProductFluentBuilder::set_portal_product_id):<br>required: **true**<br><p>The portal product identifier.</p><br>
7    ///   - [`resource_owner_account_id(impl Into<String>)`](crate::operation::get_portal_product::builders::GetPortalProductFluentBuilder::resource_owner_account_id) / [`set_resource_owner_account_id(Option<String>)`](crate::operation::get_portal_product::builders::GetPortalProductFluentBuilder::set_resource_owner_account_id):<br>required: **false**<br><p>The account ID of the resource owner of the portal product.</p><br>
8    /// - On success, responds with [`GetPortalProductOutput`](crate::operation::get_portal_product::GetPortalProductOutput) with field(s):
9    ///   - [`description(Option<String>)`](crate::operation::get_portal_product::GetPortalProductOutput::description): <p>The description of a portal product.</p>
10    ///   - [`display_name(Option<String>)`](crate::operation::get_portal_product::GetPortalProductOutput::display_name): <p>The display name.</p>
11    ///   - [`display_order(Option<DisplayOrder>)`](crate::operation::get_portal_product::GetPortalProductOutput::display_order): <p>The display order.</p>
12    ///   - [`last_modified(Option<DateTime>)`](crate::operation::get_portal_product::GetPortalProductOutput::last_modified): <p>The timestamp when the portal product was last modified.</p>
13    ///   - [`portal_product_arn(Option<String>)`](crate::operation::get_portal_product::GetPortalProductOutput::portal_product_arn): <p>The ARN of the portal product.</p>
14    ///   - [`portal_product_id(Option<String>)`](crate::operation::get_portal_product::GetPortalProductOutput::portal_product_id): <p>The portal product identifier.</p>
15    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_portal_product::GetPortalProductOutput::tags): <p>The collection of tags. Each tag element is associated with a given resource.</p>
16    /// - On failure, responds with [`SdkError<GetPortalProductError>`](crate::operation::get_portal_product::GetPortalProductError)
17    pub fn get_portal_product(&self) -> crate::operation::get_portal_product::builders::GetPortalProductFluentBuilder {
18        crate::operation::get_portal_product::builders::GetPortalProductFluentBuilder::new(self.handle.clone())
19    }
20}