Skip to content

Commit

Permalink
Merge pull request #41 from noppoMan/update-models
Browse files Browse the repository at this point in the history
Update models and add new apis
  • Loading branch information
noppoMan authored Jul 4, 2017
2 parents 40838b0 + 2fdf77a commit 85e558f
Show file tree
Hide file tree
Showing 352 changed files with 73,485 additions and 18,889 deletions.
2 changes: 1 addition & 1 deletion Sources/AWSSDKSwift/Services/acm/Acm_API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public struct Acm {
_ = try client.send(operation: "AddTagsToCertificate", path: "/", httpMethod: "POST", input: input)
}

/// Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM Certificate before it can be issued. The certificate can be approved by clicking a link in the mail to navigate to the Amazon certificate approval website and then clicking I Approve. However, the validation email can be blocked by spam filters. Therefore, if you do not receive the original mail, you can request that the mail be resent within 72 hours of requesting the ACM Certificate. If more than 72 hours have elapsed since your original request or since your last attempt to resend validation mail, you must request a new certificate.
/// Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM Certificate before it can be issued. The certificate can be approved by clicking a link in the mail to navigate to the Amazon certificate approval website and then clicking I Approve. However, the validation email can be blocked by spam filters. Therefore, if you do not receive the original mail, you can request that the mail be resent within 72 hours of requesting the ACM Certificate. If more than 72 hours have elapsed since your original request or since your last attempt to resend validation mail, you must request a new certificate. For more information about setting up your contact email addresses, see Configure Email for your Domain.
public func resendValidationEmail(_ input: ResendValidationEmailRequest) throws {
_ = try client.send(operation: "ResendValidationEmail", path: "/", httpMethod: "POST", input: input)
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/AWSSDKSwift/Services/acm/Acm_Shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ extension Acm {
]
/// The domain name that you want ACM to use to send you emails to validate your ownership of the domain.
public let domainValidationOptions: [DomainValidationOption]?
/// Additional FQDNs to be included in the Subject Alternative Name extension of the ACM Certificate. For example, add the name www.example.net to a certificate for which the DomainName field is www.example.com if users can reach your site by using either name.
/// Additional FQDNs to be included in the Subject Alternative Name extension of the ACM Certificate. For example, add the name www.example.net to a certificate for which the DomainName field is www.example.com if users can reach your site by using either name. The maximum number of domain names that you can add to an ACM Certificate is 100. However, the initial limit is 10 domain names. If you need more than 10 names, you must request a limit increase. For more information, see Limits.
public let subjectAlternativeNames: [String]?
/// Fully qualified domain name (FQDN), such as www.example.com, of the site that you want to secure with an ACM Certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.
/// Fully qualified domain name (FQDN), such as www.example.com, of the site that you want to secure with an ACM Certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. The maximum length of a DNS name is 253 octets. The name is made up of multiple labels separated by periods. No label can be longer than 63 octets. Consider the following examples: (63 octets).(63 octets).(63 octets).(61 octets) is legal because the total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets. (64 octets).(63 octets).(63 octets).(61 octets) is not legal because the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63 octets. (63 octets).(63 octets).(63 octets).(62 octets) is not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.
public let domainName: String
/// Customer chosen string that can be used to distinguish between calls to RequestCertificate. Idempotency tokens time out after one hour. Therefore, if you call RequestCertificate multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.
public let idempotencyToken: String?
Expand Down
31 changes: 28 additions & 3 deletions Sources/AWSSDKSwift/Services/apigateway/Apigateway_API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ public struct Apigateway {
return try client.send(operation: "GetDomainNames", path: "/domainnames", httpMethod: "GET", input: input)
}

/// Updates a RequestValidator of a given RestApi.
public func updateRequestValidator(_ input: UpdateRequestValidatorRequest) throws -> RequestValidator {
return try client.send(operation: "UpdateRequestValidator", path: "/restapis/{restapi_id}/requestvalidators/{requestvalidator_id}", httpMethod: "PATCH", input: input)
}

/// Adds a MethodResponse to an existing Method resource.
public func putMethodResponse(_ input: PutMethodResponseRequest) throws -> MethodResponse {
return try client.send(operation: "PutMethodResponse", path: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", httpMethod: "PUT", input: input)
Expand Down Expand Up @@ -372,16 +377,21 @@ public struct Apigateway {
return try client.send(operation: "CreateDeployment", path: "/restapis/{restapi_id}/deployments", httpMethod: "POST", input: input)
}

/// Represents a get integration.
public func getIntegration(_ input: GetIntegrationRequest) throws -> Integration {
return try client.send(operation: "GetIntegration", path: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", httpMethod: "GET", input: input)
/// Creates a ReqeustValidator of a given RestApi.
public func createRequestValidator(_ input: CreateRequestValidatorRequest) throws -> RequestValidator {
return try client.send(operation: "CreateRequestValidator", path: "/restapis/{restapi_id}/requestvalidators", httpMethod: "POST", input: input)
}

/// Flushes a stage's cache.
public func flushStageCache(_ input: FlushStageCacheRequest) throws {
_ = try client.send(operation: "FlushStageCache", path: "/restapis/{restapi_id}/stages/{stage_name}/cache/data", httpMethod: "DELETE", input: input)
}

/// Represents a get integration.
public func getIntegration(_ input: GetIntegrationRequest) throws -> Integration {
return try client.send(operation: "GetIntegration", path: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", httpMethod: "GET", input: input)
}

/// Creates a new domain name.
public func createDomainName(_ input: CreateDomainNameRequest) throws -> DomainName {
return try client.send(operation: "CreateDomainName", path: "/domainnames", httpMethod: "POST", input: input)
Expand All @@ -407,6 +417,11 @@ public struct Apigateway {
return try client.send(operation: "CreateUsagePlanKey", path: "/usageplans/{usageplanId}/keys", httpMethod: "POST", input: input)
}

/// Gets a RequestValidator of a given RestApi.
public func getRequestValidator(_ input: GetRequestValidatorRequest) throws -> RequestValidator {
return try client.send(operation: "GetRequestValidator", path: "/restapis/{restapi_id}/requestvalidators/{requestvalidator_id}", httpMethod: "GET", input: input)
}

/// Deletes the ApiKey resource.
public func deleteApiKey(_ input: DeleteApiKeyRequest) throws {
_ = try client.send(operation: "DeleteApiKey", path: "/apikeys/{api_Key}", httpMethod: "DELETE", input: input)
Expand Down Expand Up @@ -521,6 +536,11 @@ public struct Apigateway {
_ = try client.send(operation: "DeleteClientCertificate", path: "/clientcertificates/{clientcertificate_id}", httpMethod: "DELETE", input: input)
}

/// Gets the RequestValidators collection of a given RestApi.
public func getRequestValidators(_ input: GetRequestValidatorsRequest) throws -> RequestValidators {
return try client.send(operation: "GetRequestValidators", path: "/restapis/{restapi_id}/requestvalidators", httpMethod: "GET", input: input)
}

/// Lists information about a resource.
public func getResource(_ input: GetResourceRequest) throws -> Resource {
return try client.send(operation: "GetResource", path: "/restapis/{restapi_id}/resources/{resource_id}", httpMethod: "GET", input: input)
Expand All @@ -545,5 +565,10 @@ public struct Apigateway {
return try client.send(operation: "ImportApiKeys", path: "/apikeys?mode=import", httpMethod: "POST", input: input)
}

/// Deletes a RequestValidator of a given RestApi.
public func deleteRequestValidator(_ input: DeleteRequestValidatorRequest) throws {
_ = try client.send(operation: "DeleteRequestValidator", path: "/restapis/{restapi_id}/requestvalidators/{requestvalidator_id}", httpMethod: "DELETE", input: input)
}


}
Loading

0 comments on commit 85e558f

Please sign in to comment.