Skip to main content

aws_sdk_agentregistrycontrol/client/
update_registry_record_status.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 [`UpdateRegistryRecordStatus`](crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`registry_id(impl Into<String>)`](crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder::set_registry_id):<br>required: **true**<br><p>The identifier of the registry containing the record (ARN or ID)</p><br>
7    ///   - [`record_id(impl Into<String>)`](crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder::record_id) / [`set_record_id(Option<String>)`](crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder::set_record_id):<br>required: **true**<br><p>The identifier of the registry record to update the status of (ARN or ID)</p><br>
8    ///   - [`status(RegistryRecordStatus)`](crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder::status) / [`set_status(Option<RegistryRecordStatus>)`](crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder::set_status):<br>required: **true**<br><p>The target status for the registry record</p><br>
9    ///   - [`status_reason(impl Into<String>)`](crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder::status_reason) / [`set_status_reason(Option<String>)`](crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder::set_status_reason):<br>required: **true**<br><p>The reason for the status change, for example why the record was approved, rejected, or deprecated</p><br>
10    /// - On success, responds with [`UpdateRegistryRecordStatusOutput`](crate::operation::update_registry_record_status::UpdateRegistryRecordStatusOutput) with field(s):
11    ///   - [`registry_arn(String)`](crate::operation::update_registry_record_status::UpdateRegistryRecordStatusOutput::registry_arn): <p>The ARN of the registry</p>
12    ///   - [`record_arn(String)`](crate::operation::update_registry_record_status::UpdateRegistryRecordStatusOutput::record_arn): <p>The ARN of the registry record</p>
13    ///   - [`record_id(String)`](crate::operation::update_registry_record_status::UpdateRegistryRecordStatusOutput::record_id): <p>The ID of the registry record</p>
14    ///   - [`status(RegistryRecordStatus)`](crate::operation::update_registry_record_status::UpdateRegistryRecordStatusOutput::status): <p>The resulting status of the registry record</p>
15    ///   - [`status_reason(String)`](crate::operation::update_registry_record_status::UpdateRegistryRecordStatusOutput::status_reason): <p>The reason for the status change</p>
16    ///   - [`updated_at(DateTime)`](crate::operation::update_registry_record_status::UpdateRegistryRecordStatusOutput::updated_at): <p>The timestamp when the record was last updated</p>
17    /// - On failure, responds with [`SdkError<UpdateRegistryRecordStatusError>`](crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError)
18    pub fn update_registry_record_status(
19        &self,
20    ) -> crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder {
21        crate::operation::update_registry_record_status::builders::UpdateRegistryRecordStatusFluentBuilder::new(self.handle.clone())
22    }
23}