Struct aws_sdk_codepipeline::types::builders::EncryptionKeyBuilder
source · #[non_exhaustive]pub struct EncryptionKeyBuilder { /* private fields */ }
Expand description
A builder for EncryptionKey
.
Implementations§
source§impl EncryptionKeyBuilder
impl EncryptionKeyBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.
Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.
Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.
Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
sourcepub fn type(self, input: EncryptionKeyType) -> Self
pub fn type(self, input: EncryptionKeyType) -> Self
The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
This field is required.sourcepub fn set_type(self, input: Option<EncryptionKeyType>) -> Self
pub fn set_type(self, input: Option<EncryptionKeyType>) -> Self
The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
sourcepub fn get_type(&self) -> &Option<EncryptionKeyType>
pub fn get_type(&self) -> &Option<EncryptionKeyType>
The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.
sourcepub fn build(self) -> Result<EncryptionKey, BuildError>
pub fn build(self) -> Result<EncryptionKey, BuildError>
Consumes the builder and constructs a EncryptionKey
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EncryptionKeyBuilder
impl Clone for EncryptionKeyBuilder
source§fn clone(&self) -> EncryptionKeyBuilder
fn clone(&self) -> EncryptionKeyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EncryptionKeyBuilder
impl Debug for EncryptionKeyBuilder
source§impl Default for EncryptionKeyBuilder
impl Default for EncryptionKeyBuilder
source§fn default() -> EncryptionKeyBuilder
fn default() -> EncryptionKeyBuilder
source§impl PartialEq for EncryptionKeyBuilder
impl PartialEq for EncryptionKeyBuilder
source§fn eq(&self, other: &EncryptionKeyBuilder) -> bool
fn eq(&self, other: &EncryptionKeyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.