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
3 changes: 3 additions & 0 deletions tuts/001-lightsail-gs/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-lightsail", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-lightsail", dependencies: [.product(name: "AWSLightsail", package: "aws-sdk-swift")])])
15 changes: 15 additions & 0 deletions tuts/001-lightsail-gs/swift/Sources/GettingStartedScenario.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSLightsail

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try LightsailClient(region: "us-east-1")
let wrapper = LightsailWrapper(client: client)
print("Running Lightsail getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
15 changes: 15 additions & 0 deletions tuts/001-lightsail-gs/swift/Sources/LightsailWrapper.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSLightsail
import Foundation

public class LightsailWrapper {
let client: LightsailClient

public init(client: LightsailClient) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
3 changes: 3 additions & 0 deletions tuts/002-vpc-gs/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-ec2", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-ec2", dependencies: [.product(name: "AWSEc2", package: "aws-sdk-swift")])])
15 changes: 15 additions & 0 deletions tuts/002-vpc-gs/swift/Sources/Ec2Wrapper.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSEc2
import Foundation

public class Ec2Wrapper {
let client: Ec2Client

public init(client: Ec2Client) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
15 changes: 15 additions & 0 deletions tuts/002-vpc-gs/swift/Sources/GettingStartedScenario.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSEc2

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try Ec2Client(region: "us-east-1")
let wrapper = Ec2Wrapper(client: client)
print("Running Ec2 getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
3 changes: 3 additions & 0 deletions tuts/003-s3-gettingstarted/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-s3", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-s3", dependencies: [.product(name: "AWSS3", package: "aws-sdk-swift")])])
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSS3

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try S3Client(region: "us-east-1")
let wrapper = S3Wrapper(client: client)
print("Running S3 getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
15 changes: 15 additions & 0 deletions tuts/003-s3-gettingstarted/swift/Sources/S3Wrapper.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSS3
import Foundation

public class S3Wrapper {
let client: S3Client

public init(client: S3Client) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
3 changes: 3 additions & 0 deletions tuts/004-cloudmap-custom-attributes/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-servicediscovery", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-servicediscovery", dependencies: [.product(name: "AWSCloudMap", package: "aws-sdk-swift")])])
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSCloudMap
import Foundation

public class CloudMapWrapper {
let client: CloudMapClient

public init(client: CloudMapClient) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSCloudMap

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try CloudMapClient(region: "us-east-1")
let wrapper = CloudMapWrapper(client: client)
print("Running CloudMap getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
3 changes: 3 additions & 0 deletions tuts/005-cloudfront-gettingstarted/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-cloudfront", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-cloudfront", dependencies: [.product(name: "AWSCloudFront", package: "aws-sdk-swift")])])
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSCloudFront
import Foundation

public class CloudFrontWrapper {
let client: CloudFrontClient

public init(client: CloudFrontClient) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSCloudFront

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try CloudFrontClient(region: "us-east-1")
let wrapper = CloudFrontWrapper(client: client)
print("Running CloudFront getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
3 changes: 3 additions & 0 deletions tuts/008-vpc-private-servers-gs/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-ec2", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-ec2", dependencies: [.product(name: "AWSEc2", package: "aws-sdk-swift")])])
15 changes: 15 additions & 0 deletions tuts/008-vpc-private-servers-gs/swift/Sources/Ec2Wrapper.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSEc2
import Foundation

public class Ec2Wrapper {
let client: Ec2Client

public init(client: Ec2Client) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSEc2

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try Ec2Client(region: "us-east-1")
let wrapper = Ec2Wrapper(client: client)
print("Running Ec2 getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
3 changes: 3 additions & 0 deletions tuts/009-vpc-ipam-gs/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-ec2", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-ec2", dependencies: [.product(name: "AWSEc2", package: "aws-sdk-swift")])])
15 changes: 15 additions & 0 deletions tuts/009-vpc-ipam-gs/swift/Sources/Ec2Wrapper.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSEc2
import Foundation

public class Ec2Wrapper {
let client: Ec2Client

public init(client: Ec2Client) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
15 changes: 15 additions & 0 deletions tuts/009-vpc-ipam-gs/swift/Sources/GettingStartedScenario.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSEc2

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try Ec2Client(region: "us-east-1")
let wrapper = Ec2Wrapper(client: client)
print("Running Ec2 getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
3 changes: 3 additions & 0 deletions tuts/010-cloudmap-service-discovery/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-servicediscovery", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-servicediscovery", dependencies: [.product(name: "AWSCloudMap", package: "aws-sdk-swift")])])
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSCloudMap
import Foundation

public class CloudMapWrapper {
let client: CloudMapClient

public init(client: CloudMapClient) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSCloudMap

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try CloudMapClient(region: "us-east-1")
let wrapper = CloudMapWrapper(client: client)
print("Running CloudMap getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
3 changes: 3 additions & 0 deletions tuts/011-getting-started-batch-fargate/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-batch", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-batch", dependencies: [.product(name: "AWSBatch", package: "aws-sdk-swift")])])
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSBatch
import Foundation

public class BatchWrapper {
let client: BatchClient

public init(client: BatchClient) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSBatch

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try BatchClient(region: "us-east-1")
let wrapper = BatchWrapper(client: client)
print("Running Batch getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
3 changes: 3 additions & 0 deletions tuts/012-transitgateway-gettingstarted/swift/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(name: "tutorial-ec2", dependencies: [.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "0.36.0")], targets: [.executableTarget(name: "tutorial-ec2", dependencies: [.product(name: "AWSEc2", package: "aws-sdk-swift")])])
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSEc2
import Foundation

public class Ec2Wrapper {
let client: Ec2Client

public init(client: Ec2Client) {
self.client = client
}

// TODO: Add async throws wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import AWSEc2

@main
struct GettingStartedScenario {
static func main() async throws {
let client = try Ec2Client(region: "us-east-1")
let wrapper = Ec2Wrapper(client: client)
print("Running Ec2 getting started scenario...")
// TODO: setup, interact, teardown
let _ = wrapper
}
}
Loading