aws_sdk_imagebuilder/client/
get_marketplace_resource.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 [`GetMarketplaceResource`](crate::operation::get_marketplace_resource::builders::GetMarketplaceResourceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`resource_type(MarketplaceResourceType)`](crate::operation::get_marketplace_resource::builders::GetMarketplaceResourceFluentBuilder::resource_type) / [`set_resource_type(Option<MarketplaceResourceType>)`](crate::operation::get_marketplace_resource::builders::GetMarketplaceResourceFluentBuilder::set_resource_type):<br>required: **true**<br><p>Specifies which type of Amazon Web Services Marketplace resource Image Builder retrieves.</p><br>
7    ///   - [`resource_arn(impl Into<String>)`](crate::operation::get_marketplace_resource::builders::GetMarketplaceResourceFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::get_marketplace_resource::builders::GetMarketplaceResourceFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) that uniquely identifies an Amazon Web Services Marketplace resource.</p><br>
8    ///   - [`resource_location(impl Into<String>)`](crate::operation::get_marketplace_resource::builders::GetMarketplaceResourceFluentBuilder::resource_location) / [`set_resource_location(Option<String>)`](crate::operation::get_marketplace_resource::builders::GetMarketplaceResourceFluentBuilder::set_resource_location):<br>required: **false**<br><p>The bucket path that you can specify to download the resource from Amazon S3.</p><br>
9    /// - On success, responds with [`GetMarketplaceResourceOutput`](crate::operation::get_marketplace_resource::GetMarketplaceResourceOutput) with field(s):
10    ///   - [`resource_arn(Option<String>)`](crate::operation::get_marketplace_resource::GetMarketplaceResourceOutput::resource_arn): <p>The Amazon Resource Name (ARN) for the Amazon Web Services Marketplace resource that was requested.</p>
11    ///   - [`url(Option<String>)`](crate::operation::get_marketplace_resource::GetMarketplaceResourceOutput::url): <p>The obfuscated S3 URL to download the component artifact from.</p>
12    ///   - [`data(Option<String>)`](crate::operation::get_marketplace_resource::GetMarketplaceResourceOutput::data): <p>Returns obfuscated data that contains the YAML content of the component.</p>
13    /// - On failure, responds with [`SdkError<GetMarketplaceResourceError>`](crate::operation::get_marketplace_resource::GetMarketplaceResourceError)
14    pub fn get_marketplace_resource(&self) -> crate::operation::get_marketplace_resource::builders::GetMarketplaceResourceFluentBuilder {
15        crate::operation::get_marketplace_resource::builders::GetMarketplaceResourceFluentBuilder::new(self.handle.clone())
16    }
17}