#[non_exhaustive]pub struct UpdatePrimaryRegionInput {
pub key_id: Option<String>,
pub primary_region: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_id: Option<String>
Identifies the current primary key. When the operation completes, this KMS key will be a replica key.
Specify the key ID or key ARN of a multi-Region primary key.
For example:
-
Key ID:
mrk-1234abcd12ab34cd56ef1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
primary_region: Option<String>
The Amazon Web Services Region of the new primary key. Enter the Region ID, such as us-east-1
or ap-southeast-2
. There must be an existing replica key in this Region.
When the operation completes, the multi-Region key in this Region will be the primary key.
Implementations§
source§impl UpdatePrimaryRegionInput
impl UpdatePrimaryRegionInput
sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
Identifies the current primary key. When the operation completes, this KMS key will be a replica key.
Specify the key ID or key ARN of a multi-Region primary key.
For example:
-
Key ID:
mrk-1234abcd12ab34cd56ef1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn primary_region(&self) -> Option<&str>
pub fn primary_region(&self) -> Option<&str>
The Amazon Web Services Region of the new primary key. Enter the Region ID, such as us-east-1
or ap-southeast-2
. There must be an existing replica key in this Region.
When the operation completes, the multi-Region key in this Region will be the primary key.
source§impl UpdatePrimaryRegionInput
impl UpdatePrimaryRegionInput
sourcepub fn builder() -> UpdatePrimaryRegionInputBuilder
pub fn builder() -> UpdatePrimaryRegionInputBuilder
Creates a new builder-style object to manufacture UpdatePrimaryRegionInput
.
Trait Implementations§
source§impl Clone for UpdatePrimaryRegionInput
impl Clone for UpdatePrimaryRegionInput
source§fn clone(&self) -> UpdatePrimaryRegionInput
fn clone(&self) -> UpdatePrimaryRegionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdatePrimaryRegionInput
impl Debug for UpdatePrimaryRegionInput
source§impl PartialEq for UpdatePrimaryRegionInput
impl PartialEq for UpdatePrimaryRegionInput
source§fn eq(&self, other: &UpdatePrimaryRegionInput) -> bool
fn eq(&self, other: &UpdatePrimaryRegionInput) -> bool
self
and other
values to be equal, and is used
by ==
.