Skip to content

List Service Specific Credentials

iam_list_service_specific_credentials R Documentation

Returns information about the service-specific credentials associated with the specified IAM user

Description

Returns information about the service-specific credentials associated with the specified IAM user. If none exists, the operation returns an empty list. The service-specific credentials returned by this operation are used only for authenticating the IAM user to a specific service. For more information about using service-specific credentials to authenticate to an Amazon Web Services service, see Set up service-specific credentials in the CodeCommit User Guide.

Usage

iam_list_service_specific_credentials(UserName, ServiceName, AllUsers,
  Marker, MaxItems)

Arguments

UserName

The name of the user whose service-specific credentials you want information about. If this value is not specified, then the operation assumes the user whose credentials are used to call the operation.

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

ServiceName

Filters the returned results to only those for the specified Amazon Web Services service. If not specified, then Amazon Web Services returns service-specific credentials for all services.

AllUsers

A flag indicating whether to list service specific credentials for all users. This parameter cannot be specified together with UserName. When true, returns all credentials associated with the specified service.

Marker

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker from the response that you received to indicate where the next call should start.

MaxItems

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

Value

A list with the following syntax:

list(
  ServiceSpecificCredentials = list(
    list(
      UserName = "string",
      Status = "Active"|"Inactive"|"Expired",
      ServiceUserName = "string",
      ServiceCredentialAlias = "string",
      CreateDate = as.POSIXct(
        "2015-01-01"
      ),
      ExpirationDate = as.POSIXct(
        "2015-01-01"
      ),
      ServiceSpecificCredentialId = "string",
      ServiceName = "string"
    )
  ),
  Marker = "string",
  IsTruncated = TRUE|FALSE
)

Request syntax

svc$list_service_specific_credentials(
  UserName = "string",
  ServiceName = "string",
  AllUsers = TRUE|FALSE,
  Marker = "string",
  MaxItems = 123
)