Skip to content

/AWS1/IF_IAM=>UPDATESIGNINGCERTIFICATE()

About UpdateSigningCertificate

Changes the status of the specified user signing certificate from active to disabled, or vice versa. This operation can be used to disable an IAM user's signing certificate as part of a certificate rotation work flow.

If the UserName field is not specified, the 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.

Method Signature

METHODS /AWS1/IF_IAM~UPDATESIGNINGCERTIFICATE
  IMPORTING
    !IV_USERNAME TYPE /AWS1/IAMEXISTINGUSERNAMETYPE OPTIONAL
    !IV_CERTIFICATEID TYPE /AWS1/IAMCERTIFICATEIDTYPE OPTIONAL
    !IV_STATUS TYPE /AWS1/IAMSTATUSTYPE OPTIONAL
  RAISING
    /AWS1/CX_IAMINVALIDINPUTEX
    /AWS1/CX_IAMLIMITEXCEEDEDEX
    /AWS1/CX_IAMNOSUCHENTITYEX
    /AWS1/CX_IAMSERVICEFAILUREEX
    /AWS1/CX_IAMCLIENTEXC
    /AWS1/CX_IAMSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_certificateid TYPE /AWS1/IAMCERTIFICATEIDTYPE /AWS1/IAMCERTIFICATEIDTYPE

The ID of the signing certificate you want to update.

This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

iv_status TYPE /AWS1/IAMSTATUSTYPE /AWS1/IAMSTATUSTYPE

The status you want to assign to the certificate. Active means that the certificate can be used for programmatic calls to Amazon Web Services Inactive means that the certificate cannot be used.

Optional arguments:

iv_username TYPE /AWS1/IAMEXISTINGUSERNAMETYPE /AWS1/IAMEXISTINGUSERNAMETYPE

The name of the IAM user the signing certificate belongs to.

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

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

lo_client->updatesigningcertificate(
  iv_certificateid = |string|
  iv_status = |string|
  iv_username = |string|
).

To change the active status of a signing certificate for an IAM user

The following command changes the status of a signing certificate for a user named Bob to Inactive.

lo_client->updatesigningcertificate(
  iv_certificateid = |TA7SMP42TDN5Z26OBPJE7EXAMPLE|
  iv_status = |Inactive|
  iv_username = |Bob|
).