GetActivity

Provides a Step Functions Activity data source

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var sfnActivity = Output.Create(Aws.Sfn.GetActivity.InvokeAsync(new Aws.Sfn.GetActivityArgs
        {
            Name = "my-activity",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/sfn"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "my-activity"
        _, err := sfn.LookupActivity(ctx, &sfn.LookupActivityArgs{
            Name: &opt0,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

sfn_activity = aws.sfn.get_activity(name="my-activity")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const sfnActivity = pulumi.output(aws.sfn.getActivity({
    name: "my-activity",
}, { async: true }));

Using GetActivity

function getActivity(args: GetActivityArgs, opts?: InvokeOptions): Promise<GetActivityResult>
function  get_activity(arn=None, name=None, opts=None)
func LookupActivity(ctx *Context, args *LookupActivityArgs, opts ...InvokeOption) (*LookupActivityResult, error)

Note: This function is named LookupActivity in the Go SDK.

public static class GetActivity {
    public static Task<GetActivityResult> InvokeAsync(GetActivityArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Arn string

The Amazon Resource Name (ARN) that identifies the activity.

Name string

The name that identifies the activity.

Arn string

The Amazon Resource Name (ARN) that identifies the activity.

Name string

The name that identifies the activity.

arn string

The Amazon Resource Name (ARN) that identifies the activity.

name string

The name that identifies the activity.

arn str

The Amazon Resource Name (ARN) that identifies the activity.

name str

The name that identifies the activity.

GetActivity Result

The following output properties are available:

Arn string
CreationDate string

The date the activity was created.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Arn string
CreationDate string

The date the activity was created.

Id string

The provider-assigned unique ID for this managed resource.

Name string
arn string
creationDate string

The date the activity was created.

id string

The provider-assigned unique ID for this managed resource.

name string
arn str
creation_date str

The date the activity was created.

id str

The provider-assigned unique ID for this managed resource.

name str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.