Struct aws_sdk_iam::operation::update_server_certificate::builders::UpdateServerCertificateFluentBuilder
source · pub struct UpdateServerCertificateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateServerCertificate
.
Updates the name and/or the path of the specified server certificate stored in IAM.
For more information about working with server certificates, see Working with server certificates in the IAM User Guide. This topic also includes a list of Amazon Web Services services that can use the server certificates that you manage with IAM.
You should understand the implications of changing a server certificate's path or name. For more information, see Renaming a server certificate in the IAM User Guide.
The person making the request (the principal), must have permission to change the server certificate with the old name and the new name. For example, to change the certificate named ProductionCert
to ProdCert
, the principal must have a policy that allows them to update both certificates. If the principal has permission to update the ProductionCert
group, but not the ProdCert
certificate, then the update fails. For more information about permissions, see Access management in the IAM User Guide.
Implementations§
source§impl UpdateServerCertificateFluentBuilder
impl UpdateServerCertificateFluentBuilder
sourcepub fn as_input(&self) -> &UpdateServerCertificateInputBuilder
pub fn as_input(&self) -> &UpdateServerCertificateInputBuilder
Access the UpdateServerCertificate as a reference.
sourcepub async fn send(
self
) -> Result<UpdateServerCertificateOutput, SdkError<UpdateServerCertificateError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateServerCertificateOutput, SdkError<UpdateServerCertificateError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateServerCertificateOutput, UpdateServerCertificateError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateServerCertificateOutput, UpdateServerCertificateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn server_certificate_name(self, input: impl Into<String>) -> Self
pub fn server_certificate_name(self, input: impl Into<String>) -> Self
The name of the server certificate that you want to update.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn set_server_certificate_name(self, input: Option<String>) -> Self
pub fn set_server_certificate_name(self, input: Option<String>) -> Self
The name of the server certificate that you want to update.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn get_server_certificate_name(&self) -> &Option<String>
pub fn get_server_certificate_name(&self) -> &Option<String>
The name of the server certificate that you want to update.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn new_path(self, input: impl Into<String>) -> Self
pub fn new_path(self, input: impl Into<String>) -> Self
The new path for the server certificate. Include this only if you are updating the server certificate's path.
This parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021
) through the DEL character (\u007F
), including most punctuation characters, digits, and upper and lowercased letters.
sourcepub fn set_new_path(self, input: Option<String>) -> Self
pub fn set_new_path(self, input: Option<String>) -> Self
The new path for the server certificate. Include this only if you are updating the server certificate's path.
This parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021
) through the DEL character (\u007F
), including most punctuation characters, digits, and upper and lowercased letters.
sourcepub fn get_new_path(&self) -> &Option<String>
pub fn get_new_path(&self) -> &Option<String>
The new path for the server certificate. Include this only if you are updating the server certificate's path.
This parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021
) through the DEL character (\u007F
), including most punctuation characters, digits, and upper and lowercased letters.
sourcepub fn new_server_certificate_name(self, input: impl Into<String>) -> Self
pub fn new_server_certificate_name(self, input: impl Into<String>) -> Self
The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn set_new_server_certificate_name(self, input: Option<String>) -> Self
pub fn set_new_server_certificate_name(self, input: Option<String>) -> Self
The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn get_new_server_certificate_name(&self) -> &Option<String>
pub fn get_new_server_certificate_name(&self) -> &Option<String>
The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Trait Implementations§
source§impl Clone for UpdateServerCertificateFluentBuilder
impl Clone for UpdateServerCertificateFluentBuilder
source§fn clone(&self) -> UpdateServerCertificateFluentBuilder
fn clone(&self) -> UpdateServerCertificateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more