Struct aws_sdk_secretsmanager::operation::create_secret::builders::CreateSecretOutputBuilder
source · #[non_exhaustive]pub struct CreateSecretOutputBuilder { /* private fields */ }
Expand description
A builder for CreateSecretOutput
.
Implementations§
source§impl CreateSecretOutputBuilder
impl CreateSecretOutputBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the new secret. The ARN includes the name of the secret followed by six random characters. This ensures that if you create a new secret with the same name as a deleted secret, then users with access to the old secret don't get access to the new secret because the ARNs are different.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN of the new secret. The ARN includes the name of the secret followed by six random characters. This ensures that if you create a new secret with the same name as a deleted secret, then users with access to the old secret don't get access to the new secret because the ARNs are different.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The ARN of the new secret. The ARN includes the name of the secret followed by six random characters. This ensures that if you create a new secret with the same name as a deleted secret, then users with access to the old secret don't get access to the new secret because the ARNs are different.
sourcepub fn version_id(self, input: impl Into<String>) -> Self
pub fn version_id(self, input: impl Into<String>) -> Self
The unique identifier associated with the version of the new secret.
sourcepub fn set_version_id(self, input: Option<String>) -> Self
pub fn set_version_id(self, input: Option<String>) -> Self
The unique identifier associated with the version of the new secret.
sourcepub fn get_version_id(&self) -> &Option<String>
pub fn get_version_id(&self) -> &Option<String>
The unique identifier associated with the version of the new secret.
sourcepub fn replication_status(self, input: ReplicationStatusType) -> Self
pub fn replication_status(self, input: ReplicationStatusType) -> Self
Appends an item to replication_status
.
To override the contents of this collection use set_replication_status
.
A list of the replicas of this secret and their status:
-
Failed
, which indicates that the replica was not created. -
InProgress
, which indicates that Secrets Manager is in the process of creating the replica. -
InSync
, which indicates that the replica was created.
sourcepub fn set_replication_status(
self,
input: Option<Vec<ReplicationStatusType>>,
) -> Self
pub fn set_replication_status( self, input: Option<Vec<ReplicationStatusType>>, ) -> Self
A list of the replicas of this secret and their status:
-
Failed
, which indicates that the replica was not created. -
InProgress
, which indicates that Secrets Manager is in the process of creating the replica. -
InSync
, which indicates that the replica was created.
sourcepub fn get_replication_status(&self) -> &Option<Vec<ReplicationStatusType>>
pub fn get_replication_status(&self) -> &Option<Vec<ReplicationStatusType>>
A list of the replicas of this secret and their status:
-
Failed
, which indicates that the replica was not created. -
InProgress
, which indicates that Secrets Manager is in the process of creating the replica. -
InSync
, which indicates that the replica was created.
sourcepub fn build(self) -> CreateSecretOutput
pub fn build(self) -> CreateSecretOutput
Consumes the builder and constructs a CreateSecretOutput
.
Trait Implementations§
source§impl Clone for CreateSecretOutputBuilder
impl Clone for CreateSecretOutputBuilder
source§fn clone(&self) -> CreateSecretOutputBuilder
fn clone(&self) -> CreateSecretOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSecretOutputBuilder
impl Debug for CreateSecretOutputBuilder
source§impl Default for CreateSecretOutputBuilder
impl Default for CreateSecretOutputBuilder
source§fn default() -> CreateSecretOutputBuilder
fn default() -> CreateSecretOutputBuilder
impl StructuralPartialEq for CreateSecretOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateSecretOutputBuilder
impl RefUnwindSafe for CreateSecretOutputBuilder
impl Send for CreateSecretOutputBuilder
impl Sync for CreateSecretOutputBuilder
impl Unpin for CreateSecretOutputBuilder
impl UnwindSafe for CreateSecretOutputBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)