Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IStateMachine to include grantStartExecution #6173

Closed
1 of 2 tasks
BenChaimberg opened this issue Feb 7, 2020 · 0 comments · Fixed by #6174
Closed
1 of 2 tasks

Update IStateMachine to include grantStartExecution #6173

BenChaimberg opened this issue Feb 7, 2020 · 0 comments · Fixed by #6174
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@BenChaimberg
Copy link
Contributor

BenChaimberg commented Feb 7, 2020

Update IStateMachine to include grantStartExecution.

Use Case

This will allow state machine constructs created from an imported ARN to grant permissions just like a state machine construct created through the constructor can. This is obviously much nicer than creating the PolicyDocument with the appropriate permissions manually.

Proposed Solution

Add the grantStartExecution method signature to the IStateMachine interface.

export interface IStateMachine extends IResource {
  // ...

  /**
   * Grant the given identity permissions to start an execution of this state
   * machine.
   *
   * @param identity The principal
   */
  grantStartExecution(identity: iam.IGrantable): iam.Grant;
}

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

@BenChaimberg BenChaimberg added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Feb 7, 2020
@mergify mergify bot closed this as completed in #6174 Feb 10, 2020
mergify bot pushed a commit that referenced this issue Feb 10, 2020
…teMachine

Add `grantStartExecution` signature to `IStateMachine` interface so imported StateMachines also have the method.

Closes #6173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant