AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.sfn.getActivity
Explore with Pulumi AI
Provides a Step Functions Activity data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const sfnActivity = aws.sfn.getActivity({
name: "my-activity",
});
import pulumi
import pulumi_aws as aws
sfn_activity = aws.sfn.get_activity(name="my-activity")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var sfnActivity = Aws.Sfn.GetActivity.Invoke(new()
{
Name = "my-activity",
});
});
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());
}
}
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:
getActivity Result
The following output properties are available:
- Arn string
- Creation
Date string - Date the activity was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Arn string
- Creation
Date string - Date the activity was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- arn String
- creation
Date String - Date the activity was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- arn string
- creation
Date 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
- creation
Date String - Date the activity was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.