View a markdown version of this page

GetWorkloadIdentityProvider - AWS Identity and Access Management

GetWorkloadIdentityProvider

Retrieves a workload identity provider by ARN, including its tags and its outbound signers.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

WorkloadIdentityProviderArn

The Amazon Resource Name (ARN) of the provider to read.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Required: Yes

Response Elements

The following elements are returned by the service.

Arn

The Amazon Resource Name (ARN) specifying the provider. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

CreateDate

The date and time, in ISO 8601 date-time format, when the provider was created.

Type: Timestamp

Description

The description of the provider. Present only when the provider carries one.

Type: String

Length Constraints: Maximum length of 255.

Pattern: ^[\u0009\u000A\u000D\u0020-\u007E\u00A1-\u00FF]*$

OutboundSigners

The provider's outbound signing material. Present only when the provider holds signing material.

This element reports at most ten signers per credential format and omits retired entries. To see every entry, including retired ones, call ListWorkloadIdentityProviderOutboundSigners.

Type: WorkloadIdentityOutboundSigners object

ProviderId

The unique identifier of the provider, which does not change for the life of the provider. IAM prefixes it with AWPA for an account-scoped provider and AWPO for an organization-scoped provider.

Type: String

Length Constraints: Minimum length of 16. Maximum length of 128.

Pattern: [\w]+

ProviderName

The friendly name of the provider.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Pattern: ^[A-Za-z0-9_.-]+$

ResourceScope

The scope the provider was created at.

Type: String

Valid Values: ACCOUNT | ORGANIZATION

Scheme

The naming scheme of the provider. SPIFFE roots every identifier at the provider's domain, and NONE renders the path alone.

Type: String

Valid Values: NONE | SPIFFE

Tags.member.N

The tags attached to the provider. Present only when the provider carries tags. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Type: Array of Tag objects

Array Members: Maximum number of 50 items.

WorkloadIdentityDomain

The domain that roots the identifiers minted under the provider. Present only when a domain is claimed.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?){0,31}$

Errors

For information about the errors that are common to all actions, see Common Error Types.

InvalidInput

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400

NoSuchEntity

The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.

HTTP Status Code: 404

ServiceFailure

The request processing has failed because of an unknown error, exception or failure.

HTTP Status Code: 500

Examples

Example

This example retrieves a provider that has no X.509 outbound signer attached yet, so X509 is empty and Jwt lists the two signers that IAM manages.

Sample Request

https://iam.amazonaws.com/?Action=GetWorkloadIdentityProvider &WorkloadIdentityProviderArn=arn:aws:iam::111122223333:workload-identity-provider/PaymentsProd &Version=2010-05-08 &AUTHPARAMS

Sample Response

<GetWorkloadIdentityProviderResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <GetWorkloadIdentityProviderResult> <Arn>arn:aws:iam::111122223333:workload-identity-provider/PaymentsProd</Arn> <ResourceScope>ACCOUNT</ResourceScope> <ProviderName>PaymentsProd</ProviderName> <ProviderId>AWPAI3LGJ4EXAMPLE</ProviderId> <Description>Payments fleet provider</Description> <Scheme>SPIFFE</Scheme> <WorkloadIdentityDomain>example.org</WorkloadIdentityDomain> <Tags> <member> <Key>Team</Key> <Value>Payments</Value> </member> </Tags> <CreateDate>2012-05-08T23:34:01.495Z</CreateDate> <OutboundSigners> <X509> <member> <Configuration> <CertificateAuthorityId>a1b2c3d4-5678-90ab-cdef-EXAMPLE11111</CertificateAuthorityId> <AccountId>111122223333</AccountId> </Configuration> <Status>ACTIVE</Status> <StartSigningTime>2012-05-09T23:34:01.495Z</StartSigningTime> <EndSigningTime>2012-06-02T00:00:00Z</EndSigningTime> <DiscoveryExpirationTime>2012-06-02T12:00:00Z</DiscoveryExpirationTime> </member> <member> <Configuration> <CertificateAuthorityId>a1b2c3d4-5678-90ab-cdef-EXAMPLE22222</CertificateAuthorityId> <AccountId>111122223333</AccountId> </Configuration> <Status>IN_TRANSITION</Status> <StartSigningTime>2012-06-02T00:00:00Z</StartSigningTime> </member> </X509> <Jwt> <member> <Configuration> <KeyAlgorithm>RSA_2048</KeyAlgorithm> </Configuration> <SigningAlgorithm>RS256</SigningAlgorithm> <StartSigningTime>2012-05-08T23:34:01.495Z</StartSigningTime> </member> <member> <Configuration> <KeyAlgorithm>ECC_NIST_P384</KeyAlgorithm> </Configuration> <SigningAlgorithm>ES384</SigningAlgorithm> <StartSigningTime>2012-05-08T23:34:01.495Z</StartSigningTime> </member> </Jwt> <OidcIssuerUri>https://ai3lgj4example.workloads.tokens.sts.global.api.aws</OidcIssuerUri> <BundleEndpointUrl>https://ai3lgj4example.workloads.tokens.sts.global.api.aws/bundle</BundleEndpointUrl> </OutboundSigners> </GetWorkloadIdentityProviderResult> <ResponseMetadata> <RequestId>20f7279f-99ee-11e1-a4c3-27EXAMPLE804</RequestId> </ResponseMetadata> </GetWorkloadIdentityProviderResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: