Skip to content

Commit

Permalink
Add code snippet for MediaConvert Create Job Task State
Browse files Browse the repository at this point in the history
  • Loading branch information
PavanRangudu committed Jul 11, 2024
1 parent 26238e1 commit 7670e5c
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 15 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"url": "https://github.com/aws/amazon-states-language-service"
},
"license": "MIT",
"version": "1.11.0",
"version": "1.12.0",
"publisher": "aws",
"categories": [
"Programming Languages"
Expand Down
2 changes: 2 additions & 0 deletions src/json-schema/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@
"arn:aws:states:::glue:startJobRun.sync",
"arn:aws:states:::lambda:invoke",
"arn:aws:states:::lambda:invoke.waitForTaskToken",
"arn:aws:states:::mediaconvert:createJob",
"arn:aws:states:::mediaconvert:createJob.sync",
"arn:aws:states:::sagemaker:createEndpoint",
"arn:aws:states:::sagemaker:createEndpointConfig",
"arn:aws:states:::sagemaker:createHyperParameterTuningJob",
Expand Down
2 changes: 2 additions & 0 deletions src/json-schema/partial/task_state.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
"arn:aws:states:::glue:startJobRun.sync",
"arn:aws:states:::lambda:invoke",
"arn:aws:states:::lambda:invoke.waitForTaskToken",
"arn:aws:states:::mediaconvert:createJob",
"arn:aws:states:::mediaconvert:createJob.sync",
"arn:aws:states:::sagemaker:createEndpoint",
"arn:aws:states:::sagemaker:createEndpointConfig",
"arn:aws:states:::sagemaker:createHyperParameterTuningJob",
Expand Down
18 changes: 18 additions & 0 deletions src/snippets/states.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,24 @@
],
"description": "Code snippet for an EventBridge Task state.\n\nCalls the Amazon EventBridge PutEvents API to send a custom event to an event bus."
},
{
"name": "MediaConvert Task State",
"body": [
"\"${1:Create a MediaConvert Transcoding Job}\": {",
"\t\"Type\": \"Task\",",
"\t\"Resource\": \"arn:aws:states:::mediaconvert:createJob\",",
"\t\"Parameters\": {",
"\t\t\"Role\": \"${3:arn:aws:iam::ACCOUNT_ID:role/MyServiceRole}\",",
"\t\t\"Settings\": {",
"\t\t\t\"Inputs\": [],",
"\t\t\t\"OutputGroups\": []",
"\t\t}",
"\t},",
"\t\"Next\": \"${2:NextState}\"",
"}"
],
"description": "Code snippet for an MediaConvert Create Job Task state.\n\nCalls the AWS MediaConvert CreateJob API to create a Transcoding Job."
},
{
"name": "SNS Task State",
"body": [
Expand Down
1 change: 1 addition & 0 deletions src/tests/yamlCompletion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ const stateSnippetLabels = [
'Pass State',
'Lambda Task State',
'EventBridge Task State',
'MediaConvert Task State',
'SNS Task State',
'Batch Task State',
'ECS Task State',
Expand Down

0 comments on commit 7670e5c

Please sign in to comment.