aws_sdk_clouddirectory/client/update_facet.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 [`UpdateFacet`](crate::operation::update_facet::builders::UpdateFacetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`schema_arn(impl Into<String>)`](crate::operation::update_facet::builders::UpdateFacetFluentBuilder::schema_arn) / [`set_schema_arn(Option<String>)`](crate::operation::update_facet::builders::UpdateFacetFluentBuilder::set_schema_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) that is associated with the <code>Facet</code>. For more information, see <code>arns</code>.</p><br>
7 /// - [`name(impl Into<String>)`](crate::operation::update_facet::builders::UpdateFacetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_facet::builders::UpdateFacetFluentBuilder::set_name):<br>required: **true**<br><p>The name of the facet.</p><br>
8 /// - [`attribute_updates(FacetAttributeUpdate)`](crate::operation::update_facet::builders::UpdateFacetFluentBuilder::attribute_updates) / [`set_attribute_updates(Option<Vec::<FacetAttributeUpdate>>)`](crate::operation::update_facet::builders::UpdateFacetFluentBuilder::set_attribute_updates):<br>required: **false**<br><p>List of attributes that need to be updated in a given schema <code>Facet</code>. Each attribute is followed by <code>AttributeAction</code>, which specifies the type of update operation to perform.</p><br>
9 /// - [`object_type(ObjectType)`](crate::operation::update_facet::builders::UpdateFacetFluentBuilder::object_type) / [`set_object_type(Option<ObjectType>)`](crate::operation::update_facet::builders::UpdateFacetFluentBuilder::set_object_type):<br>required: **false**<br><p>The object type that is associated with the facet. See <code>CreateFacetRequest$ObjectType</code> for more details.</p><br>
10 /// - On success, responds with [`UpdateFacetOutput`](crate::operation::update_facet::UpdateFacetOutput)
11 /// - On failure, responds with [`SdkError<UpdateFacetError>`](crate::operation::update_facet::UpdateFacetError)
12 pub fn update_facet(&self) -> crate::operation::update_facet::builders::UpdateFacetFluentBuilder {
13 crate::operation::update_facet::builders::UpdateFacetFluentBuilder::new(self.handle.clone())
14 }
15}