getWorkloadIdentityPoolProvider

Get a IAM workload identity provider from Google Cloud by its id.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Gcp.Iam.GetWorkloadIdentityPoolProvider.InvokeAsync(new Gcp.Iam.GetWorkloadIdentityPoolProviderArgs
        {
            WorkloadIdentityPoolId = "foo-pool",
            WorkloadIdentityPoolProviderId = "bar-provider",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iam.LookupWorkloadIdentityPoolProvider(ctx, &iam.LookupWorkloadIdentityPoolProviderArgs{
			WorkloadIdentityPoolId:         "foo-pool",
			WorkloadIdentityPoolProviderId: "bar-provider",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_gcp as gcp

foo = gcp.iam.get_workload_identity_pool_provider(workload_identity_pool_id="foo-pool",
    workload_identity_pool_provider_id="bar-provider")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const foo = pulumi.output(gcp.iam.getWorkloadIdentityPoolProvider({
    workloadIdentityPoolId: "foo-pool",
    workloadIdentityPoolProviderId: "bar-provider",
}, { async: true }));

Using getWorkloadIdentityPoolProvider

function getWorkloadIdentityPoolProvider(args: GetWorkloadIdentityPoolProviderArgs, opts?: InvokeOptions): Promise<GetWorkloadIdentityPoolProviderResult>
def get_workload_identity_pool_provider(project: Optional[str] = None,
                                        workload_identity_pool_id: Optional[str] = None,
                                        workload_identity_pool_provider_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetWorkloadIdentityPoolProviderResult
func LookupWorkloadIdentityPoolProvider(ctx *Context, args *LookupWorkloadIdentityPoolProviderArgs, opts ...InvokeOption) (*LookupWorkloadIdentityPoolProviderResult, error)

Note: This function is named LookupWorkloadIdentityPoolProvider in the Go SDK.

public static class GetWorkloadIdentityPoolProvider {
    public static Task<GetWorkloadIdentityPoolProviderResult> InvokeAsync(GetWorkloadIdentityPoolProviderArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

WorkloadIdentityPoolId string
The id of the pool which is the final component of the pool resource name.
WorkloadIdentityPoolProviderId string
The id of the provider which is the final component of the resource name.
Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
WorkloadIdentityPoolId string
The id of the pool which is the final component of the pool resource name.
WorkloadIdentityPoolProviderId string
The id of the provider which is the final component of the resource name.
Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
workloadIdentityPoolId string
The id of the pool which is the final component of the pool resource name.
workloadIdentityPoolProviderId string
The id of the provider which is the final component of the resource name.
project string
The project in which the resource belongs. If it is not provided, the provider project is used.
workload_identity_pool_id str
The id of the pool which is the final component of the pool resource name.
workload_identity_pool_provider_id str
The id of the provider which is the final component of the resource name.
project str
The project in which the resource belongs. If it is not provided, the provider project is used.

getWorkloadIdentityPoolProvider Result

The following output properties are available:

AttributeCondition string
AttributeMapping Dictionary<string, string>
Aws List<GetWorkloadIdentityPoolProviderAw>
Description string
Disabled bool
DisplayName string
Id string
The provider-assigned unique ID for this managed resource.
Name string
Oidcs List<GetWorkloadIdentityPoolProviderOidc>
State string
WorkloadIdentityPoolId string
WorkloadIdentityPoolProviderId string
Project string
AttributeCondition string
AttributeMapping map[string]string
Aws []GetWorkloadIdentityPoolProviderAw
Description string
Disabled bool
DisplayName string
Id string
The provider-assigned unique ID for this managed resource.
Name string
Oidcs []GetWorkloadIdentityPoolProviderOidc
State string
WorkloadIdentityPoolId string
WorkloadIdentityPoolProviderId string
Project string
attributeCondition string
attributeMapping {[key: string]: string}
aws GetWorkloadIdentityPoolProviderAw[]
description string
disabled boolean
displayName string
id string
The provider-assigned unique ID for this managed resource.
name string
oidcs GetWorkloadIdentityPoolProviderOidc[]
state string
workloadIdentityPoolId string
workloadIdentityPoolProviderId string
project string

Supporting Types

GetWorkloadIdentityPoolProviderAw

AccountId string
AccountId string
accountId string

GetWorkloadIdentityPoolProviderOidc

AllowedAudiences List<string>
IssuerUri string
allowed_audiences Sequence[str]
issuer_uri str

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.