1. Packages
  2. AWS Classic
  3. API Docs
  4. iam
  5. getOpenIdConnectProvider

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.iam.getOpenIdConnectProvider

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.iam.getOpenIdConnectProvider({
        arn: "arn:aws:iam::123456789012:oidc-provider/accounts.google.com",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.iam.get_open_id_connect_provider(arn="arn:aws:iam::123456789012:oidc-provider/accounts.google.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iam.LookupOpenIdConnectProvider(ctx, &iam.LookupOpenIdConnectProviderArgs{
    			Arn: pulumi.StringRef("arn:aws:iam::123456789012:oidc-provider/accounts.google.com"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Iam.GetOpenIdConnectProvider.Invoke(new()
        {
            Arn = "arn:aws:iam::123456789012:oidc-provider/accounts.google.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetOpenIdConnectProviderArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = IamFunctions.getOpenIdConnectProvider(GetOpenIdConnectProviderArgs.builder()
                .arn("arn:aws:iam::123456789012:oidc-provider/accounts.google.com")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:iam:getOpenIdConnectProvider
          Arguments:
            arn: arn:aws:iam::123456789012:oidc-provider/accounts.google.com
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.iam.getOpenIdConnectProvider({
        url: "https://accounts.google.com",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.iam.get_open_id_connect_provider(url="https://accounts.google.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iam.LookupOpenIdConnectProvider(ctx, &iam.LookupOpenIdConnectProviderArgs{
    			Url: pulumi.StringRef("https://accounts.google.com"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Iam.GetOpenIdConnectProvider.Invoke(new()
        {
            Url = "https://accounts.google.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetOpenIdConnectProviderArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = IamFunctions.getOpenIdConnectProvider(GetOpenIdConnectProviderArgs.builder()
                .url("https://accounts.google.com")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:iam:getOpenIdConnectProvider
          Arguments:
            url: https://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_open_id_connect_provider(arn: Optional[str] = None,
                                     tags: Optional[Mapping[str, str]] = None,
                                     url: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetOpenIdConnectProviderResult
    def get_open_id_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 LookupOpenIdConnectProvider(ctx *Context, args *LookupOpenIdConnectProviderArgs, opts ...InvokeOption) (*LookupOpenIdConnectProviderResult, error)
    func LookupOpenIdConnectProviderOutput(ctx *Context, args *LookupOpenIdConnectProviderOutputArgs, opts ...InvokeOption) LookupOpenIdConnectProviderResultOutput

    > Note: This function is named LookupOpenIdConnectProvider 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
    ARN of the OpenID Connect provider.
    Tags Dictionary<string, string>
    Map of resource tags for the IAM OIDC provider.
    Url string
    URL of the OpenID Connect provider.
    Arn string
    ARN of the OpenID Connect provider.
    Tags map[string]string
    Map of resource tags for the IAM OIDC provider.
    Url string
    URL of the OpenID Connect provider.
    arn String
    ARN of the OpenID Connect provider.
    tags Map<String,String>
    Map of resource tags for the IAM OIDC provider.
    url String
    URL of the OpenID Connect provider.
    arn string
    ARN of the OpenID Connect provider.
    tags {[key: string]: string}
    Map of resource tags for the IAM OIDC provider.
    url string
    URL of the OpenID Connect provider.
    arn str
    ARN of the OpenID Connect provider.
    tags Mapping[str, str]
    Map of resource tags for the IAM OIDC provider.
    url str
    URL of the OpenID Connect provider.
    arn String
    ARN of the OpenID Connect provider.
    tags Map<String>
    Map of resource tags for the IAM OIDC provider.
    url String
    URL of the OpenID Connect provider.

    getOpenIdConnectProvider Result

    The following output properties are available:

    Arn string
    ClientIdLists List<string>
    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>
    List of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).
    Url string
    Arn string
    ClientIdLists []string
    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
    List of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).
    Url string
    arn String
    clientIdLists List<String>
    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>
    List of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).
    url String
    arn string
    clientIdLists string[]
    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[]
    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]
    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]
    List of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).
    url str
    arn String
    clientIdLists List<String>
    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>
    List of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s).
    url String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi