confluentcloud.getIdentityPool
Explore with Pulumi AI
confluentcloud.IdentityPool
describes an Identity Pool data source.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var exampleUsingIdIdentityPool = ConfluentCloud.GetIdentityPool.Invoke(new()
{
Id = "pool-xyz456",
IdentityProvider = new ConfluentCloud.Inputs.GetIdentityPoolIdentityProviderInputArgs
{
Id = "op-abc123",
},
});
var exampleUsingNameIdentityPool = ConfluentCloud.GetIdentityPool.Invoke(new()
{
DisplayName = "My Identity Pool",
IdentityProvider = new ConfluentCloud.Inputs.GetIdentityPoolIdentityProviderInputArgs
{
Id = "op-abc123",
},
});
return new Dictionary<string, object?>
{
["exampleUsingId"] = exampleUsingIdIdentityPool,
["exampleUsingName"] = exampleUsingNameIdentityPool,
};
});
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleUsingIdIdentityPool, err := confluentcloud.LookupIdentityPool(ctx, &confluentcloud.LookupIdentityPoolArgs{
Id: pulumi.StringRef("pool-xyz456"),
IdentityProvider: confluentcloud.GetIdentityPoolIdentityProvider{
Id: "op-abc123",
},
}, nil)
if err != nil {
return err
}
ctx.Export("exampleUsingId", exampleUsingIdIdentityPool)
exampleUsingNameIdentityPool, err := confluentcloud.LookupIdentityPool(ctx, &confluentcloud.LookupIdentityPoolArgs{
DisplayName: pulumi.StringRef("My Identity Pool"),
IdentityProvider: confluentcloud.GetIdentityPoolIdentityProvider{
Id: "op-abc123",
},
}, nil)
if err != nil {
return err
}
ctx.Export("exampleUsingName", exampleUsingNameIdentityPool)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.ConfluentcloudFunctions;
import com.pulumi.confluentcloud.inputs.GetIdentityPoolArgs;
import com.pulumi.confluentcloud.inputs.GetIdentityPoolIdentityProviderArgs;
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 exampleUsingIdIdentityPool = ConfluentcloudFunctions.getIdentityPool(GetIdentityPoolArgs.builder()
.id("pool-xyz456")
.identityProvider(GetIdentityPoolIdentityProviderArgs.builder()
.id("op-abc123")
.build())
.build());
ctx.export("exampleUsingId", exampleUsingIdIdentityPool.applyValue(getIdentityPoolResult -> getIdentityPoolResult));
final var exampleUsingNameIdentityPool = ConfluentcloudFunctions.getIdentityPool(GetIdentityPoolArgs.builder()
.displayName("My Identity Pool")
.identityProvider(GetIdentityPoolIdentityProviderArgs.builder()
.id("op-abc123")
.build())
.build());
ctx.export("exampleUsingName", exampleUsingNameIdentityPool.applyValue(getIdentityPoolResult -> getIdentityPoolResult));
}
}
import pulumi
import pulumi_confluentcloud as confluentcloud
example_using_id_identity_pool = confluentcloud.get_identity_pool(id="pool-xyz456",
identity_provider=confluentcloud.GetIdentityPoolIdentityProviderArgs(
id="op-abc123",
))
pulumi.export("exampleUsingId", example_using_id_identity_pool)
example_using_name_identity_pool = confluentcloud.get_identity_pool(display_name="My Identity Pool",
identity_provider=confluentcloud.GetIdentityPoolIdentityProviderArgs(
id="op-abc123",
))
pulumi.export("exampleUsingName", example_using_name_identity_pool)
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const exampleUsingIdIdentityPool = confluentcloud.getIdentityPool({
id: "pool-xyz456",
identityProvider: {
id: "op-abc123",
},
});
export const exampleUsingId = exampleUsingIdIdentityPool;
const exampleUsingNameIdentityPool = confluentcloud.getIdentityPool({
displayName: "My Identity Pool",
identityProvider: {
id: "op-abc123",
},
});
export const exampleUsingName = exampleUsingNameIdentityPool;
variables:
exampleUsingIdIdentityPool:
fn::invoke:
Function: confluentcloud:getIdentityPool
Arguments:
id: pool-xyz456
identityProvider:
id: op-abc123
exampleUsingNameIdentityPool:
fn::invoke:
Function: confluentcloud:getIdentityPool
Arguments:
displayName: My Identity Pool
identityProvider:
id: op-abc123
outputs:
exampleUsingId: ${exampleUsingIdIdentityPool}
exampleUsingName: ${exampleUsingNameIdentityPool}
Using getIdentityPool
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 getIdentityPool(args: GetIdentityPoolArgs, opts?: InvokeOptions): Promise<GetIdentityPoolResult>
function getIdentityPoolOutput(args: GetIdentityPoolOutputArgs, opts?: InvokeOptions): Output<GetIdentityPoolResult>
def get_identity_pool(display_name: Optional[str] = None,
id: Optional[str] = None,
identity_provider: Optional[GetIdentityPoolIdentityProvider] = None,
opts: Optional[InvokeOptions] = None) -> GetIdentityPoolResult
def get_identity_pool_output(display_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
identity_provider: Optional[pulumi.Input[GetIdentityPoolIdentityProviderArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIdentityPoolResult]
func LookupIdentityPool(ctx *Context, args *LookupIdentityPoolArgs, opts ...InvokeOption) (*LookupIdentityPoolResult, error)
func LookupIdentityPoolOutput(ctx *Context, args *LookupIdentityPoolOutputArgs, opts ...InvokeOption) LookupIdentityPoolResultOutput
> Note: This function is named LookupIdentityPool
in the Go SDK.
public static class GetIdentityPool
{
public static Task<GetIdentityPoolResult> InvokeAsync(GetIdentityPoolArgs args, InvokeOptions? opts = null)
public static Output<GetIdentityPoolResult> Invoke(GetIdentityPoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIdentityPoolResult> getIdentityPool(GetIdentityPoolArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: confluentcloud:index/getIdentityPool:getIdentityPool
arguments:
# arguments dictionary
The following arguments are supported:
- Identity
Provider Pulumi.Confluent Cloud. Inputs. Get Identity Pool Identity Provider (Required Configuration Block) supports the following:
- Display
Name string A human-readable name for the Identity Pool.
- Id string
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- Identity
Provider GetIdentity Pool Identity Provider (Required Configuration Block) supports the following:
- Display
Name string A human-readable name for the Identity Pool.
- Id string
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- identity
Provider GetIdentity Pool Identity Provider (Required Configuration Block) supports the following:
- display
Name String A human-readable name for the Identity Pool.
- id String
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- identity
Provider GetIdentity Pool Identity Provider (Required Configuration Block) supports the following:
- display
Name string A human-readable name for the Identity Pool.
- id string
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- identity_
provider GetIdentity Pool Identity Provider (Required Configuration Block) supports the following:
- display_
name str A human-readable name for the Identity Pool.
- id str
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- identity
Provider Property Map (Required Configuration Block) supports the following:
- display
Name String A human-readable name for the Identity Pool.
- id String
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
getIdentityPool Result
The following output properties are available:
- Description string
(Required String) A description for the Identity Pool.
- Display
Name string (Required String) A human-readable name for the Identity Pool.
- Filter string
(Required String) A filter expression in Supported Common Expression Language (CEL) that specifies which identities can authenticate using your identity pool (see Set identity pool filters for more details).
- Id string
(Required String) The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.- Identity
Claim string (Required String) The JSON Web Token (JWT) claim to extract the authenticating identity to Confluent resources from (see Registered Claim Names for more details). This appears in the audit log records, showing, for example, that "identity Z used identity pool X to access topic A".
- Identity
Provider Pulumi.Confluent Cloud. Outputs. Get Identity Pool Identity Provider (Required Configuration Block) supports the following:
- Description string
(Required String) A description for the Identity Pool.
- Display
Name string (Required String) A human-readable name for the Identity Pool.
- Filter string
(Required String) A filter expression in Supported Common Expression Language (CEL) that specifies which identities can authenticate using your identity pool (see Set identity pool filters for more details).
- Id string
(Required String) The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.- Identity
Claim string (Required String) The JSON Web Token (JWT) claim to extract the authenticating identity to Confluent resources from (see Registered Claim Names for more details). This appears in the audit log records, showing, for example, that "identity Z used identity pool X to access topic A".
- Identity
Provider GetIdentity Pool Identity Provider (Required Configuration Block) supports the following:
- description String
(Required String) A description for the Identity Pool.
- display
Name String (Required String) A human-readable name for the Identity Pool.
- filter String
(Required String) A filter expression in Supported Common Expression Language (CEL) that specifies which identities can authenticate using your identity pool (see Set identity pool filters for more details).
- id String
(Required String) The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.- identity
Claim String (Required String) The JSON Web Token (JWT) claim to extract the authenticating identity to Confluent resources from (see Registered Claim Names for more details). This appears in the audit log records, showing, for example, that "identity Z used identity pool X to access topic A".
- identity
Provider GetIdentity Pool Identity Provider (Required Configuration Block) supports the following:
- description string
(Required String) A description for the Identity Pool.
- display
Name string (Required String) A human-readable name for the Identity Pool.
- filter string
(Required String) A filter expression in Supported Common Expression Language (CEL) that specifies which identities can authenticate using your identity pool (see Set identity pool filters for more details).
- id string
(Required String) The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.- identity
Claim string (Required String) The JSON Web Token (JWT) claim to extract the authenticating identity to Confluent resources from (see Registered Claim Names for more details). This appears in the audit log records, showing, for example, that "identity Z used identity pool X to access topic A".
- identity
Provider GetIdentity Pool Identity Provider (Required Configuration Block) supports the following:
- description str
(Required String) A description for the Identity Pool.
- display_
name str (Required String) A human-readable name for the Identity Pool.
- filter str
(Required String) A filter expression in Supported Common Expression Language (CEL) that specifies which identities can authenticate using your identity pool (see Set identity pool filters for more details).
- id str
(Required String) The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.- identity_
claim str (Required String) The JSON Web Token (JWT) claim to extract the authenticating identity to Confluent resources from (see Registered Claim Names for more details). This appears in the audit log records, showing, for example, that "identity Z used identity pool X to access topic A".
- identity_
provider GetIdentity Pool Identity Provider (Required Configuration Block) supports the following:
- description String
(Required String) A description for the Identity Pool.
- display
Name String (Required String) A human-readable name for the Identity Pool.
- filter String
(Required String) A filter expression in Supported Common Expression Language (CEL) that specifies which identities can authenticate using your identity pool (see Set identity pool filters for more details).
- id String
(Required String) The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.- identity
Claim String (Required String) The JSON Web Token (JWT) claim to extract the authenticating identity to Confluent resources from (see Registered Claim Names for more details). This appears in the audit log records, showing, for example, that "identity Z used identity pool X to access topic A".
- identity
Provider Property Map (Required Configuration Block) supports the following:
Supporting Types
GetIdentityPoolIdentityProvider
- Id string
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- Id string
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id String
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id string
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id str
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id String
The ID of the Identity Provider associated with the Identity Pool, for example,
op-abc123
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
confluent
Terraform Provider.