aws_sdk_imagebuilder/client/
import_component.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 [`ImportComponent`](crate::operation::import_component::builders::ImportComponentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_name):<br>required: **true**<br><p>The name of the component.</p><br>
7    ///   - [`semantic_version(impl Into<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::semantic_version) / [`set_semantic_version(Option<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_semantic_version):<br>required: **true**<br><p>The semantic version of the component. This version follows the semantic version syntax.</p><note>  <p>The semantic version has four nodes: <major>    .    <minor>     .     <patch>      /      <build>       . You can assign values for the first three, and can filter on all of them.      </build>     </patch>    </minor>   </major></p>  <p><b>Filtering:</b> With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.</p> </note><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_description):<br>required: **false**<br><p>The description of the component. Describes the contents of the component.</p><br>
9    ///   - [`change_description(impl Into<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::change_description) / [`set_change_description(Option<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_change_description):<br>required: **false**<br><p>The change description of the component. This description indicates the change that has been made in this version, or what makes this version different from other versions of the component.</p><br>
10    ///   - [`r#type(ComponentType)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::type) / [`set_type(Option<ComponentType>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_type):<br>required: **true**<br><p>The type of the component denotes whether the component is used to build the image, or only to test it.</p><br>
11    ///   - [`format(ComponentFormat)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::format) / [`set_format(Option<ComponentFormat>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_format):<br>required: **true**<br><p>The format of the resource that you want to import as a component.</p><br>
12    ///   - [`platform(Platform)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::platform) / [`set_platform(Option<Platform>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_platform):<br>required: **true**<br><p>The platform of the component.</p><br>
13    ///   - [`data(impl Into<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::data) / [`set_data(Option<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_data):<br>required: **false**<br><p>The data of the component. Used to specify the data inline. Either <code>data</code> or <code>uri</code> can be used to specify the data within the component.</p><br>
14    ///   - [`uri(impl Into<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::uri) / [`set_uri(Option<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_uri):<br>required: **false**<br><p>The uri of the component. Must be an Amazon S3 URL and the requester must have permission to access the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service quota. Either <code>data</code> or <code>uri</code> can be used to specify the data within the component.</p><br>
15    ///   - [`kms_key_id(impl Into<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_kms_key_id):<br>required: **false**<br><p>The ID of the KMS key that should be used to encrypt this component.</p><br>
16    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_tags):<br>required: **false**<br><p>The tags of the component.</p><br>
17    ///   - [`client_token(impl Into<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::import_component::builders::ImportComponentFluentBuilder::set_client_token):<br>required: **true**<br><p>Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a> in the <i>Amazon EC2 API Reference</i>.</p><br>
18    /// - On success, responds with [`ImportComponentOutput`](crate::operation::import_component::ImportComponentOutput) with field(s):
19    ///   - [`request_id(Option<String>)`](crate::operation::import_component::ImportComponentOutput::request_id): <p>The request ID that uniquely identifies this request.</p>
20    ///   - [`client_token(Option<String>)`](crate::operation::import_component::ImportComponentOutput::client_token): <p>The client token that uniquely identifies the request.</p>
21    ///   - [`component_build_version_arn(Option<String>)`](crate::operation::import_component::ImportComponentOutput::component_build_version_arn): <p>The Amazon Resource Name (ARN) of the imported component.</p>
22    /// - On failure, responds with [`SdkError<ImportComponentError>`](crate::operation::import_component::ImportComponentError)
23    pub fn import_component(&self) -> crate::operation::import_component::builders::ImportComponentFluentBuilder {
24        crate::operation::import_component::builders::ImportComponentFluentBuilder::new(self.handle.clone())
25    }
26}