aws_sdk_secretsmanager/operation/update_secret/
_update_secret_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct UpdateSecretInput {
6    /// <p>The ARN or name of the secret.</p>
7    /// <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
8    pub secret_id: ::std::option::Option<::std::string::String>,
9    /// <p>If you include <code>SecretString</code> or <code>SecretBinary</code>, then Secrets Manager creates a new version for the secret, and this parameter specifies the unique identifier for the new version.</p><note>
10    /// <p>If you use the Amazon Web Services CLI or one of the Amazon Web Services SDKs to call this operation, then you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it as the value for this parameter in the request.</p>
11    /// </note>
12    /// <p>If you generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a <code>ClientRequestToken</code> and include it in the request.</p>
13    /// <p>This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental creation of duplicate versions if there are failures and retries during a rotation. We recommend that you generate a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID-type</a> value to ensure uniqueness of your versions within the specified secret.</p>
14    pub client_request_token: ::std::option::Option<::std::string::String>,
15    /// <p>The description of the secret.</p>
16    pub description: ::std::option::Option<::std::string::String>,
17    /// <p>The ARN, key ID, or alias of the KMS key that Secrets Manager uses to encrypt new secret versions as well as any existing versions with the staging labels <code>AWSCURRENT</code>, <code>AWSPENDING</code>, or <code>AWSPREVIOUS</code>. If you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-encrypt existing secret versions with the new key. For more information about versions and staging labels, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version">Concepts: Version</a>.</p>
18    /// <p>A key alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html">About aliases</a>.</p>
19    /// <p>If you set this to an empty string, Secrets Manager uses the Amazon Web Services managed key <code>aws/secretsmanager</code>. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use <code>aws/secretsmanager</code>. Creating <code>aws/secretsmanager</code> can result in a one-time significant delay in returning the result.</p><important>
20    /// <p>You can only use the Amazon Web Services managed key <code>aws/secretsmanager</code> if you call this operation using credentials from the same Amazon Web Services account that owns the secret. If the secret is in a different account, then you must use a customer managed key and provide the ARN of that KMS key in this field. The user making the call must have permissions to both the secret and the KMS key in their respective accounts.</p>
21    /// </important>
22    pub kms_key_id: ::std::option::Option<::std::string::String>,
23    /// <p>The binary data to encrypt and store in the new version of the secret. We recommend that you store your binary data in a file and then pass the contents of the file as a parameter.</p>
24    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
25    /// <p>You can't access this parameter in the Secrets Manager console.</p>
26    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
27    pub secret_binary: ::std::option::Option<::aws_smithy_types::Blob>,
28    /// <p>The text data to encrypt and store in the new version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value.</p>
29    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
30    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
31    pub secret_string: ::std::option::Option<::std::string::String>,
32}
33impl UpdateSecretInput {
34    /// <p>The ARN or name of the secret.</p>
35    /// <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
36    pub fn secret_id(&self) -> ::std::option::Option<&str> {
37        self.secret_id.as_deref()
38    }
39    /// <p>If you include <code>SecretString</code> or <code>SecretBinary</code>, then Secrets Manager creates a new version for the secret, and this parameter specifies the unique identifier for the new version.</p><note>
40    /// <p>If you use the Amazon Web Services CLI or one of the Amazon Web Services SDKs to call this operation, then you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it as the value for this parameter in the request.</p>
41    /// </note>
42    /// <p>If you generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a <code>ClientRequestToken</code> and include it in the request.</p>
43    /// <p>This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental creation of duplicate versions if there are failures and retries during a rotation. We recommend that you generate a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID-type</a> value to ensure uniqueness of your versions within the specified secret.</p>
44    pub fn client_request_token(&self) -> ::std::option::Option<&str> {
45        self.client_request_token.as_deref()
46    }
47    /// <p>The description of the secret.</p>
48    pub fn description(&self) -> ::std::option::Option<&str> {
49        self.description.as_deref()
50    }
51    /// <p>The ARN, key ID, or alias of the KMS key that Secrets Manager uses to encrypt new secret versions as well as any existing versions with the staging labels <code>AWSCURRENT</code>, <code>AWSPENDING</code>, or <code>AWSPREVIOUS</code>. If you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-encrypt existing secret versions with the new key. For more information about versions and staging labels, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version">Concepts: Version</a>.</p>
52    /// <p>A key alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html">About aliases</a>.</p>
53    /// <p>If you set this to an empty string, Secrets Manager uses the Amazon Web Services managed key <code>aws/secretsmanager</code>. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use <code>aws/secretsmanager</code>. Creating <code>aws/secretsmanager</code> can result in a one-time significant delay in returning the result.</p><important>
54    /// <p>You can only use the Amazon Web Services managed key <code>aws/secretsmanager</code> if you call this operation using credentials from the same Amazon Web Services account that owns the secret. If the secret is in a different account, then you must use a customer managed key and provide the ARN of that KMS key in this field. The user making the call must have permissions to both the secret and the KMS key in their respective accounts.</p>
55    /// </important>
56    pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
57        self.kms_key_id.as_deref()
58    }
59    /// <p>The binary data to encrypt and store in the new version of the secret. We recommend that you store your binary data in a file and then pass the contents of the file as a parameter.</p>
60    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
61    /// <p>You can't access this parameter in the Secrets Manager console.</p>
62    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
63    pub fn secret_binary(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
64        self.secret_binary.as_ref()
65    }
66    /// <p>The text data to encrypt and store in the new version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value.</p>
67    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
68    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
69    pub fn secret_string(&self) -> ::std::option::Option<&str> {
70        self.secret_string.as_deref()
71    }
72}
73impl ::std::fmt::Debug for UpdateSecretInput {
74    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
75        let mut formatter = f.debug_struct("UpdateSecretInput");
76        formatter.field("secret_id", &self.secret_id);
77        formatter.field("client_request_token", &self.client_request_token);
78        formatter.field("description", &self.description);
79        formatter.field("kms_key_id", &self.kms_key_id);
80        formatter.field("secret_binary", &"*** Sensitive Data Redacted ***");
81        formatter.field("secret_string", &"*** Sensitive Data Redacted ***");
82        formatter.finish()
83    }
84}
85impl UpdateSecretInput {
86    /// Creates a new builder-style object to manufacture [`UpdateSecretInput`](crate::operation::update_secret::UpdateSecretInput).
87    pub fn builder() -> crate::operation::update_secret::builders::UpdateSecretInputBuilder {
88        crate::operation::update_secret::builders::UpdateSecretInputBuilder::default()
89    }
90}
91
92/// A builder for [`UpdateSecretInput`](crate::operation::update_secret::UpdateSecretInput).
93#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
94#[non_exhaustive]
95pub struct UpdateSecretInputBuilder {
96    pub(crate) secret_id: ::std::option::Option<::std::string::String>,
97    pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
98    pub(crate) description: ::std::option::Option<::std::string::String>,
99    pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
100    pub(crate) secret_binary: ::std::option::Option<::aws_smithy_types::Blob>,
101    pub(crate) secret_string: ::std::option::Option<::std::string::String>,
102}
103impl UpdateSecretInputBuilder {
104    /// <p>The ARN or name of the secret.</p>
105    /// <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
106    /// This field is required.
107    pub fn secret_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
108        self.secret_id = ::std::option::Option::Some(input.into());
109        self
110    }
111    /// <p>The ARN or name of the secret.</p>
112    /// <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
113    pub fn set_secret_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
114        self.secret_id = input;
115        self
116    }
117    /// <p>The ARN or name of the secret.</p>
118    /// <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
119    pub fn get_secret_id(&self) -> &::std::option::Option<::std::string::String> {
120        &self.secret_id
121    }
122    /// <p>If you include <code>SecretString</code> or <code>SecretBinary</code>, then Secrets Manager creates a new version for the secret, and this parameter specifies the unique identifier for the new version.</p><note>
123    /// <p>If you use the Amazon Web Services CLI or one of the Amazon Web Services SDKs to call this operation, then you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it as the value for this parameter in the request.</p>
124    /// </note>
125    /// <p>If you generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a <code>ClientRequestToken</code> and include it in the request.</p>
126    /// <p>This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental creation of duplicate versions if there are failures and retries during a rotation. We recommend that you generate a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID-type</a> value to ensure uniqueness of your versions within the specified secret.</p>
127    pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
128        self.client_request_token = ::std::option::Option::Some(input.into());
129        self
130    }
131    /// <p>If you include <code>SecretString</code> or <code>SecretBinary</code>, then Secrets Manager creates a new version for the secret, and this parameter specifies the unique identifier for the new version.</p><note>
132    /// <p>If you use the Amazon Web Services CLI or one of the Amazon Web Services SDKs to call this operation, then you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it as the value for this parameter in the request.</p>
133    /// </note>
134    /// <p>If you generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a <code>ClientRequestToken</code> and include it in the request.</p>
135    /// <p>This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental creation of duplicate versions if there are failures and retries during a rotation. We recommend that you generate a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID-type</a> value to ensure uniqueness of your versions within the specified secret.</p>
136    pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
137        self.client_request_token = input;
138        self
139    }
140    /// <p>If you include <code>SecretString</code> or <code>SecretBinary</code>, then Secrets Manager creates a new version for the secret, and this parameter specifies the unique identifier for the new version.</p><note>
141    /// <p>If you use the Amazon Web Services CLI or one of the Amazon Web Services SDKs to call this operation, then you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it as the value for this parameter in the request.</p>
142    /// </note>
143    /// <p>If you generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a <code>ClientRequestToken</code> and include it in the request.</p>
144    /// <p>This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental creation of duplicate versions if there are failures and retries during a rotation. We recommend that you generate a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID-type</a> value to ensure uniqueness of your versions within the specified secret.</p>
145    pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
146        &self.client_request_token
147    }
148    /// <p>The description of the secret.</p>
149    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
150        self.description = ::std::option::Option::Some(input.into());
151        self
152    }
153    /// <p>The description of the secret.</p>
154    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
155        self.description = input;
156        self
157    }
158    /// <p>The description of the secret.</p>
159    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
160        &self.description
161    }
162    /// <p>The ARN, key ID, or alias of the KMS key that Secrets Manager uses to encrypt new secret versions as well as any existing versions with the staging labels <code>AWSCURRENT</code>, <code>AWSPENDING</code>, or <code>AWSPREVIOUS</code>. If you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-encrypt existing secret versions with the new key. For more information about versions and staging labels, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version">Concepts: Version</a>.</p>
163    /// <p>A key alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html">About aliases</a>.</p>
164    /// <p>If you set this to an empty string, Secrets Manager uses the Amazon Web Services managed key <code>aws/secretsmanager</code>. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use <code>aws/secretsmanager</code>. Creating <code>aws/secretsmanager</code> can result in a one-time significant delay in returning the result.</p><important>
165    /// <p>You can only use the Amazon Web Services managed key <code>aws/secretsmanager</code> if you call this operation using credentials from the same Amazon Web Services account that owns the secret. If the secret is in a different account, then you must use a customer managed key and provide the ARN of that KMS key in this field. The user making the call must have permissions to both the secret and the KMS key in their respective accounts.</p>
166    /// </important>
167    pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
168        self.kms_key_id = ::std::option::Option::Some(input.into());
169        self
170    }
171    /// <p>The ARN, key ID, or alias of the KMS key that Secrets Manager uses to encrypt new secret versions as well as any existing versions with the staging labels <code>AWSCURRENT</code>, <code>AWSPENDING</code>, or <code>AWSPREVIOUS</code>. If you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-encrypt existing secret versions with the new key. For more information about versions and staging labels, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version">Concepts: Version</a>.</p>
172    /// <p>A key alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html">About aliases</a>.</p>
173    /// <p>If you set this to an empty string, Secrets Manager uses the Amazon Web Services managed key <code>aws/secretsmanager</code>. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use <code>aws/secretsmanager</code>. Creating <code>aws/secretsmanager</code> can result in a one-time significant delay in returning the result.</p><important>
174    /// <p>You can only use the Amazon Web Services managed key <code>aws/secretsmanager</code> if you call this operation using credentials from the same Amazon Web Services account that owns the secret. If the secret is in a different account, then you must use a customer managed key and provide the ARN of that KMS key in this field. The user making the call must have permissions to both the secret and the KMS key in their respective accounts.</p>
175    /// </important>
176    pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
177        self.kms_key_id = input;
178        self
179    }
180    /// <p>The ARN, key ID, or alias of the KMS key that Secrets Manager uses to encrypt new secret versions as well as any existing versions with the staging labels <code>AWSCURRENT</code>, <code>AWSPENDING</code>, or <code>AWSPREVIOUS</code>. If you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-encrypt existing secret versions with the new key. For more information about versions and staging labels, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version">Concepts: Version</a>.</p>
181    /// <p>A key alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html">About aliases</a>.</p>
182    /// <p>If you set this to an empty string, Secrets Manager uses the Amazon Web Services managed key <code>aws/secretsmanager</code>. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use <code>aws/secretsmanager</code>. Creating <code>aws/secretsmanager</code> can result in a one-time significant delay in returning the result.</p><important>
183    /// <p>You can only use the Amazon Web Services managed key <code>aws/secretsmanager</code> if you call this operation using credentials from the same Amazon Web Services account that owns the secret. If the secret is in a different account, then you must use a customer managed key and provide the ARN of that KMS key in this field. The user making the call must have permissions to both the secret and the KMS key in their respective accounts.</p>
184    /// </important>
185    pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
186        &self.kms_key_id
187    }
188    /// <p>The binary data to encrypt and store in the new version of the secret. We recommend that you store your binary data in a file and then pass the contents of the file as a parameter.</p>
189    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
190    /// <p>You can't access this parameter in the Secrets Manager console.</p>
191    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
192    pub fn secret_binary(mut self, input: ::aws_smithy_types::Blob) -> Self {
193        self.secret_binary = ::std::option::Option::Some(input);
194        self
195    }
196    /// <p>The binary data to encrypt and store in the new version of the secret. We recommend that you store your binary data in a file and then pass the contents of the file as a parameter.</p>
197    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
198    /// <p>You can't access this parameter in the Secrets Manager console.</p>
199    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
200    pub fn set_secret_binary(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
201        self.secret_binary = input;
202        self
203    }
204    /// <p>The binary data to encrypt and store in the new version of the secret. We recommend that you store your binary data in a file and then pass the contents of the file as a parameter.</p>
205    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
206    /// <p>You can't access this parameter in the Secrets Manager console.</p>
207    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
208    pub fn get_secret_binary(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
209        &self.secret_binary
210    }
211    /// <p>The text data to encrypt and store in the new version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value.</p>
212    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
213    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
214    pub fn secret_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
215        self.secret_string = ::std::option::Option::Some(input.into());
216        self
217    }
218    /// <p>The text data to encrypt and store in the new version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value.</p>
219    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
220    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
221    pub fn set_secret_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
222        self.secret_string = input;
223        self
224    }
225    /// <p>The text data to encrypt and store in the new version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value.</p>
226    /// <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p>
227    /// <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
228    pub fn get_secret_string(&self) -> &::std::option::Option<::std::string::String> {
229        &self.secret_string
230    }
231    /// Consumes the builder and constructs a [`UpdateSecretInput`](crate::operation::update_secret::UpdateSecretInput).
232    pub fn build(
233        self,
234    ) -> ::std::result::Result<crate::operation::update_secret::UpdateSecretInput, ::aws_smithy_types::error::operation::BuildError> {
235        ::std::result::Result::Ok(crate::operation::update_secret::UpdateSecretInput {
236            secret_id: self.secret_id,
237            client_request_token: self.client_request_token,
238            description: self.description,
239            kms_key_id: self.kms_key_id,
240            secret_binary: self.secret_binary,
241            secret_string: self.secret_string,
242        })
243    }
244}
245impl ::std::fmt::Debug for UpdateSecretInputBuilder {
246    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
247        let mut formatter = f.debug_struct("UpdateSecretInputBuilder");
248        formatter.field("secret_id", &self.secret_id);
249        formatter.field("client_request_token", &self.client_request_token);
250        formatter.field("description", &self.description);
251        formatter.field("kms_key_id", &self.kms_key_id);
252        formatter.field("secret_binary", &"*** Sensitive Data Redacted ***");
253        formatter.field("secret_string", &"*** Sensitive Data Redacted ***");
254        formatter.finish()
255    }
256}