1. Packages
  2. StrongDM
  3. API Docs
  4. getIdentityAlias
StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg

sdm.getIdentityAlias

Explore with Pulumi AI

StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg

IdentityAliases define the username to be used for a specific account when connecting to a remote resource using that identity set.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as sdm from "@pulumi/sdm";

const user = sdm.getIdentityAlias({
    id: "i-0900909",
    username: "user",
});
Copy
import pulumi
import pulumi_sdm as sdm

user = sdm.get_identity_alias(id="i-0900909",
    username="user")
Copy
package main

import (
	"github.com/pierskarsenbarg/pulumi-sdm/sdk/go/sdm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sdm.LookupIdentityAlias(ctx, &sdm.LookupIdentityAliasArgs{
			Id:       pulumi.StringRef("i-0900909"),
			Username: pulumi.StringRef("user"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdm = Pulumi.Sdm;

return await Deployment.RunAsync(() => 
{
    var user = Sdm.GetIdentityAlias.Invoke(new()
    {
        Id = "i-0900909",
        Username = "user",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdm.SdmFunctions;
import com.pulumi.sdm.inputs.GetIdentityAliasArgs;
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 user = SdmFunctions.getIdentityAlias(GetIdentityAliasArgs.builder()
            .id("i-0900909")
            .username("user")
            .build());

    }
}
Copy
variables:
  user:
    fn::invoke:
      function: sdm:getIdentityAlias
      arguments:
        id: i-0900909
        username: user
Copy

Using getIdentityAlias

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 getIdentityAlias(args: GetIdentityAliasArgs, opts?: InvokeOptions): Promise<GetIdentityAliasResult>
function getIdentityAliasOutput(args: GetIdentityAliasOutputArgs, opts?: InvokeOptions): Output<GetIdentityAliasResult>
Copy
def get_identity_alias(account_id: Optional[str] = None,
                       id: Optional[str] = None,
                       identity_set_id: Optional[str] = None,
                       username: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetIdentityAliasResult
def get_identity_alias_output(account_id: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       identity_set_id: Optional[pulumi.Input[str]] = None,
                       username: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetIdentityAliasResult]
Copy
func LookupIdentityAlias(ctx *Context, args *LookupIdentityAliasArgs, opts ...InvokeOption) (*LookupIdentityAliasResult, error)
func LookupIdentityAliasOutput(ctx *Context, args *LookupIdentityAliasOutputArgs, opts ...InvokeOption) LookupIdentityAliasResultOutput
Copy

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

public static class GetIdentityAlias 
{
    public static Task<GetIdentityAliasResult> InvokeAsync(GetIdentityAliasArgs args, InvokeOptions? opts = null)
    public static Output<GetIdentityAliasResult> Invoke(GetIdentityAliasInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIdentityAliasResult> getIdentityAlias(GetIdentityAliasArgs args, InvokeOptions options)
public static Output<GetIdentityAliasResult> getIdentityAlias(GetIdentityAliasArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: sdm:index/getIdentityAlias:getIdentityAlias
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId string
The account for this identity alias.
Id string
Unique identifier of the IdentityAlias.
IdentitySetId string
The identity set.
Username string
The username to be used as the identity alias for this account.
AccountId string
The account for this identity alias.
Id string
Unique identifier of the IdentityAlias.
IdentitySetId string
The identity set.
Username string
The username to be used as the identity alias for this account.
accountId String
The account for this identity alias.
id String
Unique identifier of the IdentityAlias.
identitySetId String
The identity set.
username String
The username to be used as the identity alias for this account.
accountId string
The account for this identity alias.
id string
Unique identifier of the IdentityAlias.
identitySetId string
The identity set.
username string
The username to be used as the identity alias for this account.
account_id str
The account for this identity alias.
id str
Unique identifier of the IdentityAlias.
identity_set_id str
The identity set.
username str
The username to be used as the identity alias for this account.
accountId String
The account for this identity alias.
id String
Unique identifier of the IdentityAlias.
identitySetId String
The identity set.
username String
The username to be used as the identity alias for this account.

getIdentityAlias Result

The following output properties are available:

IdentityAliases List<PiersKarsenbarg.Sdm.Outputs.GetIdentityAliasIdentityAlias>
A list where each element has the following attributes:
Ids List<string>
a list of strings of ids of data sources that match the given arguments.
AccountId string
The account for this identity alias.
Id string
Unique identifier of the IdentityAlias.
IdentitySetId string
The identity set.
Username string
The username to be used as the identity alias for this account.
IdentityAliases []GetIdentityAliasIdentityAlias
A list where each element has the following attributes:
Ids []string
a list of strings of ids of data sources that match the given arguments.
AccountId string
The account for this identity alias.
Id string
Unique identifier of the IdentityAlias.
IdentitySetId string
The identity set.
Username string
The username to be used as the identity alias for this account.
identityAliases List<GetIdentityAliasIdentityAlias>
A list where each element has the following attributes:
ids List<String>
a list of strings of ids of data sources that match the given arguments.
accountId String
The account for this identity alias.
id String
Unique identifier of the IdentityAlias.
identitySetId String
The identity set.
username String
The username to be used as the identity alias for this account.
identityAliases GetIdentityAliasIdentityAlias[]
A list where each element has the following attributes:
ids string[]
a list of strings of ids of data sources that match the given arguments.
accountId string
The account for this identity alias.
id string
Unique identifier of the IdentityAlias.
identitySetId string
The identity set.
username string
The username to be used as the identity alias for this account.
identity_aliases Sequence[GetIdentityAliasIdentityAlias]
A list where each element has the following attributes:
ids Sequence[str]
a list of strings of ids of data sources that match the given arguments.
account_id str
The account for this identity alias.
id str
Unique identifier of the IdentityAlias.
identity_set_id str
The identity set.
username str
The username to be used as the identity alias for this account.
identityAliases List<Property Map>
A list where each element has the following attributes:
ids List<String>
a list of strings of ids of data sources that match the given arguments.
accountId String
The account for this identity alias.
id String
Unique identifier of the IdentityAlias.
identitySetId String
The identity set.
username String
The username to be used as the identity alias for this account.

Supporting Types

GetIdentityAliasIdentityAlias

AccountId string
The account for this identity alias.
Id string
Unique identifier of the IdentityAlias.
IdentitySetId string
The identity set.
Username string
The username to be used as the identity alias for this account.
AccountId string
The account for this identity alias.
Id string
Unique identifier of the IdentityAlias.
IdentitySetId string
The identity set.
Username string
The username to be used as the identity alias for this account.
accountId String
The account for this identity alias.
id String
Unique identifier of the IdentityAlias.
identitySetId String
The identity set.
username String
The username to be used as the identity alias for this account.
accountId string
The account for this identity alias.
id string
Unique identifier of the IdentityAlias.
identitySetId string
The identity set.
username string
The username to be used as the identity alias for this account.
account_id str
The account for this identity alias.
id str
Unique identifier of the IdentityAlias.
identity_set_id str
The identity set.
username str
The username to be used as the identity alias for this account.
accountId String
The account for this identity alias.
id String
Unique identifier of the IdentityAlias.
identitySetId String
The identity set.
username String
The username to be used as the identity alias for this account.

Package Details

Repository
sdm pierskarsenbarg/pulumi-sdm
License
Apache-2.0
Notes
This Pulumi package is based on the sdm Terraform Provider.
StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg