AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the UploadSigningCertificate operation.
Uploads an X.509 signing certificate and associates it with the specified IAM user.
Some Amazon Web Services services require you to use certificates to validate requests
that are signed with a corresponding private key. When you upload the certificate,
its default status is Active
.
For information about when you would use an X.509 signing certificate, see Managing server certificates in IAM in the IAM User Guide.
If the UserName
is not specified, the IAM user name is determined implicitly
based on the Amazon Web Services access key ID used to sign the request. This operation
works for access keys under the Amazon Web Services account. Consequently, you can
use this operation to manage Amazon Web Services account root user credentials even
if the Amazon Web Services account has no associated users.
Because the body of an X.509 certificate can be large, you should use POST rather
than GET when calling UploadSigningCertificate
. For information about setting
up signatures and authorization through the API, see Signing
Amazon Web Services API requests in the Amazon Web Services General Reference.
For general information about using the Query API with IAM, see Making
query requests in the IAM User Guide.
Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.IdentityManagement.dll
Version: 3.x.y.z
public class UploadSigningCertificateRequest : AmazonIdentityManagementServiceRequest IAmazonWebServiceRequest
The UploadSigningCertificateRequest type exposes the following members
Name | Description | |
---|---|---|
UploadSigningCertificateRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
UploadSigningCertificateRequest(string) |
Instantiates UploadSigningCertificateRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
CertificateBody | System.String |
Gets and sets the property CertificateBody. The contents of the signing certificate. The regex pattern used to validate this parameter is a string of characters consisting of the following:
|
|
UserName | System.String |
Gets and sets the property UserName. The name of the user the signing certificate is for. 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: _+=,.@- |
The following command uploads a signing certificate for the IAM user named Bob.
var client = new AmazonIdentityManagementServiceClient(); var response = client.UploadSigningCertificate(new UploadSigningCertificateRequest { CertificateBody = "-----BEGIN CERTIFICATE-----<certificate-body>-----END CERTIFICATE-----", UserName = "Bob" }); SigningCertificate certificate = response.Certificate;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5