Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions .doc_gen/metadata/sfn_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ sfn_CreateStateMachine:
snippet_tags:
- python.example_code.sfn.StateMachine_decl
- python.example_code.sfn.CreateStateMachine
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.CreateStateMachine
services:
sfn: {CreateStateMachine}
sfn_DeleteStateMachine:
Expand Down Expand Up @@ -122,6 +130,14 @@ sfn_DeleteStateMachine:
snippet_tags:
- python.example_code.sfn.StateMachine_decl
- python.example_code.sfn.DeleteStateMachine
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.DeleteStateMachine
services:
sfn: {DeleteStateMachine}
sfn_ListStateMachines:
Expand Down Expand Up @@ -163,6 +179,14 @@ sfn_ListStateMachines:
snippet_tags:
- python.example_code.sfn.StateMachine_decl
- python.example_code.sfn.ListStateMachines
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.ListStateMachines
services:
sfn: {ListStateMachines}
sfn_DescribeStateMachine:
Expand Down Expand Up @@ -204,6 +228,14 @@ sfn_DescribeStateMachine:
snippet_tags:
- python.example_code.sfn.StateMachine_decl
- python.example_code.sfn.DescribeStateMachine
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.DescribeStateMachine
services:
sfn: {DescribeStateMachine}
sfn_StartExecution:
Expand Down Expand Up @@ -254,6 +286,14 @@ sfn_StartExecution:
- description:
snippet_files:
- javascriptv3/example_code/sfn/actions/start-execution.js
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.StartExecution
services:
sfn: {StartExecution}
sfn_ListExecutions:
Expand Down Expand Up @@ -325,6 +365,14 @@ sfn_DescribeExecution:
- description:
snippet_tags:
- python.example_code.sfn.DescribeExecution
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.DescribeExecution
services:
sfn: {DescribeExecution}
sfn_CreateActivity:
Expand Down Expand Up @@ -366,6 +414,14 @@ sfn_CreateActivity:
snippet_tags:
- python.example_code.sfn.Activity_decl
- python.example_code.sfn.CreateActivity
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.CreateActivity
services:
sfn: {CreateActivity}
sfn_ListActivities:
Expand Down Expand Up @@ -407,6 +463,14 @@ sfn_ListActivities:
snippet_tags:
- python.example_code.sfn.Activity_decl
- python.example_code.sfn.ListActivities
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.CreateActivity
services:
sfn: {ListActivities}
sfn_GetActivityTask:
Expand Down Expand Up @@ -447,6 +511,14 @@ sfn_GetActivityTask:
snippet_tags:
- python.example_code.sfn.Activity_decl
- python.example_code.sfn.GetActivityTask
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.GetActivityTask
services:
sfn: {GetActivityTask}
sfn_SendTaskSuccess:
Expand Down Expand Up @@ -488,6 +560,14 @@ sfn_SendTaskSuccess:
snippet_tags:
- python.example_code.sfn.Activity_decl
- python.example_code.sfn.SendTaskSuccess
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.SendTaskSuccess
services:
sfn: {SendTaskSuccess}
sfn_DeleteActivity:
Expand Down Expand Up @@ -529,6 +609,14 @@ sfn_DeleteActivity:
snippet_tags:
- python.example_code.sfn.Activity_decl
- python.example_code.sfn.DeleteActivity
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- snippet_tags:
- swift.sfn.import
- swift.sfn.DeleteActivity
services:
sfn: {DeleteActivity}
sfn_Scenario_GetStartedStateMachines:
Expand Down Expand Up @@ -586,6 +674,21 @@ sfn_Scenario_GetStartedStateMachines:
- description: Define a class that wraps activity actions.
snippet_tags:
- python.example_code.sfn.Activity_full
Swift:
versions:
- sdk_version: 1
github: swift/example_code/sfn/scenario
excerpts:
- description: The main program, <filename>entry.swift</filename>.
snippet_tags:
- swift.sfn.scenario
- description: The activity manager, <filename>Activity.swift</filename>.
snippet_tags:
- swift.sfn.scenario.activity
- description: The state machine manager, <filename>StateMachine.swift</filename>.
snippet_tags:
- swift.sfn.scenario.statemachine

services:
sfn: {CreateActivity, CreateStateMachine, DeleteActivity, DeleteStateMachine, DescribeExecution, DescribeStateMachine,
GetActivityTask, ListActivities, ListStateMachines, SendTaskSuccess, StartExecution, StopExecution}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// swift-tools-version:5.9
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//
// The swift-tools-version declares the minimum version of Swift required to
// build this package.

import PackageDescription

let package = Package(
name: "cognito-resolver",
// Let Xcode know the minimum Apple platforms supported.
platforms: [
.macOS(.v11),
.iOS(.v13)
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(
url: "https://github.com/awslabs/aws-sdk-swift",
from: "1.0.0"
),
.package(
url: "https://github.com/apple/swift-argument-parser.git",
branch: "main"
),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.executableTarget(
name: "cognito-resolver",
dependencies: [
.product(name: "AWSCognitoIdentity", package: "aws-sdk-swift"),
.product(name: "AWSIAM", package: "aws-sdk-swift"),
.product(name: "AWSSTS", package: "aws-sdk-swift"),
.product(name: "AWSS3", package: "aws-sdk-swift"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
path: "Sources"),
]
)
Loading
Loading