aws_sdk_sagemaker/client/update_hub_content_reference.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 [`UpdateHubContentReference`](crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`hub_name(impl Into<String>)`](crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder::hub_name) / [`set_hub_name(Option<String>)`](crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder::set_hub_name):<br>required: **true**<br><p>The name of the SageMaker hub that contains the hub content you want to update. You can optionally use the hub ARN instead.</p><br>
7 /// - [`hub_content_name(impl Into<String>)`](crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder::hub_content_name) / [`set_hub_content_name(Option<String>)`](crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder::set_hub_content_name):<br>required: **true**<br><p>The name of the hub content resource that you want to update.</p><br>
8 /// - [`hub_content_type(HubContentType)`](crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder::hub_content_type) / [`set_hub_content_type(Option<HubContentType>)`](crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder::set_hub_content_type):<br>required: **true**<br><p>The content type of the resource that you want to update. Only specify a <code>ModelReference</code> resource for this API. To update a <code>Model</code> or <code>Notebook</code> resource, use the <code>UpdateHubContent</code> API instead.</p><br>
9 /// - [`min_version(impl Into<String>)`](crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder::min_version) / [`set_min_version(Option<String>)`](crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder::set_min_version):<br>required: **false**<br><p>The minimum hub content version of the referenced model that you want to use. The minimum version must be older than the latest available version of the referenced model. To support all versions of a model, set the value to <code>1.0.0</code>.</p><br>
10 /// - On success, responds with [`UpdateHubContentReferenceOutput`](crate::operation::update_hub_content_reference::UpdateHubContentReferenceOutput) with field(s):
11 /// - [`hub_arn(Option<String>)`](crate::operation::update_hub_content_reference::UpdateHubContentReferenceOutput::hub_arn): <p>The ARN of the private model hub that contains the updated hub content.</p>
12 /// - [`hub_content_arn(Option<String>)`](crate::operation::update_hub_content_reference::UpdateHubContentReferenceOutput::hub_content_arn): <p>The ARN of the hub content resource that was updated.</p>
13 /// - On failure, responds with [`SdkError<UpdateHubContentReferenceError>`](crate::operation::update_hub_content_reference::UpdateHubContentReferenceError)
14 pub fn update_hub_content_reference(&self) -> crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder {
15 crate::operation::update_hub_content_reference::builders::UpdateHubContentReferenceFluentBuilder::new(self.handle.clone())
16 }
17}