AWS Classic

v5.16.0 published on Saturday, Sep 24, 2022 by Pulumi

getActivity

Provides a Step Functions Activity data source

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var sfnActivity = Aws.Sfn.GetActivity.Invoke(new()
    {
        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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sfn.SfnFunctions;
import com.pulumi.aws.sfn.inputs.GetActivityArgs;
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 sfnActivity = 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

ARN that identifies the activity.

Name string

Name that identifies the activity.

Arn string

ARN that identifies the activity.

Name string

Name that identifies the activity.

arn String

ARN that identifies the activity.

name String

Name that identifies the activity.

arn string

ARN that identifies the activity.

name string

Name that identifies the activity.

arn str

ARN that identifies the activity.

name str

Name that identifies the activity.

arn String

ARN that identifies the activity.

name String

Name that identifies the activity.

getActivity Result

The following output properties are available:

Arn string
CreationDate string

Date the activity was created.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Arn string
CreationDate string

Date the activity was created.

Id string

The provider-assigned unique ID for this managed resource.

Name string
arn String
creationDate String

Date the activity was created.

id String

The provider-assigned unique ID for this managed resource.

name String
arn string
creationDate string

Date the activity was created.

id string

The provider-assigned unique ID for this managed resource.

name string
arn str
creation_date str

Date the activity was created.

id str

The provider-assigned unique ID for this managed resource.

name str
arn String
creationDate String

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.