AWS v7.10.0 published on Friday, Oct 24, 2025 by Pulumi
aws.sfn.getAlias
Data source for managing an AWS SFN (Step Functions) State Machine Alias.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.sfn.getAlias({
name: "my_sfn_alias",
statemachineArn: sfnTest.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.sfn.get_alias(name="my_sfn_alias",
statemachine_arn=sfn_test["arn"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sfn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sfn.LookupAlias(ctx, &sfn.LookupAliasArgs{
Name: "my_sfn_alias",
StatemachineArn: sfnTest.Arn,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Sfn.GetAlias.Invoke(new()
{
Name = "my_sfn_alias",
StatemachineArn = sfnTest.Arn,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sfn.SfnFunctions;
import com.pulumi.aws.sfn.inputs.GetAliasArgs;
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 = SfnFunctions.getAlias(GetAliasArgs.builder()
.name("my_sfn_alias")
.statemachineArn(sfnTest.arn())
.build());
}
}
variables:
example:
fn::invoke:
function: aws:sfn:getAlias
arguments:
name: my_sfn_alias
statemachineArn: ${sfnTest.arn}
Using getAlias
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 getAlias(args: GetAliasArgs, opts?: InvokeOptions): Promise<GetAliasResult>
function getAliasOutput(args: GetAliasOutputArgs, opts?: InvokeOptions): Output<GetAliasResult>def get_alias(description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
statemachine_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAliasResult
def get_alias_output(description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
statemachine_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAliasResult]func LookupAlias(ctx *Context, args *LookupAliasArgs, opts ...InvokeOption) (*LookupAliasResult, error)
func LookupAliasOutput(ctx *Context, args *LookupAliasOutputArgs, opts ...InvokeOption) LookupAliasResultOutput> Note: This function is named LookupAlias in the Go SDK.
public static class GetAlias
{
public static Task<GetAliasResult> InvokeAsync(GetAliasArgs args, InvokeOptions? opts = null)
public static Output<GetAliasResult> Invoke(GetAliasInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAliasResult> getAlias(GetAliasArgs args, InvokeOptions options)
public static Output<GetAliasResult> getAlias(GetAliasArgs args, InvokeOptions options)
fn::invoke:
function: aws:sfn/getAlias:getAlias
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Name of the State Machine alias.
- Statemachine
Arn string - ARN of the State Machine.
- Description string
- Description of state machine alias.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Name string
- Name of the State Machine alias.
- Statemachine
Arn string - ARN of the State Machine.
- Description string
- Description of state machine alias.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- name String
- Name of the State Machine alias.
- statemachine
Arn String - ARN of the State Machine.
- description String
- Description of state machine alias.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- name string
- Name of the State Machine alias.
- statemachine
Arn string - ARN of the State Machine.
- description string
- Description of state machine alias.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- name str
- Name of the State Machine alias.
- statemachine_
arn str - ARN of the State Machine.
- description str
- Description of state machine alias.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- name String
- Name of the State Machine alias.
- statemachine
Arn String - ARN of the State Machine.
- description String
- Description of state machine alias.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getAlias Result
The following output properties are available:
- Arn string
- ARN identifying the State Machine alias.
- Creation
Date string - Date the state machine Alias was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Region string
- Routing
Configurations List<GetAlias Routing Configuration> - Routing Configuration of state machine alias
- Statemachine
Arn string - Description string
- Description of state machine alias.
- Arn string
- ARN identifying the State Machine alias.
- Creation
Date string - Date the state machine Alias was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Region string
- Routing
Configurations []GetAlias Routing Configuration - Routing Configuration of state machine alias
- Statemachine
Arn string - Description string
- Description of state machine alias.
- arn String
- ARN identifying the State Machine alias.
- creation
Date String - Date the state machine Alias was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- region String
- routing
Configurations List<GetAlias Routing Configuration> - Routing Configuration of state machine alias
- statemachine
Arn String - description String
- Description of state machine alias.
- arn string
- ARN identifying the State Machine alias.
- creation
Date string - Date the state machine Alias was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- region string
- routing
Configurations GetAlias Routing Configuration[] - Routing Configuration of state machine alias
- statemachine
Arn string - description string
- Description of state machine alias.
- arn str
- ARN identifying the State Machine alias.
- creation_
date str - Date the state machine Alias was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- region str
- routing_
configurations Sequence[GetAlias Routing Configuration] - Routing Configuration of state machine alias
- statemachine_
arn str - description str
- Description of state machine alias.
- arn String
- ARN identifying the State Machine alias.
- creation
Date String - Date the state machine Alias was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- region String
- routing
Configurations List<Property Map> - Routing Configuration of state machine alias
- statemachine
Arn String - description String
- Description of state machine alias.
Supporting Types
GetAliasRoutingConfiguration
- State
Machine stringVersion Arn - Weight int
- State
Machine stringVersion Arn - Weight int
- state
Machine StringVersion Arn - weight Integer
- state
Machine stringVersion Arn - weight number
- state_
machine_ strversion_ arn - weight int
- state
Machine StringVersion Arn - weight Number
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
