@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.370Z") @Stability(value=Stable) public class Activity extends Resource implements IActivity
Example:
Activity activity = new Activity(this, "Activity");
Role role = Role.Builder.create(this, "Role")
.assumedBy(new ServicePrincipal("lambda.amazonaws.com"))
.build();
activity.grant(role, "states:SendTaskSuccess");
| Modifier and Type | Class and Description |
|---|---|
static class |
Activity.Builder
A fluent builder for
Activity. |
software.amazon.jsii.JsiiObject.InitializationModeIActivity.Jsii$Default, IActivity.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Activity(software.constructs.Construct scope,
String id) |
|
Activity(software.constructs.Construct scope,
String id,
ActivityProps props) |
protected |
Activity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Activity(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IActivity |
fromActivityArn(software.constructs.Construct scope,
String id,
String activityArn)
Construct an Activity from an existing Activity ARN.
|
static IActivity |
fromActivityName(software.constructs.Construct scope,
String id,
String activityName)
Construct an Activity from an existing Activity Name.
|
String |
getActivityArn()
The ARN of the activity.
|
String |
getActivityName()
The name of the activity.
|
Grant |
grant(IGrantable identity,
String... actions)
Grant the given identity permissions on this Activity.
|
Metric |
metric(String metricName)
Return the given named metric for this Activity.
|
Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this Activity.
|
Metric |
metricFailed()
Metric for the number of times this activity fails.
|
Metric |
metricFailed(MetricOptions props)
Metric for the number of times this activity fails.
|
Metric |
metricHeartbeatTimedOut()
Metric for the number of times the heartbeat times out for this activity.
|
Metric |
metricHeartbeatTimedOut(MetricOptions props)
Metric for the number of times the heartbeat times out for this activity.
|
Metric |
metricRunTime()
The interval, in milliseconds, between the time the activity starts and the time it closes.
|
Metric |
metricRunTime(MetricOptions props)
The interval, in milliseconds, between the time the activity starts and the time it closes.
|
Metric |
metricScheduled()
Metric for the number of times this activity is scheduled.
|
Metric |
metricScheduled(MetricOptions props)
Metric for the number of times this activity is scheduled.
|
Metric |
metricScheduleTime()
The interval, in milliseconds, for which the activity stays in the schedule state.
|
Metric |
metricScheduleTime(MetricOptions props)
The interval, in milliseconds, for which the activity stays in the schedule state.
|
Metric |
metricStarted()
Metric for the number of times this activity is started.
|
Metric |
metricStarted(MetricOptions props)
Metric for the number of times this activity is started.
|
Metric |
metricSucceeded()
Metric for the number of times this activity succeeds.
|
Metric |
metricSucceeded(MetricOptions props)
Metric for the number of times this activity succeeds.
|
Metric |
metricTime()
The interval, in milliseconds, between the time the activity is scheduled and the time it closes.
|
Metric |
metricTime(MetricOptions props)
The interval, in milliseconds, between the time the activity is scheduled and the time it closes.
|
Metric |
metricTimedOut()
Metric for the number of times this activity times out.
|
Metric |
metricTimedOut(MetricOptions props)
Metric for the number of times this activity times out.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected Activity(software.amazon.jsii.JsiiObjectRef objRef)
protected Activity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Activity(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ActivityProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public Activity(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static IActivity fromActivityArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String activityArn)
scope - This parameter is required.id - This parameter is required.activityArn - This parameter is required.@Stability(value=Stable) @NotNull public static IActivity fromActivityName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String activityName)
scope - This parameter is required.id - This parameter is required.activityName - This parameter is required.@Stability(value=Stable) @NotNull public Grant grant(@NotNull IGrantable identity, @NotNull String... actions)
identity - The principal. This parameter is required.actions - The list of desired actions. This parameter is required.@Stability(value=Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
Default: sum over 5 minutes
metricName - This parameter is required.props - @Stability(value=Stable) @NotNull public Metric metric(@NotNull String metricName)
Default: sum over 5 minutes
metricName - This parameter is required.@Stability(value=Stable) @NotNull public Metric metricFailed(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricFailed()
Default: sum over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricHeartbeatTimedOut(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricHeartbeatTimedOut()
Default: sum over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricRunTime(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricRunTime()
Default: average over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricScheduled(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricScheduled()
Default: sum over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricScheduleTime(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricScheduleTime()
Default: average over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricStarted(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricStarted()
Default: sum over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricSucceeded(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricSucceeded()
Default: sum over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricTime(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricTime()
Default: average over 5 minutes
@Stability(value=Stable) @NotNull public Metric metricTimedOut(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Stable) @NotNull public Metric metricTimedOut()
Default: sum over 5 minutes
@Stability(value=Stable) @NotNull public String getActivityArn()
getActivityArn in interface IActivity@Stability(value=Stable) @NotNull public String getActivityName()
getActivityName in interface IActivityCopyright © 2022. All rights reserved.