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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for Credentials
    static final class 
    An implementation for Credentials
  • Method Summary

    Modifier and Type
    Method
    Description
     
    The role to be assumed for executing the Task.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson