Interface Credentials
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
Credentials.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:13:06.369Z")
@Stability(Stable)
public interface Credentials
extends software.amazon.jsii.JsiiSerializable
Specifies a target role assumed by the State Machine's execution role for invoking the task's resource.
Example:
import software.amazon.awscdk.services.lambda.*; Function submitLambda; Role iamRole; // use a fixed role for all task invocations TaskRole role = TaskRole.fromRole(iamRole); // or use a json expression to resolve the role at runtime based on task inputs //const role = sfn.TaskRole.fromRoleArnJsonPath('$.RoleArn'); LambdaInvoke submitJob = LambdaInvoke.Builder.create(this, "Submit Job") .lambdaFunction(submitLambda) .outputPath("$.Payload") // use credentials .credentials(Credentials.builder().role(role).build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCredentials
static final class
An implementation forCredentials
-
Method Summary
Modifier and TypeMethodDescriptionstatic Credentials.Builder
builder()
getRole()
The role to be assumed for executing the Task.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRole
The role to be assumed for executing the Task. -
builder
- Returns:
- a
Credentials.Builder
ofCredentials
-