aws_sdk_paymentcryptography/client/remove_key_replication_regions.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 [`RemoveKeyReplicationRegions`](crate::operation::remove_key_replication_regions::builders::RemoveKeyReplicationRegionsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`key_identifier(impl Into<String>)`](crate::operation::remove_key_replication_regions::builders::RemoveKeyReplicationRegionsFluentBuilder::key_identifier) / [`set_key_identifier(Option<String>)`](crate::operation::remove_key_replication_regions::builders::RemoveKeyReplicationRegionsFluentBuilder::set_key_identifier):<br>required: **true**<br><p>The key identifier (ARN or alias) of the key from which to remove replication regions.</p> <p>This key must exist and have replication enabled in the specified regions.</p><br>
7 /// - [`replication_regions(impl Into<String>)`](crate::operation::remove_key_replication_regions::builders::RemoveKeyReplicationRegionsFluentBuilder::replication_regions) / [`set_replication_regions(Option<Vec::<String>>)`](crate::operation::remove_key_replication_regions::builders::RemoveKeyReplicationRegionsFluentBuilder::set_replication_regions):<br>required: **true**<br><p>The list of Amazon Web Services Regions to remove from the key's replication configuration.</p> <p>The key will no longer be available for cryptographic operations in these regions after removal. Ensure no active operations depend on the key in these regions before removal.</p><br>
8 /// - On success, responds with [`RemoveKeyReplicationRegionsOutput`](crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsOutput) with field(s):
9 /// - [`key(Option<Key>)`](crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsOutput::key): <p>The updated key metadata after removing the replication regions.</p> <p>This reflects the current state of the key and its updated replication configuration.</p>
10 /// - On failure, responds with [`SdkError<RemoveKeyReplicationRegionsError>`](crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError)
11 pub fn remove_key_replication_regions(
12 &self,
13 ) -> crate::operation::remove_key_replication_regions::builders::RemoveKeyReplicationRegionsFluentBuilder {
14 crate::operation::remove_key_replication_regions::builders::RemoveKeyReplicationRegionsFluentBuilder::new(self.handle.clone())
15 }
16}