StrongDM v1.32.0 published on Monday, Oct 13, 2025 by Piers Karsenbarg
sdm.getIdentityAlias
StrongDM v1.32.0 published on Monday, Oct 13, 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 "@pierskarsenbarg/sdm";
const user = sdm.getIdentityAlias({
id: "i-0900909",
username: "user",
});
import pulumi
import pulumi_sdm as sdm
user = sdm.get_identity_alias(id="i-0900909",
username="user")
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
})
}
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",
});
});
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());
}
}
variables:
user:
fn::invoke:
function: sdm:getIdentityAlias
arguments:
id: i-0900909
username: user
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>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]func LookupIdentityAlias(ctx *Context, args *LookupIdentityAliasArgs, opts ...InvokeOption) (*LookupIdentityAliasResult, error)
func LookupIdentityAliasOutput(ctx *Context, args *LookupIdentityAliasOutputArgs, opts ...InvokeOption) LookupIdentityAliasResultOutput> 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)
}public static CompletableFuture<GetIdentityAliasResult> getIdentityAlias(GetIdentityAliasArgs args, InvokeOptions options)
public static Output<GetIdentityAliasResult> getIdentityAlias(GetIdentityAliasArgs args, InvokeOptions options)
fn::invoke:
function: sdm:index/getIdentityAlias:getIdentityAlias
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - The account for this identity alias.
- Id string
- Unique identifier of the IdentityAlias.
- Identity
Set stringId - The identity set.
- Username string
- The username to be used as the identity alias for this account.
- Account
Id string - The account for this identity alias.
- Id string
- Unique identifier of the IdentityAlias.
- Identity
Set stringId - The identity set.
- Username string
- The username to be used as the identity alias for this account.
- account
Id String - The account for this identity alias.
- id String
- Unique identifier of the IdentityAlias.
- identity
Set StringId - The identity set.
- username String
- The username to be used as the identity alias for this account.
- account
Id string - The account for this identity alias.
- id string
- Unique identifier of the IdentityAlias.
- identity
Set stringId - 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_ strid - The identity set.
- username str
- The username to be used as the identity alias for this account.
- account
Id String - The account for this identity alias.
- id String
- Unique identifier of the IdentityAlias.
- identity
Set StringId - 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:
- Identity
Aliases List<PiersKarsenbarg. Sdm. Outputs. Get Identity Alias Identity Alias> - 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.
- Account
Id string - The account for this identity alias.
- Id string
- Unique identifier of the IdentityAlias.
- Identity
Set stringId - The identity set.
- Username string
- The username to be used as the identity alias for this account.
- Identity
Aliases []GetIdentity Alias Identity Alias - 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.
- Account
Id string - The account for this identity alias.
- Id string
- Unique identifier of the IdentityAlias.
- Identity
Set stringId - The identity set.
- Username string
- The username to be used as the identity alias for this account.
- identity
Aliases List<GetIdentity Alias Identity Alias> - 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.
- account
Id String - The account for this identity alias.
- id String
- Unique identifier of the IdentityAlias.
- identity
Set StringId - The identity set.
- username String
- The username to be used as the identity alias for this account.
- identity
Aliases GetIdentity Alias Identity Alias[] - 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.
- account
Id string - The account for this identity alias.
- id string
- Unique identifier of the IdentityAlias.
- identity
Set stringId - The identity set.
- username string
- The username to be used as the identity alias for this account.
- identity_
aliases Sequence[GetIdentity Alias Identity Alias] - 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_ strid - The identity set.
- username str
- The username to be used as the identity alias for this account.
- identity
Aliases 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.
- account
Id String - The account for this identity alias.
- id String
- Unique identifier of the IdentityAlias.
- identity
Set StringId - The identity set.
- username String
- The username to be used as the identity alias for this account.
Supporting Types
GetIdentityAliasIdentityAlias
- Account
Id string - The account for this identity alias.
- Id string
- Unique identifier of the IdentityAlias.
- Identity
Set stringId - The identity set.
- Username string
- The username to be used as the identity alias for this account.
- Account
Id string - The account for this identity alias.
- Id string
- Unique identifier of the IdentityAlias.
- Identity
Set stringId - The identity set.
- Username string
- The username to be used as the identity alias for this account.
- account
Id String - The account for this identity alias.
- id String
- Unique identifier of the IdentityAlias.
- identity
Set StringId - The identity set.
- username String
- The username to be used as the identity alias for this account.
- account
Id string - The account for this identity alias.
- id string
- Unique identifier of the IdentityAlias.
- identity
Set stringId - 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_ strid - The identity set.
- username str
- The username to be used as the identity alias for this account.
- account
Id String - The account for this identity alias.
- id String
- Unique identifier of the IdentityAlias.
- identity
Set StringId - 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
sdmTerraform Provider.
StrongDM v1.32.0 published on Monday, Oct 13, 2025 by Piers Karsenbarg
