Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Use this data source to get ARNs and Identity Store IDs of Single Sign-On (SSO) Instances.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ssoadmin.getInstances({});
export const arn = example.then(example => example.arns?.[0]);
export const identityStoreId = example.then(example => example.identityStoreIds?.[0]);
import pulumi
import pulumi_aws as aws
example = aws.ssoadmin.get_instances()
pulumi.export("arn", example.arns[0])
pulumi.export("identityStoreId", example.identity_store_ids[0])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ssoadmin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := ssoadmin.GetInstances(ctx, &ssoadmin.GetInstancesArgs{}, nil)
if err != nil {
return err
}
ctx.Export("arn", example.Arns[0])
ctx.Export("identityStoreId", example.IdentityStoreIds[0])
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.SsoAdmin.GetInstances.Invoke();
return new Dictionary<string, object?>
{
["arn"] = example.Apply(getInstancesResult => getInstancesResult.Arns[0]),
["identityStoreId"] = example.Apply(getInstancesResult => getInstancesResult.IdentityStoreIds[0]),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssoadmin.SsoadminFunctions;
import com.pulumi.aws.ssoadmin.inputs.GetInstancesArgs;
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 = SsoadminFunctions.getInstances(GetInstancesArgs.builder()
.build());
ctx.export("arn", example.arns()[0]);
ctx.export("identityStoreId", example.identityStoreIds()[0]);
}
}
variables:
example:
fn::invoke:
function: aws:ssoadmin:getInstances
arguments: {}
outputs:
arn: ${example.arns[0]}
identityStoreId: ${example.identityStoreIds[0]}
Using getInstances
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 getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>
function getInstancesOutput(args: GetInstancesOutputArgs, opts?: InvokeOptions): Output<GetInstancesResult>def get_instances(region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstancesResult
def get_instances_output(region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstancesResult]func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)
func GetInstancesOutput(ctx *Context, args *GetInstancesOutputArgs, opts ...InvokeOption) GetInstancesResultOutput> Note: This function is named GetInstances in the Go SDK.
public static class GetInstances
{
public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetInstancesResult> Invoke(GetInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
public static Output<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
fn::invoke:
function: aws:ssoadmin/getInstances:getInstances
arguments:
# arguments dictionaryThe following arguments are supported:
getInstances Result
The following output properties are available:
- Arns List<string>
- Set of Amazon Resource Names (ARNs) of the SSO Instances.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Store List<string>Ids - Set of identifiers of the identity stores connected to the SSO Instances.
- Region string
- Arns []string
- Set of Amazon Resource Names (ARNs) of the SSO Instances.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Store []stringIds - Set of identifiers of the identity stores connected to the SSO Instances.
- Region string
- arns List<String>
- Set of Amazon Resource Names (ARNs) of the SSO Instances.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Store List<String>Ids - Set of identifiers of the identity stores connected to the SSO Instances.
- region String
- arns string[]
- Set of Amazon Resource Names (ARNs) of the SSO Instances.
- id string
- The provider-assigned unique ID for this managed resource.
- identity
Store string[]Ids - Set of identifiers of the identity stores connected to the SSO Instances.
- region string
- arns Sequence[str]
- Set of Amazon Resource Names (ARNs) of the SSO Instances.
- id str
- The provider-assigned unique ID for this managed resource.
- identity_
store_ Sequence[str]ids - Set of identifiers of the identity stores connected to the SSO Instances.
- region str
- arns List<String>
- Set of Amazon Resource Names (ARNs) of the SSO Instances.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Store List<String>Ids - Set of identifiers of the identity stores connected to the SSO Instances.
- region String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
