libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IAM.UploadSigningCertificate

Description

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.

Synopsis

Creating a Request

data UploadSigningCertificate Source #

See: newUploadSigningCertificate smart constructor.

Constructors

UploadSigningCertificate' 

Fields

  • userName :: Maybe Text

    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: _+=,.@-

  • certificateBody :: Text

    The contents of the signing certificate.

    The regex pattern used to validate this parameter is a string of characters consisting of the following:

    • Any printable ASCII character ranging from the space character (\u0020) through the end of the ASCII character range
    • The printable characters in the Basic Latin and Latin-1 Supplement character set (through \u00FF)
    • The special characters tab (\u0009), line feed (\u000A), and carriage return (\u000D)

Instances

Instances details
Eq UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

Read UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

Show UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

Generic UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

Associated Types

type Rep UploadSigningCertificate :: Type -> Type #

NFData UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

Hashable UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

AWSRequest UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

ToHeaders UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

ToPath UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

ToQuery UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

type Rep UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

type Rep UploadSigningCertificate = D1 ('MetaData "UploadSigningCertificate" "Amazonka.IAM.UploadSigningCertificate" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "UploadSigningCertificate'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "certificateBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse UploadSigningCertificate Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

newUploadSigningCertificate Source #

Create a value of UploadSigningCertificate with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:userName:UploadSigningCertificate', uploadSigningCertificate_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: _+=,.@-

$sel:certificateBody:UploadSigningCertificate', uploadSigningCertificate_certificateBody - The contents of the signing certificate.

The regex pattern used to validate this parameter is a string of characters consisting of the following:

  • Any printable ASCII character ranging from the space character (\u0020) through the end of the ASCII character range
  • The printable characters in the Basic Latin and Latin-1 Supplement character set (through \u00FF)
  • The special characters tab (\u0009), line feed (\u000A), and carriage return (\u000D)

Request Lenses

uploadSigningCertificate_userName :: Lens' UploadSigningCertificate (Maybe Text) Source #

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: _+=,.@-

uploadSigningCertificate_certificateBody :: Lens' UploadSigningCertificate Text Source #

The contents of the signing certificate.

The regex pattern used to validate this parameter is a string of characters consisting of the following:

  • Any printable ASCII character ranging from the space character (\u0020) through the end of the ASCII character range
  • The printable characters in the Basic Latin and Latin-1 Supplement character set (through \u00FF)
  • The special characters tab (\u0009), line feed (\u000A), and carriage return (\u000D)

Destructuring the Response

data UploadSigningCertificateResponse Source #

Contains the response to a successful UploadSigningCertificate request.

See: newUploadSigningCertificateResponse smart constructor.

Constructors

UploadSigningCertificateResponse' 

Fields

Instances

Instances details
Eq UploadSigningCertificateResponse Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

Read UploadSigningCertificateResponse Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

Show UploadSigningCertificateResponse Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

Generic UploadSigningCertificateResponse Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

Associated Types

type Rep UploadSigningCertificateResponse :: Type -> Type #

NFData UploadSigningCertificateResponse Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

type Rep UploadSigningCertificateResponse Source # 
Instance details

Defined in Amazonka.IAM.UploadSigningCertificate

type Rep UploadSigningCertificateResponse = D1 ('MetaData "UploadSigningCertificateResponse" "Amazonka.IAM.UploadSigningCertificate" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "UploadSigningCertificateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "certificate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SigningCertificate)))

newUploadSigningCertificateResponse Source #

Create a value of UploadSigningCertificateResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:UploadSigningCertificateResponse', uploadSigningCertificateResponse_httpStatus - The response's http status code.

$sel:certificate:UploadSigningCertificateResponse', uploadSigningCertificateResponse_certificate - Information about the certificate.

Response Lenses