aws_sdk_appmonetization/client/get_app.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 [`GetApp`](crate::operation::get_app::builders::GetAppFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`app_id(impl Into<String>)`](crate::operation::get_app::builders::GetAppFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_app::builders::GetAppFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app to read. You can identify the app by either its ID or its Amazon Resource Name (ARN). If you provide both, they must refer to the same app.<br>
7 /// - [`identifier(impl Into<String>)`](crate::operation::get_app::builders::GetAppFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_app::builders::GetAppFluentBuilder::set_identifier):<br>required: **false**<br>The Amazon Resource Name (ARN) of the app. You can identify the app by either its ID or its ARN. If you provide both, they must refer to the same app. A sandbox ARN names the app's sandbox; if you also send scope, the two must name the same environment.<br>
8 /// - [`scope(RequestScope)`](crate::operation::get_app::builders::GetAppFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::get_app::builders::GetAppFluentBuilder::set_scope):<br>required: **false**<br>The environment to act on: live or sandbox. Optional. You can name the environment with this member, with a sandbox resource ARN, or both; if you send both they must name the same environment, or the request is rejected.<br>
9 /// - On success, responds with [`GetAppOutput`](crate::operation::get_app::GetAppOutput) with field(s):
10 /// - [`app(Option<App>)`](crate::operation::get_app::GetAppOutput::app): The requested app.
11 /// - On failure, responds with [`SdkError<GetAppError>`](crate::operation::get_app::GetAppError)
12 pub fn get_app(&self) -> crate::operation::get_app::builders::GetAppFluentBuilder {
13 crate::operation::get_app::builders::GetAppFluentBuilder::new(self.handle.clone())
14 }
15}