Struct aws_sdk_route53::client::fluent_builders::CreateKeySigningKey
source · [−]pub struct CreateKeySigningKey { /* private fields */ }Expand description
Fluent builder constructing a request to CreateKeySigningKey.
Creates a new key-signing key (KSK) associated with a hosted zone. You can only have two KSKs per hosted zone.
Implementations
sourceimpl CreateKeySigningKey
impl CreateKeySigningKey
sourcepub async fn send(
self
) -> Result<CreateKeySigningKeyOutput, SdkError<CreateKeySigningKeyError>>
pub async fn send(
self
) -> Result<CreateKeySigningKeyOutput, SdkError<CreateKeySigningKeyError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn caller_reference(self, input: impl Into<String>) -> Self
pub fn caller_reference(self, input: impl Into<String>) -> Self
A unique string that identifies the request.
sourcepub fn set_caller_reference(self, input: Option<String>) -> Self
pub fn set_caller_reference(self, input: Option<String>) -> Self
A unique string that identifies the request.
sourcepub fn hosted_zone_id(self, input: impl Into<String>) -> Self
pub fn hosted_zone_id(self, input: impl Into<String>) -> Self
The unique string (ID) used to identify a hosted zone.
sourcepub fn set_hosted_zone_id(self, input: Option<String>) -> Self
pub fn set_hosted_zone_id(self, input: Option<String>) -> Self
The unique string (ID) used to identify a hosted zone.
sourcepub fn key_management_service_arn(self, input: impl Into<String>) -> Self
pub fn key_management_service_arn(self, input: impl Into<String>) -> Self
The Amazon resource name (ARN) for a customer managed key in Key Management Service (KMS). The KeyManagementServiceArn must be unique for each key-signing key (KSK) in a single hosted zone. To see an example of KeyManagementServiceArn that grants the correct permissions for DNSSEC, scroll down to Example.
You must configure the customer managed customer managed key as follows:
- Status
-
Enabled
- Key spec
-
ECC_NIST_P256
- Key usage
-
Sign and verify
- Key policy
-
The key policy must give permission for the following actions:
-
DescribeKey
-
GetPublicKey
-
Sign
The key policy must also include the Amazon Route 53 service in the principal for your account. Specify the following:
-
"Service": "dnssec-route53.amazonaws.com"
-
For more information about working with a customer managed key in KMS, see Key Management Service concepts.
sourcepub fn set_key_management_service_arn(self, input: Option<String>) -> Self
pub fn set_key_management_service_arn(self, input: Option<String>) -> Self
The Amazon resource name (ARN) for a customer managed key in Key Management Service (KMS). The KeyManagementServiceArn must be unique for each key-signing key (KSK) in a single hosted zone. To see an example of KeyManagementServiceArn that grants the correct permissions for DNSSEC, scroll down to Example.
You must configure the customer managed customer managed key as follows:
- Status
-
Enabled
- Key spec
-
ECC_NIST_P256
- Key usage
-
Sign and verify
- Key policy
-
The key policy must give permission for the following actions:
-
DescribeKey
-
GetPublicKey
-
Sign
The key policy must also include the Amazon Route 53 service in the principal for your account. Specify the following:
-
"Service": "dnssec-route53.amazonaws.com"
-
For more information about working with a customer managed key in KMS, see Key Management Service concepts.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A string used to identify a key-signing key (KSK). Name can include numbers, letters, and underscores (_). Name must be unique for each key-signing key in the same hosted zone.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A string used to identify a key-signing key (KSK). Name can include numbers, letters, and underscores (_). Name must be unique for each key-signing key in the same hosted zone.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
A string specifying the initial status of the key-signing key (KSK). You can set the value to ACTIVE or INACTIVE.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
A string specifying the initial status of the key-signing key (KSK). You can set the value to ACTIVE or INACTIVE.
Trait Implementations
sourceimpl Clone for CreateKeySigningKey
impl Clone for CreateKeySigningKey
sourcefn clone(&self) -> CreateKeySigningKey
fn clone(&self) -> CreateKeySigningKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateKeySigningKey
impl Send for CreateKeySigningKey
impl Sync for CreateKeySigningKey
impl Unpin for CreateKeySigningKey
impl !UnwindSafe for CreateKeySigningKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more