AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getOpenidConnectProvider

This data source can be used to fetch information about a specific IAM OpenID Connect provider. By using this data source, you can retrieve the the resource information by either its arn or url.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Iam.GetOpenidConnectProvider.InvokeAsync(new Aws.Iam.GetOpenidConnectProviderArgs
        {
            Arn = "arn:aws:iam::123456789012:oidc-provider/accounts.google.com",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iam.GetOpenidConnectProvider(ctx, &iam.GetOpenidConnectProviderArgs{
			Arn: pulumi.StringRef("arn:aws:iam::123456789012:oidc-provider/accounts.google.com"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(IamFunctions.getOpenidConnectProvider(GetOpenidConnectProviderArgs.builder()
            .arn("arn:aws:iam::123456789012:oidc-provider/accounts.google.com")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.iam.get_openid_connect_provider(arn="arn:aws:iam::123456789012:oidc-provider/accounts.google.com")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.iam.getOpenidConnectProvider({
    arn: "arn:aws:iam::123456789012:oidc-provider/accounts.google.com",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:iam:getOpenidConnectProvider
      Arguments:
        arn: arn:aws:iam::123456789012:oidc-provider/accounts.google.com

Using getOpenidConnectProvider

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getOpenidConnectProvider(args: GetOpenidConnectProviderArgs, opts?: InvokeOptions): Promise<GetOpenidConnectProviderResult>
function getOpenidConnectProviderOutput(args: GetOpenidConnectProviderOutputArgs, opts?: InvokeOptions): Output<GetOpenidConnectProviderResult>
def get_openid_connect_provider(arn: Optional[str] = None,
                                tags: Optional[Mapping[str, str]] = None,
                                url: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetOpenidConnectProviderResult
def get_openid_connect_provider_output(arn: Optional[pulumi.Input[str]] = None,
                                tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                url: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetOpenidConnectProviderResult]
func GetOpenidConnectProvider(ctx *Context, args *GetOpenidConnectProviderArgs, opts ...InvokeOption) (*GetOpenidConnectProviderResult, error)
func GetOpenidConnectProviderOutput(ctx *Context, args *GetOpenidConnectProviderOutputArgs, opts ...InvokeOption) GetOpenidConnectProviderResultOutput

> Note: This function is named GetOpenidConnectProvider in the Go SDK.

public static class GetOpenidConnectProvider 
{
    public static Task<GetOpenidConnectProviderResult> InvokeAsync(GetOpenidConnectProviderArgs args, InvokeOptions? opts = null)
    public static Output<GetOpenidConnectProviderResult> Invoke(GetOpenidConnectProviderInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOpenidConnectProviderResult> getOpenidConnectProvider(GetOpenidConnectProviderArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:iam/getOpenidConnectProvider:getOpenidConnectProvider
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Arn string

The Amazon Resource Name (ARN) specifying the OpenID Connect provider.

Tags Dictionary<string, string>

Map of resource tags for the IAM OIDC provider.

Url string

The URL of the OpenID Connect provider.

Arn string

The Amazon Resource Name (ARN) specifying the OpenID Connect provider.

Tags map[string]string

Map of resource tags for the IAM OIDC provider.

Url string

The URL of the OpenID Connect provider.

arn String

The Amazon Resource Name (ARN) specifying the OpenID Connect provider.

tags Map<String,String>

Map of resource tags for the IAM OIDC provider.

url String

The URL of the OpenID Connect provider.

arn string

The Amazon Resource Name (ARN) specifying the OpenID Connect provider.

tags {[key: string]: string}

Map of resource tags for the IAM OIDC provider.

url string

The URL of the OpenID Connect provider.

arn str

The Amazon Resource Name (ARN) specifying the OpenID Connect provider.

tags Mapping[str, str]

Map of resource tags for the IAM OIDC provider.

url str

The URL of the OpenID Connect provider.

arn String

The Amazon Resource Name (ARN) specifying the OpenID Connect provider.

tags Map<String>

Map of resource tags for the IAM OIDC provider.

url String

The URL of the OpenID Connect provider.

getOpenidConnectProvider Result

The following output properties are available:

Arn string
ClientIdLists List<string>

A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.)

Id string

The provider-assigned unique ID for this managed resource.

Tags Dictionary<string, string>

Map of resource tags for the IAM OIDC provider.

ThumbprintLists List<string>

A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).

Url string
Arn string
ClientIdLists []string

A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.)

Id string

The provider-assigned unique ID for this managed resource.

Tags map[string]string

Map of resource tags for the IAM OIDC provider.

ThumbprintLists []string

A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).

Url string
arn String
clientIdLists List<String>

A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.)

id String

The provider-assigned unique ID for this managed resource.

tags Map<String,String>

Map of resource tags for the IAM OIDC provider.

thumbprintLists List<String>

A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).

url String
arn string
clientIdLists string[]

A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.)

id string

The provider-assigned unique ID for this managed resource.

tags {[key: string]: string}

Map of resource tags for the IAM OIDC provider.

thumbprintLists string[]

A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).

url string
arn str
client_id_lists Sequence[str]

A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.)

id str

The provider-assigned unique ID for this managed resource.

tags Mapping[str, str]

Map of resource tags for the IAM OIDC provider.

thumbprint_lists Sequence[str]

A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).

url str
arn String
clientIdLists List<String>

A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.)

id String

The provider-assigned unique ID for this managed resource.

tags Map<String>

Map of resource tags for the IAM OIDC provider.

thumbprintLists List<String>

A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).

url String

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.