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
source§impl PartialEq for CreateSecretOutputBuilder
impl PartialEq for CreateSecretOutputBuilder
source§fn eq(&self, other: &CreateSecretOutputBuilder) -> bool
fn eq(&self, other: &CreateSecretOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.