Skip to content

Commit

Permalink
Merge pull request #76 from swift-aws/update-models-20170806
Browse files Browse the repository at this point in the history
Sync models with [email protected]
  • Loading branch information
jonnymacs authored Aug 7, 2018
2 parents 3ef1e7c + d307d32 commit e6fb849
Show file tree
Hide file tree
Showing 692 changed files with 165,825 additions and 204,777 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get install -y clang \
libcurl4-openssl-dev \
wget

ENV SWIFT_VERSION="3.1"
ENV SWIFT_VERSION="4.1.2"
ENV SWIFTFILE="swift-$SWIFT_VERSION-RELEASE-ubuntu14.04"

RUN wget https://swift.org/builds/swift-$SWIFT_VERSION-release/ubuntu1404/swift-$SWIFT_VERSION-RELEASE/$SWIFTFILE.tar.gz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
import AWSSDKSwiftCore

/**

The AWS Migration Hub API methods help to obtain server and application migration status and integrate your resource-specific migration tool by providing a programmatic interface to Migration Hub.
*/
public struct AWSMigrationHub {

Expand Down Expand Up @@ -35,7 +35,7 @@ public struct AWSMigrationHub {
return try client.send(operation: "DisassociateDiscoveredResource", path: "/", httpMethod: "POST", input: input)
}

/// Provides identifying details of the resource being migrated so that it can be associated in the Application Discovery Service (ADS)'s repository. This association occurs asynchronously after PutResourceAttributes returns. Keep in mind that subsequent calls to PutResourceAttributes will override previously stored attributes. For example, if it is first called with a MAC address, but later, it is desired to add an IP address, it will then be required to call it with both the IP and MAC addresses to prevent overiding the MAC address. Because this is an asynchronous call, it will always return 200, whether an association occurs or not. To confirm if an association was found based on the provided details, call ListAssociatedResource.
/// Provides identifying details of the resource being migrated so that it can be associated in the Application Discovery Service (ADS)'s repository. This association occurs asynchronously after PutResourceAttributes returns. Keep in mind that subsequent calls to PutResourceAttributes will override previously stored attributes. For example, if it is first called with a MAC address, but later, it is desired to add an IP address, it will then be required to call it with both the IP and MAC addresses to prevent overiding the MAC address. Note the instructions regarding the special use case of the ResourceAttributeList parameter when specifying any "VM" related value. Because this is an asynchronous call, it will always return 200, whether an association occurs or not. To confirm if an association was found based on the provided details, call ListDiscoveredResources.
public func putResourceAttributes(_ input: PutResourceAttributesRequest) throws -> PutResourceAttributesResult {
return try client.send(operation: "PutResourceAttributes", path: "/", httpMethod: "POST", input: input)
}
Expand All @@ -60,7 +60,7 @@ public struct AWSMigrationHub {
return try client.send(operation: "NotifyMigrationTaskState", path: "/", httpMethod: "POST", input: input)
}

/// Deletes a progress update stream, including all of its tasks, which was previously created as an AWS resource used for access control. This API has the following traits: The only parameter needed for DeleteProgressUpdateStream is the stream name (same as a CreateProgressUpdateStream call). The call will return, and a background process will asynchronously be doing the actual delete of the stream and all of its resources (tasks, associated resources, resource attributes, created artifacts). If the stream takes time to be deleted, it might still show up on a ListProgressUpdateStreams call. CreateProgressUpdateStream, ImportMigrationTask, NotifyMigrationTaskState, and all Associate[*] APIs realted to the tasks belonging to the stream will throw "InvalidInputException" if the stream of the same name is in the process of being deleted. Once the stream and all of its resources are deleted, CreateProgressUpdateStream for a stream of the same name will succeed, and that stream will be an entirely new logical resource (without any resources associated with the old stream).
/// Deletes a progress update stream, including all of its tasks, which was previously created as an AWS resource used for access control. This API has the following traits: The only parameter needed for DeleteProgressUpdateStream is the stream name (same as a CreateProgressUpdateStream call). The call will return, and a background process will asynchronously delete the stream and all of its resources (tasks, associated resources, resource attributes, created artifacts). If the stream takes time to be deleted, it might still show up on a ListProgressUpdateStreams call. CreateProgressUpdateStream, ImportMigrationTask, NotifyMigrationTaskState, and all Associate[*] APIs realted to the tasks belonging to the stream will throw "InvalidInputException" if the stream of the same name is in the process of being deleted. Once the stream and all of its resources are deleted, CreateProgressUpdateStream for a stream of the same name will succeed, and that stream will be an entirely new logical resource (without any resources associated with the old stream).
public func deleteProgressUpdateStream(_ input: DeleteProgressUpdateStreamRequest) throws -> DeleteProgressUpdateStreamResult {
return try client.send(operation: "DeleteProgressUpdateStream", path: "/", httpMethod: "POST", input: input)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ extension AWSMigrationHub {
case vmPath = "VM_PATH"
case biosId = "BIOS_ID"
case motherboardSerialNumber = "MOTHERBOARD_SERIAL_NUMBER"
case label = "LABEL"
public var description: String { return self.rawValue }
}

Expand Down Expand Up @@ -653,7 +652,7 @@ extension AWSMigrationHub {
]
/// Unique identifier that references the migration task.
public let migrationTaskName: String
/// Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service (ADS)'s repository.
/// Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service (ADS)'s repository. Takes the object array of ResourceAttribute where the Type field is reserved for the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up to 256 characters. If any "VM" related value is set for a ResourceAttribute object, it is required that VM_MANAGER_ID, as a minimum, is always set. If VM_MANAGER_ID is not set, then all "VM" fields will be discarded and "VM" fields will not be used for matching the migration task to a server in Application Discovery Service (ADS)'s repository. See the Example section below for a use case of specifying "VM" related values. If a server you are trying to match has multiple IP or MAC addresses, you should provide as many as you know in separate type/value pairs passed to the ResourceAttributeList parameter to maximize the chances of matching.
public let resourceAttributeList: [ResourceAttribute]
/// Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
public let dryRun: Bool?
Expand Down
6 changes: 3 additions & 3 deletions Sources/AWSSDKSwift/Services/Cloud9/Cloud9_API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
import AWSSDKSwiftCore

/**
AWS Cloud9 AWS Cloud9 is a collection of tools that you can use to code, build, run, test, debug, and release software in the cloud. In the background, these tools are available through development environments running on Amazon Elastic Compute Cloud (Amazon EC2) instances (known as Amazon EC2 environments), your own servers (known as SSH environments), or a combination. This enables you to create and switch between multiple environments, with each environment set up for a specific development project. For more information about AWS Cloud9, see the AWS Cloud9 User Guide. AWS Cloud9 supports these operations: CreateEnvironmentEC2: Creates an AWS Cloud9 development environment, launches an Amazon EC2 instance, and then hosts the environment on the instance. CreateEnvironmentMembership: Adds an environment member to an environment. DeleteEnvironment: Deletes an environment. If the environment is hosted on an Amazon EC2 instance, also terminates the instance. DeleteEnvironmentMembership: Deletes an environment member from an environment. DescribeEnvironmentMemberships: Gets information about environment members for an environment. DescribeEnvironments: Gets information about environments. DescribeEnvironmentStatus: Gets status information for an environment. ListEnvironments: Gets a list of environment identifiers. UpdateEnvironment: Changes the settings of an existing environment. UpdateEnvironmentMembership: Changes the settings of an existing environment member for an environment.
AWS Cloud9 AWS Cloud9 is a collection of tools that you can use to code, build, run, test, debug, and release software in the cloud. For more information about AWS Cloud9, see the AWS Cloud9 User Guide. AWS Cloud9 supports these operations: CreateEnvironmentEC2: Creates an AWS Cloud9 development environment, launches an Amazon EC2 instance, and then connects from the instance to the environment. CreateEnvironmentMembership: Adds an environment member to an environment. DeleteEnvironment: Deletes an environment. If an Amazon EC2 instance is connected to the environment, also terminates the instance. DeleteEnvironmentMembership: Deletes an environment member from an environment. DescribeEnvironmentMemberships: Gets information about environment members for an environment. DescribeEnvironments: Gets information about environments. DescribeEnvironmentStatus: Gets status information for an environment. ListEnvironments: Gets a list of environment identifiers. UpdateEnvironment: Changes the settings of an existing environment. UpdateEnvironmentMembership: Changes the settings of an existing environment member for an environment.
*/
public struct Cloud9 {

Expand All @@ -25,7 +25,7 @@ public struct Cloud9 {
)
}

/// Deletes an AWS Cloud9 development environment. If the environment is hosted on an Amazon Elastic Compute Cloud (Amazon EC2) instance, also terminates the instance.
/// Deletes an AWS Cloud9 development environment. If an Amazon EC2 instance is connected to the environment, also terminates the instance.
public func deleteEnvironment(_ input: DeleteEnvironmentRequest) throws -> DeleteEnvironmentResult {
return try client.send(operation: "DeleteEnvironment", path: "/", httpMethod: "POST", input: input)
}
Expand All @@ -45,7 +45,7 @@ public struct Cloud9 {
return try client.send(operation: "DescribeEnvironmentStatus", path: "/", httpMethod: "POST", input: input)
}

/// Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then hosts the environment on the instance.
/// Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then connects from the instance to the environment.
public func createEnvironmentEC2(_ input: CreateEnvironmentEC2Request) throws -> CreateEnvironmentEC2Result {
return try client.send(operation: "CreateEnvironmentEC2", path: "/", httpMethod: "POST", input: input)
}
Expand Down
8 changes: 4 additions & 4 deletions Sources/AWSSDKSwift/Services/Cloud9/Cloud9_Shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extension Cloud9 {
public static var _members: [AWSShapeMember] = [
AWSShapeMember(label: "environmentIds", required: true, type: .list)
]
/// The IDs of invidividual environments to get information about.
/// The IDs of individual environments to get information about.
public let environmentIds: [String]

public init(environmentIds: [String]) {
Expand All @@ -29,7 +29,7 @@ extension Cloud9 {
]
/// Any new or replacement description for the environment.
public let description: String?
/// Any replacement name for the environment.
/// A replacement name for the environment.
public let name: String?
/// The ID of the environment to change settings.
public let environmentId: String
Expand Down Expand Up @@ -197,7 +197,7 @@ extension Cloud9 {
public let ownerArn: String?
/// The ID of the environment.
public let id: String?
/// The type of environment. Valid values include the following: ec2: An environment hosted on an Amazon Elastic Compute Cloud (Amazon EC2) instance. ssh: An environment hosted on your own server.
/// The type of environment. Valid values include the following: ec2: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment. ssh: Your own server connects to the environment.
public let `type`: EnvironmentType?
/// The Amazon Resource Name (ARN) of the environment.
public let arn: String?
Expand Down Expand Up @@ -467,7 +467,7 @@ extension Cloud9 {
]
/// The name of the environment to create. This name is visible to other AWS IAM users in the same AWS account.
public let name: String
/// The type of instance to host the environment on (for example, t2.micro).
/// The type of instance to connect to the environment (for example, t2.micro).
public let instanceType: String
/// The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS IAM principal. If this value is not specified, the ARN defaults to this environment's creator.
public let ownerArn: String?
Expand Down
Loading

0 comments on commit e6fb849

Please sign in to comment.