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
impl StructuralPartialEq for EncryptionKeyBuilder
Auto Trait Implementations§
impl Freeze for EncryptionKeyBuilder
impl RefUnwindSafe for EncryptionKeyBuilder
impl Send for EncryptionKeyBuilder
impl Sync for EncryptionKeyBuilder
impl Unpin for EncryptionKeyBuilder
impl UnwindSafe for EncryptionKeyBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more