

# GetWorkloadIdentityProvider

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

## Request Parameters
<a name="API_GetWorkloadIdentityProvider_RequestParameters"></a>

 For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

 ** 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
<a name="API_GetWorkloadIdentityProvider_ResponseElements"></a>

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)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) 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](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListWorkloadIdentityProviderOutboundSigners.html).  
Type: [WorkloadIdentityOutboundSigners](API_WorkloadIdentityOutboundSigners.md) 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the *IAM User Guide*.  
Type: Array of [Tag](API_Tag.md) 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
<a name="API_GetWorkloadIdentityProvider_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** 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
<a name="API_GetWorkloadIdentityProvider_Examples"></a>

### Example
<a name="API_GetWorkloadIdentityProvider_Example_1"></a>

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
<a name="API_GetWorkloadIdentityProvider_Example_1_Request"></a>

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

#### Sample Response
<a name="API_GetWorkloadIdentityProvider_Example_1_Response"></a>

```xml
<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
<a name="API_GetWorkloadIdentityProvider_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/iam-2010-05-08/GetWorkloadIdentityProvider) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/iam-2010-05-08/GetWorkloadIdentityProvider) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/iam-2010-05-08/GetWorkloadIdentityProvider) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/iam-2010-05-08/GetWorkloadIdentityProvider) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iam-2010-05-08/GetWorkloadIdentityProvider) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/iam-2010-05-08/GetWorkloadIdentityProvider) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/iam-2010-05-08/GetWorkloadIdentityProvider) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/iam-2010-05-08/GetWorkloadIdentityProvider) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/iam-2010-05-08/GetWorkloadIdentityProvider) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iam-2010-05-08/GetWorkloadIdentityProvider) 