// Uploads an X.509 signing certificate and associates it with the specified IAM
// user. Some AWS services use X.509 signing certificates to validate requests that
// are signed with a corresponding private key. When you upload the certificate,
// its default status is Active. If the UserName is not specified, the IAM user
// name is determined implicitly based on the AWS access key ID used to sign the
// request. This operation works for access keys under the AWS account.
// Consequently, you can use this operation to manage AWS account root user
// credentials even if the AWS 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, go to Signing AWS API Requests
// (https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) in
// the AWS General Reference. For general information about using the Query API
// with IAM, go to Making Query Requests
// (https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) in the
// IAM User Guide.
Uploads an X.509 signing certificate and associates it with the specified IAM
user. Some AWS services use X.509 signing certificates to validate requests that
are signed with a corresponding private key. When you upload the certificate,
its default status is Active. If the UserName is not specified, the IAM user
name is determined implicitly based on the AWS access key ID used to sign the
request. This operation works for access keys under the AWS account.
Consequently, you can use this operation to manage AWS account root user
credentials even if the AWS 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, go to Signing AWS API Requests
in
the AWS General Reference. For general information about using the Query API
with IAM, go to Making Query Requests
in the
IAM User Guide.
// Uploads an X . 509 signing certificate and associates it with the specified IAM // user . Some AWS services use X . 509 signing certificates to validate requests that // are signed with a corresponding private key . When you upload the certificate // its default status is Active . If the UserName is not specified the IAM user // name is determined implicitly based on the AWS access key ID used to sign the // request . This operation works for access keys under the AWS account . // Consequently you can use this operation to manage AWS account root user // credentials even if the AWS 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 go to Signing AWS API Requests // ( https : // docs . aws . amazon . com / general / latest / gr / signing_aws_api_requests . html ) in // the AWS General Reference . For general information about using the Query API // with IAM go to Making Query Requests // ( https : // docs . aws . amazon . com / IAM / latest / UserGuide / IAM_UsingQueryAPI . html ) in the // IAM User Guide .
func (c *Client) UploadSigningCertificate(ctx context.Context, params *UploadSigningCertificateInput, optFns ...func(*Options)) (*UploadSigningCertificateOutput, error) {
	if params == nil {
		params = &UploadSigningCertificateInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "UploadSigningCertificate", params, optFns, addOperationUploadSigningCertificateMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*UploadSigningCertificateOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) UploadSigningCertificate ( ctx context . Context , params * UploadSigningCertificateInput , optFns ... func ( * Options ) ) ( * UploadSigningCertificateOutput , error ) { if params == nil { params = & UploadSigningCertificateInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationUploadSigningCertificateMiddlewares ) if err != nil { return nil , err } out := result . ( * UploadSigningCertificateOutput ) out . ResultMetadata = metadata return out , nil }
Uploads an X.509 signing certificate and associates it with the specified IAM
user.
Uploads an X . 509 signing certificate and associates it with the specified IAM user .