@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
103 lines • 4.07 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Activity = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides a Step Function Activity resource
*
* ## Example Usage
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const sfnActivity = new aws.sfn.Activity("sfn_activity", {name: "my-activity"});
* ```
*
* ### Encryption
*
* > *NOTE:* See the section [Data at rest encyption](https://docs.aws.amazon.com/step-functions/latest/dg/encryption-at-rest.html) in the [AWS Step Functions Developer Guide](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html) for more information about enabling encryption of data using a customer-managed key for Step Functions State Machines data.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const sfnActivity = new aws.sfn.Activity("sfn_activity", {
* name: "my-activity",
* encryptionConfiguration: {
* kmsKeyId: kmsKeyForSfn.arn,
* type: "CUSTOMER_MANAGED_KMS_KEY",
* kmsDataKeyReusePeriodSeconds: 900,
* },
* });
* ```
*
* ## Import
*
* In Terraform v1.12.0 and later, the `import` block can be used with the `identity` attribute. For example:
*
* Using `pulumi import`, import activities using the `arn`. For example:
*
* ```sh
* $ pulumi import aws:sfn/activity:Activity example arn:aws:states:eu-west-1:123456789098:activity:bar
* ```
*/
class Activity extends pulumi.CustomResource {
/**
* Get an existing Activity resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new Activity(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Activity. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Activity.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["arn"] = state?.arn;
resourceInputs["creationDate"] = state?.creationDate;
resourceInputs["encryptionConfiguration"] = state?.encryptionConfiguration;
resourceInputs["name"] = state?.name;
resourceInputs["region"] = state?.region;
resourceInputs["tags"] = state?.tags;
resourceInputs["tagsAll"] = state?.tagsAll;
}
else {
const args = argsOrState;
resourceInputs["encryptionConfiguration"] = args?.encryptionConfiguration;
resourceInputs["name"] = args?.name;
resourceInputs["region"] = args?.region;
resourceInputs["tags"] = args?.tags;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["creationDate"] = undefined /*out*/;
resourceInputs["tagsAll"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Activity.__pulumiType, name, resourceInputs, opts);
}
}
exports.Activity = Activity;
/** @internal */
Activity.__pulumiType = 'aws:sfn/activity:Activity';
//# sourceMappingURL=activity.js.map