AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.6.0 published on Friday, May 27, 2022 by Pulumi

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/v5/go/aws/sfn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sfn.LookupActivity(ctx, &sfn.LookupActivityArgs{
			Name: pulumi.StringRef("my-activity"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var sfnActivity = Output.of(SfnFunctions.getActivity(GetActivityArgs.builder()
            .name("my-activity")
            .build()));

    }
}
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",
}));
variables:
  sfnActivity:
    Fn::Invoke:
      Function: aws:sfn:getActivity
      Arguments:
        name: my-activity

Using getActivity

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 getActivity(args: GetActivityArgs, opts?: InvokeOptions): Promise<GetActivityResult>
function getActivityOutput(args: GetActivityOutputArgs, opts?: InvokeOptions): Output<GetActivityResult>
def get_activity(arn: Optional[str] = None,
                 name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetActivityResult
def get_activity_output(arn: Optional[pulumi.Input[str]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetActivityResult]
func LookupActivity(ctx *Context, args *LookupActivityArgs, opts ...InvokeOption) (*LookupActivityResult, error)
func LookupActivityOutput(ctx *Context, args *LookupActivityOutputArgs, opts ...InvokeOption) LookupActivityResultOutput

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

public static class GetActivity 
{
    public static Task<GetActivityResult> InvokeAsync(GetActivityArgs args, InvokeOptions? opts = null)
    public static Output<GetActivityResult> Invoke(GetActivityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetActivityResult> getActivity(GetActivityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:sfn/getActivity:getActivity
  Arguments:
    # Arguments dictionary

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 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.

arn String

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

name String

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 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
arn String
creationDate String

The date the activity was created.

id String

The provider-assigned unique ID for this managed resource.

name String

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.