@cdklabs/cdk-ssm-documents 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +188 -23
- package/API.md +720 -0
- package/README.md +4 -1
- package/changelog.md +2 -2
- package/lib/construct/synth-utils.js +1 -1
- package/lib/document/automation-document.js +1 -1
- package/lib/document/command-document.js +1 -1
- package/lib/document/document-builder.js +2 -2
- package/lib/document/ssm-document.js +1 -1
- package/lib/domain/choice.js +1 -1
- package/lib/domain/data-type.js +1 -1
- package/lib/domain/enum/install-action.js +2 -2
- package/lib/domain/enum/install-uninstall-repair.js +2 -2
- package/lib/domain/enum/installation-type.js +2 -2
- package/lib/domain/enum/package-name.js +2 -2
- package/lib/domain/input.js +1 -1
- package/lib/domain/operation.js +1 -1
- package/lib/domain/platform.js +1 -1
- package/lib/domain/precondition.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/interface/approve-hook.js +2 -2
- package/lib/interface/auth-method.js +3 -3
- package/lib/interface/aws-invoker.js +2 -2
- package/lib/interface/downloadable-content.js +8 -8
- package/lib/interface/environment.js +3 -3
- package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
- package/lib/interface/observer.js +1 -1
- package/lib/interface/on-failure.js +6 -6
- package/lib/interface/pause-hook.js +2 -2
- package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
- package/lib/interface/run-document-location.js +2 -2
- package/lib/interface/sleep-hook.js +2 -2
- package/lib/interface/step-ref.d.ts +21 -0
- package/lib/interface/step-ref.js +40 -0
- package/lib/interface/variables/boolean-variable.js +2 -2
- package/lib/interface/variables/map-list-variable.js +2 -2
- package/lib/interface/variables/number-variable.js +2 -2
- package/lib/interface/variables/secure-string-variable.js +4 -4
- package/lib/interface/variables/string-list-variable.js +2 -2
- package/lib/interface/variables/string-map-variable.js +2 -2
- package/lib/interface/variables/string-variable.js +4 -4
- package/lib/interface/variables/variable.js +2 -2
- package/lib/interface/webhook.js +1 -1
- package/lib/parent-steps/automation/approve-step.js +1 -1
- package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
- package/lib/parent-steps/automation/aws-api-step.js +1 -1
- package/lib/parent-steps/automation/branch-step.js +1 -1
- package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
- package/lib/parent-steps/automation/copy-image-step.js +1 -1
- package/lib/parent-steps/automation/create-image-step.js +1 -1
- package/lib/parent-steps/automation/create-stack-step.js +3 -3
- package/lib/parent-steps/automation/create-tags-step.js +3 -3
- package/lib/parent-steps/automation/delete-image-step.js +1 -1
- package/lib/parent-steps/automation/delete-stack-step.js +1 -1
- package/lib/parent-steps/automation/execute-automation-step.js +1 -1
- package/lib/parent-steps/automation/execute-script-step.js +1 -1
- package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
- package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
- package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
- package/lib/parent-steps/automation/pause-step.js +1 -1
- package/lib/parent-steps/automation/run-command-step.js +3 -3
- package/lib/parent-steps/automation/run-instance-step.js +1 -1
- package/lib/parent-steps/automation/sleep-step.js +1 -1
- package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
- package/lib/parent-steps/automation-step.d.ts +27 -19
- package/lib/parent-steps/automation-step.js +9 -5
- package/lib/parent-steps/command/applications-step.js +1 -1
- package/lib/parent-steps/command/configure-docker-step.js +1 -1
- package/lib/parent-steps/command/configure-package-step.js +1 -1
- package/lib/parent-steps/command/domain-join-step.js +1 -1
- package/lib/parent-steps/command/download-content-step.js +1 -1
- package/lib/parent-steps/command/ps-module-step.js +1 -1
- package/lib/parent-steps/command/run-docker-action-step.js +1 -1
- package/lib/parent-steps/command/run-document-step.js +1 -1
- package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
- package/lib/parent-steps/command/run-shell-script-step.js +1 -1
- package/lib/parent-steps/command/software-inventory-step.js +1 -1
- package/lib/parent-steps/command/update-agent-step.js +1 -1
- package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
- package/lib/parent-steps/command-step.js +1 -1
- package/lib/parent-steps/step.js +1 -1
- package/lib/patterns/automation/composite-step.js +2 -2
- package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
- package/lib/patterns/automation/string-step.js +1 -1
- package/lib/patterns/document/string-document.js +1 -1
- package/lib/patterns/document/timed-document.js +1 -1
- package/lib/samples/hello-world.js +1 -1
- package/lib/simulation/automation/approve-simulation.js +1 -1
- package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
- package/lib/simulation/automation/automation-simulation-base.js +1 -1
- package/lib/simulation/automation/aws-api-simulation.js +1 -1
- package/lib/simulation/automation/branch-simulation.js +1 -1
- package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
- package/lib/simulation/automation/copy-image-simulation.js +1 -1
- package/lib/simulation/automation/create-image-simulation.js +1 -1
- package/lib/simulation/automation/create-stack-simulation.js +1 -1
- package/lib/simulation/automation/create-tags-simulation.js +1 -1
- package/lib/simulation/automation/delete-image-simulation.js +1 -1
- package/lib/simulation/automation/delete-stack-simulation.js +1 -1
- package/lib/simulation/automation/execute-script-simulation.js +1 -1
- package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
- package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
- package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
- package/lib/simulation/automation/pause-simulation.js +1 -1
- package/lib/simulation/automation/run-command-simulation.js +1 -1
- package/lib/simulation/automation/run-instance-simulation.js +1 -1
- package/lib/simulation/automation/sleep-simulation.js +1 -1
- package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
- package/lib/simulation/automation-step-simulation.js +1 -1
- package/lib/simulation/command/command-simulation-base.js +1 -1
- package/lib/simulation/command/ps-module-simulation.js +1 -1
- package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
- package/lib/simulation/command/run-shell-script-simulation.js +1 -1
- package/lib/simulation/command-step-simulation.js +1 -1
- package/lib/simulation/document/automation-simulation.js +3 -3
- package/lib/simulation/document/command-simulation.js +1 -1
- package/lib/simulation/simulation.js +1 -1
- package/package.json +1 -1
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
package/.jsii
CHANGED
|
@@ -2798,7 +2798,7 @@
|
|
|
2798
2798
|
},
|
|
2799
2799
|
"name": "@cdklabs/cdk-ssm-documents",
|
|
2800
2800
|
"readme": {
|
|
2801
|
-
"markdown": "# SSM Document CDK\nThis library provides a code-based utility for implementing SSM Documents. The SSM Document objects can be used to print YAML/JSON documents and to mimic document processing locally.\n\nThis library abstracts SSM Documents at a high level, with each step as well as the document itself being objects. The properties needed to build these objects correlate to the settings that apply to them, making them simple to make.\nThis library can be used to test your document locally before deploying it to SSM.\n\nSince the library is written in JSII, it can be exported to other languages that support JSII (Java, Python).\n\nThis is what you'd use if you wanted to:\n1. The ability to test without deploying resources or executing an actual SSM on AWS.\n2. Reusability of steps between documents by reusing existing items\n3. Create logical higher-level groupings of reusable groups of steps (\"Patterns\")\n4. Simple to use interface for writing documents\n5. Import existing documents from a file (or string) and mimic them locally to test them.\n\n## Usage\n\n### Document Creation\n\nTypescript usage (Execute AWS API Step)...\nThe below creates the AutomationDocument in an AWS CDK stack.\n```ts\nimport { AutomationDocument } from './automation-document';\n\nexport class HelloWorld extends Stack {\n constructor(app: Construct, id: string) {\n super(app, id);\n\n // Create AutomationDocument\n const myDoc = new AutomationDocument(this, \"MyDoc\", {\n documentFormat: DocumentFormat.JSON,\n documentName: \"MyDoc\",\n docInputs: [Input.ofTypeString('MyInput', { defaultValue: 'a' })],\n });\n\n // Define your steps...\n myDoc.addStep(new PauseStep(this, \"MyPauseStep\", {
|
|
2801
|
+
"markdown": "# SSM Document CDK\nThis library provides a code-based utility for implementing SSM Documents. The SSM Document objects can be used to print YAML/JSON documents and to mimic document processing locally.\n\nThis library abstracts SSM Documents at a high level, with each step as well as the document itself being objects. The properties needed to build these objects correlate to the settings that apply to them, making them simple to make.\nThis library can be used to test your document locally before deploying it to SSM.\n\nSince the library is written in JSII, it can be exported to other languages that support JSII (Java, Python).\n\nThis is what you'd use if you wanted to:\n1. The ability to test without deploying resources or executing an actual SSM on AWS.\n2. Reusability of steps between documents by reusing existing items\n3. Create logical higher-level groupings of reusable groups of steps (\"Patterns\")\n4. Simple to use interface for writing documents\n5. Import existing documents from a file (or string) and mimic them locally to test them.\n\n## Usage\n\n### Document Creation\n\nTypescript usage (Execute AWS API Step)...\nThe below creates the AutomationDocument in an AWS CDK stack.\n```ts\nimport { AutomationDocument } from './automation-document';\n\nexport class HelloWorld extends Stack {\n constructor(app: Construct, id: string) {\n super(app, id);\n\n // Create AutomationDocument\n const myDoc = new AutomationDocument(this, \"MyDoc\", {\n documentFormat: DocumentFormat.JSON,\n documentName: \"MyDoc\",\n docInputs: [Input.ofTypeString('MyInput', { defaultValue: 'a' })],\n });\n\n // Define your steps...\n myDoc.addStep(new PauseStep(this, \"MyPauseStep\", {\n name: \"MyPauseStep\",\n explicitNextStep: StepRef.fromName(\"step1\") // Optional (will default to next added step)\n }));\n\n myDoc.addStep(new ExecuteScriptStep(this, \"MyExecuteStep\", {\n name: \"step1\",\n handlerName: \"my_func\",\n language: ScriptLanguage.PYTHON,\n fullPathToCode: resolve(\"test/test_file.py\"),\n // OR .inlineCode(\"def my_func(args, context):\\n return {'MyReturn': args['MyInput'] + '-suffix'}\\n\")\n outputs: [{\n outputType: DataTypeEnum.STRING,\n name: \"MyFuncOut\",\n selector: \"$.Payload.MyReturn\"\n }],\n onFailure: OnFailure.abort(),\n inputs: [\"MyInput\"]\n }));\n }\n}\n```\n\n### Document JSON/YAML Export as YAML/JSON\n\nYou can deploy the above document using CDK.\nTo print the above document object as a JSON (or YAML), do the following:\n\n```ts\nconst myDocJson = myDoc.print(); // Print YAML by setting the documentFormat to YAML\n```\n\n\n### Document Simulation\n\nTo run the document object in simulation mode, use the below. Simulation mode does NOT hit the SSM API, rather it mimics the execution that will happen in an SSM execution. The run happens locally and allows you to mock the calls to external services (AWS APIs for example) or to invoke those services using your local credentials.\n\n```ts\nimport { Simulation } from './simulation';\n\nconst myDocJson = Simulation.ofAutomation(myDoc, {}).simulate({ MyInput: \"FooBar\" });\n```\n\n### Command Documents\n\nBelow is an example of how to use the library to create Command documents.\nSimulation for command documents is not yet supported for all command plugins.\nYou can use a Docker image/container as a playground for testing the Command document execution for the supported plugins.\n\nIn this example there is a complete CDK stack. Notice that the `CommandDocument` is saved as a field so that it can be tested from the test code.\n```typescript\nexport class HelloCdkStack extends Stack {\n readonly myCommandDoc: CommandDocument;\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n this.myCommandDoc = new CommandDocument(this, \"MyCommandDoc\", {\n docInputs: [Input.ofTypeString('FirstCommand', { defaultValue: 'a' })],\n })\n const runScriptStep = new RunShellScriptStep(this, \"MyShellScript\", {\n runCommand: [\n StringVariable.of(\"FirstCommand\"),\n HardCodedString.of(\"mkdir asdf\"),\n ],\n });\n this.myCommandDoc.addStep(runScriptStep);\n }\n}\n```\n\nBelow is an example of how you would run a simulation against the above `CommandDocument`.\n\nCurrently, `bash` must be available in the container or the executions against the docker will not succeed.\n\n```typescript\ntest('Test command doc', () => {\n const app = new cdk.App();\n const stack = new HelloCdk.HelloCdkStack(app, 'MyTestStack');\n // 1. $ docker pull amazonlinux\n // 2. $ docker run -di amazonlinux\n const simulation = Simulation.ofCommand(stack.myCommandDoc, {\n simulationPlatform: Platform.LINUX,\n environment: DockerEnvironment.fromContainer('MY_CONTAINER_ID')\n });\n simulation.simulate({FirstCommand: 'mkdir foobar'})\n // 3. The document should run the first command (create 'foobar') and create file 'asdf'\n // 4. $ docker exec -it <container name> bash\n // 5. Ensure that 'asdf' and 'foobar' were written to /tmp\n});\n```\n\n## Patterns (High-Level Constructs)\n\nIn typical CDK style, you can assemble often used groups of steps into higher level Constructs.\n\nConsider if you typically create AutomationDocuments that start with logging the time and end with logging the total time taken. You can create a high-level Automation Document and extend that when you implement an Automation.\n\nSee the `TimedDocument` class to see such implementation.\n\nOr consider the case of multiple steps that are always run together such as rebooting and instance and waiting for it to be active.\n\nThe below example is copied from the `RebootInstanceAndWait` class:\n\n```ts\nexport class RebootInstanceAndWait extends CompositeAutomationStep {\n\n readonly reboot: AwsApiStep;\n readonly describe: WaitForResourceStep;\n\n constructor(scope: Construct, id: string, instanceId: IStringVariable) {\n super(scope, id);\n this.reboot = new AwsApiStep(this, 'RebootInstances', {\n service: 'ec2',\n pascalCaseApi: 'RebootInstances',\n apiParams: { InstanceIds: [instanceId] },\n outputs: [],\n });\n this.describe = new WaitForResourceStep(this, 'DescribeInstances', {\n service: 'ec2',\n pascalCaseApi: 'DescribeInstances',\n apiParams: { InstanceIds: [instanceId] },\n selector: '$.Reservations[0].Instances[0].State.Name',\n desiredValues: ['running'],\n });\n }\n\n addToDocument(doc: AutomationDocumentBuilder): void {\n doc.addStep(this.reboot);\n doc.addStep(this.describe);\n }\n}\n\n```\n\nNow, you can use `RebootInstanceAndWait` as a step in a document and the child steps will be included.\n\n## Existing Documents\n\nDo you have an existing document that you want to convert to code and/or test locally using the simulation?\n\n### Import Existing Document\n\nHere is an example of how you can import an existing document and then simulate it locally with mocked AWS resources:\n\n```ts\n// Initialize Mocks\nconst sleeper = new MockSleep();\nconst awsInvoker = new MockAwsInvoker();\nawsInvoker.whenThen(\n // when invoked with...\n {awsApi: 'listBuckets', awsParams: {}, service: 'S3'},\n // then response with...\n {Owner: {ID: \"BUCKET_ID\"}})\n\n// ======> Create document from file <=======\nconst stack: Stack = new Stack();\nconst myAutomationDoc = StringDocument.fromFile(stack, \"MyAutomationDoc\", 'test/myAutomation.json', {\n // ======================\n});\n\n// Execute simulation\nconst simOutput = Simulation.ofAutomation(myAutomationDoc, {\n sleepHook: sleeper,\n awsInvoker: awsInvoker\n}).simulate({});\n\n// Assert simulation result\nassert.deepEqual(awsInvoker.previousInvocations, [\n { awsApi: 'listBuckets', awsParams: {}, service: 'S3' }]);\nassert.deepEqual(sleeper.sleepMilliInvocations, [3000]);\nassert.deepEqual(simOutput.outputs['simulationSteps'], ['MySleep', 'GetBucketId']);\n```\n\n### Import Existing Steps\n\nYou can also grab a string step (or steps) and import them as CDK step constructs.\nThis can be used to convert existing documents into CDK with each step defined separately.\nDoing so will allow you do modify steps and reuse them in other documents.\n\nHere's a simple example of a sleep step copy and pasted from its original yaml:\n\n```ts\nStringStep.fromYaml(this, `\n name: sleep\n action: aws:sleep\n inputs:\n Duration: PT0M\n`, {});\n```\n\nThe above will return the CDK construct SleepStep.\n\n## What is Planned?\n\nThis library currently contains AutomationDocument steps.\n\nAlso planned is the ability to run Command documents.\n\nStay tuned!\n\n## Related Projects\n\n- https://github.com/udondan/cdk-ssm-document\n\n## Security\nSee [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.\n\n## License\nThis project is licensed under the Apache-2.0 License.\n\n"
|
|
2802
2802
|
},
|
|
2803
2803
|
"repository": {
|
|
2804
2804
|
"type": "git",
|
|
@@ -5167,7 +5167,7 @@
|
|
|
5167
5167
|
},
|
|
5168
5168
|
"locationInModule": {
|
|
5169
5169
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5170
|
-
"line":
|
|
5170
|
+
"line": 75
|
|
5171
5171
|
},
|
|
5172
5172
|
"parameters": [
|
|
5173
5173
|
{
|
|
@@ -5196,7 +5196,7 @@
|
|
|
5196
5196
|
"kind": "class",
|
|
5197
5197
|
"locationInModule": {
|
|
5198
5198
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5199
|
-
"line":
|
|
5199
|
+
"line": 62
|
|
5200
5200
|
},
|
|
5201
5201
|
"methods": [
|
|
5202
5202
|
{
|
|
@@ -5205,7 +5205,7 @@
|
|
|
5205
5205
|
},
|
|
5206
5206
|
"locationInModule": {
|
|
5207
5207
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5208
|
-
"line":
|
|
5208
|
+
"line": 85
|
|
5209
5209
|
},
|
|
5210
5210
|
"name": "addToDocument",
|
|
5211
5211
|
"overrides": "@cdklabs/cdk-ssm-documents.IAutomationComponent",
|
|
@@ -5224,7 +5224,7 @@
|
|
|
5224
5224
|
},
|
|
5225
5225
|
"locationInModule": {
|
|
5226
5226
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5227
|
-
"line":
|
|
5227
|
+
"line": 89
|
|
5228
5228
|
},
|
|
5229
5229
|
"name": "prepareSsmEntry",
|
|
5230
5230
|
"parameters": [
|
|
@@ -5258,7 +5258,7 @@
|
|
|
5258
5258
|
},
|
|
5259
5259
|
"locationInModule": {
|
|
5260
5260
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5261
|
-
"line":
|
|
5261
|
+
"line": 139
|
|
5262
5262
|
},
|
|
5263
5263
|
"name": "variables",
|
|
5264
5264
|
"returns": {
|
|
@@ -5283,7 +5283,7 @@
|
|
|
5283
5283
|
"immutable": true,
|
|
5284
5284
|
"locationInModule": {
|
|
5285
5285
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5286
|
-
"line":
|
|
5286
|
+
"line": 64
|
|
5287
5287
|
},
|
|
5288
5288
|
"name": "DEFAULT_MAX_ATTEMPTS",
|
|
5289
5289
|
"static": true,
|
|
@@ -5299,7 +5299,7 @@
|
|
|
5299
5299
|
"immutable": true,
|
|
5300
5300
|
"locationInModule": {
|
|
5301
5301
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5302
|
-
"line":
|
|
5302
|
+
"line": 63
|
|
5303
5303
|
},
|
|
5304
5304
|
"name": "DEFAULT_TIMEOUT",
|
|
5305
5305
|
"static": true,
|
|
@@ -5314,7 +5314,7 @@
|
|
|
5314
5314
|
"immutable": true,
|
|
5315
5315
|
"locationInModule": {
|
|
5316
5316
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5317
|
-
"line":
|
|
5317
|
+
"line": 67
|
|
5318
5318
|
},
|
|
5319
5319
|
"name": "isEnd",
|
|
5320
5320
|
"type": {
|
|
@@ -5328,7 +5328,7 @@
|
|
|
5328
5328
|
"immutable": true,
|
|
5329
5329
|
"locationInModule": {
|
|
5330
5330
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5331
|
-
"line":
|
|
5331
|
+
"line": 65
|
|
5332
5332
|
},
|
|
5333
5333
|
"name": "maxAttempts",
|
|
5334
5334
|
"type": {
|
|
@@ -5342,7 +5342,7 @@
|
|
|
5342
5342
|
"immutable": true,
|
|
5343
5343
|
"locationInModule": {
|
|
5344
5344
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5345
|
-
"line":
|
|
5345
|
+
"line": 69
|
|
5346
5346
|
},
|
|
5347
5347
|
"name": "onCancel",
|
|
5348
5348
|
"type": {
|
|
@@ -5356,7 +5356,7 @@
|
|
|
5356
5356
|
"immutable": true,
|
|
5357
5357
|
"locationInModule": {
|
|
5358
5358
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5359
|
-
"line":
|
|
5359
|
+
"line": 68
|
|
5360
5360
|
},
|
|
5361
5361
|
"name": "onFailure",
|
|
5362
5362
|
"type": {
|
|
@@ -5370,7 +5370,7 @@
|
|
|
5370
5370
|
"immutable": true,
|
|
5371
5371
|
"locationInModule": {
|
|
5372
5372
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5373
|
-
"line":
|
|
5373
|
+
"line": 66
|
|
5374
5374
|
},
|
|
5375
5375
|
"name": "timeoutSeconds",
|
|
5376
5376
|
"type": {
|
|
@@ -5381,9 +5381,24 @@
|
|
|
5381
5381
|
"docs": {
|
|
5382
5382
|
"stability": "stable"
|
|
5383
5383
|
},
|
|
5384
|
+
"immutable": true,
|
|
5384
5385
|
"locationInModule": {
|
|
5385
5386
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5386
|
-
"line":
|
|
5387
|
+
"line": 70
|
|
5388
|
+
},
|
|
5389
|
+
"name": "explicitNextStep",
|
|
5390
|
+
"optional": true,
|
|
5391
|
+
"type": {
|
|
5392
|
+
"fqn": "@cdklabs/cdk-ssm-documents.StepRef"
|
|
5393
|
+
}
|
|
5394
|
+
},
|
|
5395
|
+
{
|
|
5396
|
+
"docs": {
|
|
5397
|
+
"stability": "stable"
|
|
5398
|
+
},
|
|
5399
|
+
"locationInModule": {
|
|
5400
|
+
"filename": "src/parent-steps/automation-step.ts",
|
|
5401
|
+
"line": 73
|
|
5387
5402
|
},
|
|
5388
5403
|
"name": "allStepsInExecution",
|
|
5389
5404
|
"optional": true,
|
|
@@ -5402,7 +5417,7 @@
|
|
|
5402
5417
|
},
|
|
5403
5418
|
"locationInModule": {
|
|
5404
5419
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5405
|
-
"line":
|
|
5420
|
+
"line": 72
|
|
5406
5421
|
},
|
|
5407
5422
|
"name": "nextStep",
|
|
5408
5423
|
"optional": true,
|
|
@@ -5426,10 +5441,29 @@
|
|
|
5426
5441
|
"kind": "interface",
|
|
5427
5442
|
"locationInModule": {
|
|
5428
5443
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5429
|
-
"line":
|
|
5444
|
+
"line": 11
|
|
5430
5445
|
},
|
|
5431
5446
|
"name": "AutomationStepProps",
|
|
5432
5447
|
"properties": [
|
|
5448
|
+
{
|
|
5449
|
+
"abstract": true,
|
|
5450
|
+
"docs": {
|
|
5451
|
+
"default": "will implicitly choose the next step in the sequence that the steps are added to the document.",
|
|
5452
|
+
"remarks": "https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-actions.html#nextProp",
|
|
5453
|
+
"stability": "stable",
|
|
5454
|
+
"summary": "(Optional) explicit step to go to after this step completes."
|
|
5455
|
+
},
|
|
5456
|
+
"immutable": true,
|
|
5457
|
+
"locationInModule": {
|
|
5458
|
+
"filename": "src/parent-steps/automation-step.ts",
|
|
5459
|
+
"line": 50
|
|
5460
|
+
},
|
|
5461
|
+
"name": "explicitNextStep",
|
|
5462
|
+
"optional": true,
|
|
5463
|
+
"type": {
|
|
5464
|
+
"fqn": "@cdklabs/cdk-ssm-documents.StepRef"
|
|
5465
|
+
}
|
|
5466
|
+
},
|
|
5433
5467
|
{
|
|
5434
5468
|
"abstract": true,
|
|
5435
5469
|
"docs": {
|
|
@@ -5440,7 +5474,7 @@
|
|
|
5440
5474
|
"immutable": true,
|
|
5441
5475
|
"locationInModule": {
|
|
5442
5476
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5443
|
-
"line":
|
|
5477
|
+
"line": 17
|
|
5444
5478
|
},
|
|
5445
5479
|
"name": "isEnd",
|
|
5446
5480
|
"optional": true,
|
|
@@ -5458,7 +5492,7 @@
|
|
|
5458
5492
|
"immutable": true,
|
|
5459
5493
|
"locationInModule": {
|
|
5460
5494
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5461
|
-
"line":
|
|
5495
|
+
"line": 36
|
|
5462
5496
|
},
|
|
5463
5497
|
"name": "maxAttempts",
|
|
5464
5498
|
"optional": true,
|
|
@@ -5476,7 +5510,7 @@
|
|
|
5476
5510
|
"immutable": true,
|
|
5477
5511
|
"locationInModule": {
|
|
5478
5512
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5479
|
-
"line":
|
|
5513
|
+
"line": 29
|
|
5480
5514
|
},
|
|
5481
5515
|
"name": "onCancel",
|
|
5482
5516
|
"optional": true,
|
|
@@ -5494,7 +5528,7 @@
|
|
|
5494
5528
|
"immutable": true,
|
|
5495
5529
|
"locationInModule": {
|
|
5496
5530
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5497
|
-
"line":
|
|
5531
|
+
"line": 23
|
|
5498
5532
|
},
|
|
5499
5533
|
"name": "onFailure",
|
|
5500
5534
|
"optional": true,
|
|
@@ -5513,7 +5547,7 @@
|
|
|
5513
5547
|
"immutable": true,
|
|
5514
5548
|
"locationInModule": {
|
|
5515
5549
|
"filename": "src/parent-steps/automation-step.ts",
|
|
5516
|
-
"line":
|
|
5550
|
+
"line": 43
|
|
5517
5551
|
},
|
|
5518
5552
|
"name": "timeoutSeconds",
|
|
5519
5553
|
"optional": true,
|
|
@@ -30189,6 +30223,137 @@
|
|
|
30189
30223
|
],
|
|
30190
30224
|
"symbolId": "src/parent-steps/step:StepProps"
|
|
30191
30225
|
},
|
|
30226
|
+
"@cdklabs/cdk-ssm-documents.StepRef": {
|
|
30227
|
+
"assembly": "@cdklabs/cdk-ssm-documents",
|
|
30228
|
+
"docs": {
|
|
30229
|
+
"remarks": "The class allows steps to be referenced by the Step object or by the step name.",
|
|
30230
|
+
"stability": "stable",
|
|
30231
|
+
"summary": "Class to reference AutomationSteps."
|
|
30232
|
+
},
|
|
30233
|
+
"fqn": "@cdklabs/cdk-ssm-documents.StepRef",
|
|
30234
|
+
"initializer": {
|
|
30235
|
+
"docs": {
|
|
30236
|
+
"stability": "stable"
|
|
30237
|
+
},
|
|
30238
|
+
"locationInModule": {
|
|
30239
|
+
"filename": "src/interface/step-ref.ts",
|
|
30240
|
+
"line": 22
|
|
30241
|
+
},
|
|
30242
|
+
"parameters": [
|
|
30243
|
+
{
|
|
30244
|
+
"name": "stepName",
|
|
30245
|
+
"type": {
|
|
30246
|
+
"primitive": "string"
|
|
30247
|
+
}
|
|
30248
|
+
}
|
|
30249
|
+
]
|
|
30250
|
+
},
|
|
30251
|
+
"kind": "class",
|
|
30252
|
+
"locationInModule": {
|
|
30253
|
+
"filename": "src/interface/step-ref.ts",
|
|
30254
|
+
"line": 7
|
|
30255
|
+
},
|
|
30256
|
+
"methods": [
|
|
30257
|
+
{
|
|
30258
|
+
"docs": {
|
|
30259
|
+
"stability": "stable",
|
|
30260
|
+
"summary": "Static constructor for creating a reference to a step from a step name."
|
|
30261
|
+
},
|
|
30262
|
+
"locationInModule": {
|
|
30263
|
+
"filename": "src/interface/step-ref.ts",
|
|
30264
|
+
"line": 18
|
|
30265
|
+
},
|
|
30266
|
+
"name": "fromName",
|
|
30267
|
+
"parameters": [
|
|
30268
|
+
{
|
|
30269
|
+
"name": "stepName",
|
|
30270
|
+
"type": {
|
|
30271
|
+
"primitive": "string"
|
|
30272
|
+
}
|
|
30273
|
+
}
|
|
30274
|
+
],
|
|
30275
|
+
"returns": {
|
|
30276
|
+
"type": {
|
|
30277
|
+
"fqn": "@cdklabs/cdk-ssm-documents.StepRef"
|
|
30278
|
+
}
|
|
30279
|
+
},
|
|
30280
|
+
"static": true
|
|
30281
|
+
},
|
|
30282
|
+
{
|
|
30283
|
+
"docs": {
|
|
30284
|
+
"stability": "stable",
|
|
30285
|
+
"summary": "Static constructor for creating a reference to a step from an AutomationStep object."
|
|
30286
|
+
},
|
|
30287
|
+
"locationInModule": {
|
|
30288
|
+
"filename": "src/interface/step-ref.ts",
|
|
30289
|
+
"line": 11
|
|
30290
|
+
},
|
|
30291
|
+
"name": "fromObject",
|
|
30292
|
+
"parameters": [
|
|
30293
|
+
{
|
|
30294
|
+
"name": "step",
|
|
30295
|
+
"type": {
|
|
30296
|
+
"fqn": "@cdklabs/cdk-ssm-documents.AutomationStep"
|
|
30297
|
+
}
|
|
30298
|
+
}
|
|
30299
|
+
],
|
|
30300
|
+
"returns": {
|
|
30301
|
+
"type": {
|
|
30302
|
+
"fqn": "@cdklabs/cdk-ssm-documents.StepRef"
|
|
30303
|
+
}
|
|
30304
|
+
},
|
|
30305
|
+
"static": true
|
|
30306
|
+
},
|
|
30307
|
+
{
|
|
30308
|
+
"docs": {
|
|
30309
|
+
"remarks": "Provide all the steps in the execution to find the associated step.",
|
|
30310
|
+
"stability": "stable",
|
|
30311
|
+
"summary": "Resolve to an AutomationStep object."
|
|
30312
|
+
},
|
|
30313
|
+
"locationInModule": {
|
|
30314
|
+
"filename": "src/interface/step-ref.ts",
|
|
30315
|
+
"line": 29
|
|
30316
|
+
},
|
|
30317
|
+
"name": "resolve",
|
|
30318
|
+
"parameters": [
|
|
30319
|
+
{
|
|
30320
|
+
"name": "allStepsInExecution",
|
|
30321
|
+
"type": {
|
|
30322
|
+
"collection": {
|
|
30323
|
+
"elementtype": {
|
|
30324
|
+
"fqn": "@cdklabs/cdk-ssm-documents.AutomationStep"
|
|
30325
|
+
},
|
|
30326
|
+
"kind": "array"
|
|
30327
|
+
}
|
|
30328
|
+
}
|
|
30329
|
+
}
|
|
30330
|
+
],
|
|
30331
|
+
"returns": {
|
|
30332
|
+
"type": {
|
|
30333
|
+
"fqn": "@cdklabs/cdk-ssm-documents.AutomationStep"
|
|
30334
|
+
}
|
|
30335
|
+
}
|
|
30336
|
+
}
|
|
30337
|
+
],
|
|
30338
|
+
"name": "StepRef",
|
|
30339
|
+
"properties": [
|
|
30340
|
+
{
|
|
30341
|
+
"docs": {
|
|
30342
|
+
"stability": "stable"
|
|
30343
|
+
},
|
|
30344
|
+
"immutable": true,
|
|
30345
|
+
"locationInModule": {
|
|
30346
|
+
"filename": "src/interface/step-ref.ts",
|
|
30347
|
+
"line": 21
|
|
30348
|
+
},
|
|
30349
|
+
"name": "stepName",
|
|
30350
|
+
"type": {
|
|
30351
|
+
"primitive": "string"
|
|
30352
|
+
}
|
|
30353
|
+
}
|
|
30354
|
+
],
|
|
30355
|
+
"symbolId": "src/interface/step-ref:StepRef"
|
|
30356
|
+
},
|
|
30192
30357
|
"@cdklabs/cdk-ssm-documents.StringDocument": {
|
|
30193
30358
|
"assembly": "@cdklabs/cdk-ssm-documents",
|
|
30194
30359
|
"docs": {
|
|
@@ -32523,6 +32688,6 @@
|
|
|
32523
32688
|
"symbolId": "src/interface/webhook:WebhookImpl"
|
|
32524
32689
|
}
|
|
32525
32690
|
},
|
|
32526
|
-
"version": "0.0.
|
|
32527
|
-
"fingerprint": "
|
|
32691
|
+
"version": "0.0.21",
|
|
32692
|
+
"fingerprint": "MHsuAT8tEHjLi6zJGs2rvlPNjjeQ1KZi9ojvYT7/Sn4="
|
|
32528
32693
|
}
|