class Amazonite::ApiGateway::Client

Defined in:

api_gateway/client.cr

Constant Summary

EXCEPTION_FACTORY = ExceptionFactory.new
Log = ::Log.for("amazonite.api_gateway.client")

Constructors

Instance Method Summary

Instance methods inherited from class Amazonite::Core::Client

post(command, url, body : String) post, query_request(command : String, body : String) query_request, rest_request(command : String, method : String, path : String, headers : HTTP::Headers, body : String | Nil) rest_request

Constructor methods inherited from class Amazonite::Core::Client

new(target_prefix : String, endpoint_prefix : String, json_version : String, exception_factory : ResponseExceptionFactory, config : Amazonite::Core::Config = Config.new) new

Constructor Detail

def self.new(config = Core::Config.new) #

[View source]

Instance Method Detail

Create an ApiKey resource.


[View source]

Adds a new Authorizer resource to an existing RestApi resource.


[View source]

Creates a new BasePathMapping resource.


[View source]

Creates a Deployment resource, which makes a specified RestApi callable over the internet.


[View source]

Creates a documentation part.


[View source]

Creates a documentation version


[View source]

Creates a new domain name.


[View source]

Creates a domain name access association resource between an access association source and a private custom domain name.


[View source]

Adds a new Model resource to an existing RestApi resource.


[View source]

Creates a RequestValidator of a given RestApi.


[View source]

Creates a Resource resource.


[View source]

Creates a new RestApi resource.


[View source]

Creates a new Stage resource that references a pre-existing Deployment for the API.


[View source]

Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload.


[View source]

Creates a usage plan key for adding an existing API key to a usage plan.


[View source]

Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.


[View source]
def delete_api_key(input : AAG::DeleteApiKeyRequest) : Core::Response #

Deletes the ApiKey resource.


[View source]
def delete_authorizer(input : AAG::DeleteAuthorizerRequest) : Core::Response #

Deletes an existing Authorizer resource.


[View source]
def delete_base_path_mapping(input : AAG::DeleteBasePathMappingRequest) : Core::Response #

Deletes the BasePathMapping resource.


[View source]
def delete_client_certificate(input : AAG::DeleteClientCertificateRequest) : Core::Response #

Deletes the ClientCertificate resource.


[View source]
def delete_deployment(input : AAG::DeleteDeploymentRequest) : Core::Response #

Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.


[View source]
def delete_documentation_part(input : AAG::DeleteDocumentationPartRequest) : Core::Response #

Deletes a documentation part


[View source]
def delete_documentation_version(input : AAG::DeleteDocumentationVersionRequest) : Core::Response #

Deletes a documentation version.


[View source]
def delete_domain_name(input : AAG::DeleteDomainNameRequest) : Core::Response #

Deletes the DomainName resource.


[View source]
def delete_domain_name_access_association(input : AAG::DeleteDomainNameAccessAssociationRequest) : Core::Response #

Deletes the DomainNameAccessAssociation resource.

Only the AWS account that created the DomainNameAccessAssociation resource can delete it. To stop an access association source in another AWS account from accessing your private custom domain name, use the RejectDomainNameAccessAssociation operation.


[View source]
def delete_gateway_response(input : AAG::DeleteGatewayResponseRequest) : Core::Response #

Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings.


[View source]
def delete_integration(input : AAG::DeleteIntegrationRequest) : Core::Response #

Represents a delete integration.


[View source]
def delete_integration_response(input : AAG::DeleteIntegrationResponseRequest) : Core::Response #

Represents a delete integration response.


[View source]
def delete_method(input : AAG::DeleteMethodRequest) : Core::Response #

Deletes an existing Method resource.


[View source]
def delete_method_response(input : AAG::DeleteMethodResponseRequest) : Core::Response #

Deletes an existing MethodResponse resource.


[View source]
def delete_model(input : AAG::DeleteModelRequest) : Core::Response #

Deletes a model.


[View source]
def delete_request_validator(input : AAG::DeleteRequestValidatorRequest) : Core::Response #

Deletes a RequestValidator of a given RestApi.


[View source]
def delete_resource(input : AAG::DeleteResourceRequest) : Core::Response #

Deletes a Resource resource.


[View source]
def delete_rest_api(input : AAG::DeleteRestApiRequest) : Core::Response #

Deletes the specified API.


[View source]
def delete_stage(input : AAG::DeleteStageRequest) : Core::Response #

Deletes a Stage resource.


[View source]
def delete_usage_plan(input : AAG::DeleteUsagePlanRequest) : Core::Response #

Deletes a usage plan of a given plan Id.


[View source]
def delete_usage_plan_key(input : AAG::DeleteUsagePlanKeyRequest) : Core::Response #

Deletes a usage plan key and remove the underlying API key from the associated usage plan.


[View source]
def delete_vpc_link(input : AAG::DeleteVpcLinkRequest) : Core::Response #

Deletes an existing VpcLink of a specified identifier.


[View source]
def flush_stage_authorizers_cache(input : AAG::FlushStageAuthorizersCacheRequest) : Core::Response #

Flushes all authorizer cache entries on a stage.


[View source]
def flush_stage_cache(input : AAG::FlushStageCacheRequest) : Core::Response #

Flushes a stage's cache.


[View source]

Generates a ClientCertificate resource.


[View source]

Gets information about the current Account resource.


[View source]

Gets information about the current ApiKey resource.


[View source]

Gets information about the current ApiKeys resource.


[View source]

Describe an existing Authorizer resource.


[View source]

Describe an existing Authorizers resource.


[View source]

Describe a BasePathMapping resource.


[View source]

Represents a collection of BasePathMapping resources.


[View source]

Gets information about the current ClientCertificate resource.


[View source]

Gets a collection of ClientCertificate resources.


[View source]

Gets information about a Deployment resource.


[View source]

Gets information about a Deployments collection.


[View source]

Gets a documentation part.


[View source]

Gets documentation parts.


[View source]

Gets a documentation version.


[View source]

Gets documentation versions.


[View source]

Represents a domain name that is contained in a simpler, more intuitive URL that can be called.


[View source]

Represents a collection on DomainNameAccessAssociations resources.


[View source]

Represents a collection of DomainName resources.


[View source]

Exports a deployed version of a RestApi in a specified format.


[View source]

Gets a GatewayResponse of a specified response type on the given RestApi.


[View source]

Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported response types.


[View source]

Get the integration settings.


[View source]

Represents a get integration response.


[View source]

Describe an existing Method resource.


[View source]

Describes a MethodResponse resource.


[View source]

Describes an existing model defined for a RestApi resource.


[View source]

Generates a sample mapping template that can be used to transform a payload into the structure of a model.


[View source]

Describes existing Models defined for a RestApi resource.


[View source]

Gets a RequestValidator of a given RestApi.


[View source]

Gets the RequestValidators collection of a given RestApi.


[View source]

Lists information about a resource.


[View source]

Lists information about a collection of Resource resources.


[View source]

Lists the RestApi resource in the collection.


[View source]

Lists the RestApis resources for your collection.


[View source]

Generates a client SDK for a RestApi and Stage.


[View source]

Gets an SDK type.


[View source]

Gets SDK types


[View source]

Gets information about a Stage resource.


[View source]

Gets information about one or more Stage resources.


[View source]

Gets the Tags collection for a given resource.


[View source]

Gets the usage data of a usage plan in a specified time interval.


[View source]

Gets a usage plan of a given plan identifier.


[View source]

Gets a usage plan key of a given key identifier.


[View source]

Gets all the usage plan keys representing the API keys added to a specified usage plan.


[View source]

Gets all the usage plans of the caller's account.


[View source]

Gets a specified VPC link under the caller's account in a region.


[View source]

Gets the VpcLinks collection under the caller's account in a selected region.


[View source]

Import API keys from an external source, such as a CSV-formatted file.


[View source]

Imports documentation parts


[View source]

A feature of the API Gateway control service for creating a new API from an external API definition file.


[View source]

Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.


[View source]

Sets up a method's integration.


[View source]

Represents a put integration.


[View source]

Add a method to an existing Resource resource.


[View source]

Adds a MethodResponse to an existing Method resource.


[View source]

A feature of the API Gateway control service for updating an existing API with an input of external API definitions. The update can take the form of merging the supplied definition into the existing API or overwriting the existing API.


[View source]
def reject_domain_name_access_association(input : AAG::RejectDomainNameAccessAssociationRequest) : Core::Response #

Rejects a domain name access association with a private custom domain name.

To reject a domain name access association with an access association source in another AWS account, use this operation. To remove a domain name access association with an access association source in your own account, use the DeleteDomainNameAccessAssociation operation.


[View source]
def tag_resource(input : AAG::TagResourceRequest) : Core::Response #

Adds or updates a tag on a given resource.


[View source]

Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.


[View source]

Simulate the invocation of a Method in your RestApi with headers, parameters, and an incoming request body.


[View source]
def untag_resource(input : AAG::UntagResourceRequest) : Core::Response #

Removes a tag from a given resource.


[View source]

Changes information about the current Account resource.


[View source]

Changes information about an ApiKey resource.


[View source]

Updates an existing Authorizer resource.


[View source]

Changes information about the BasePathMapping resource.


[View source]

Changes information about an ClientCertificate resource.


[View source]

Changes information about a Deployment resource.


[View source]

Updates a documentation part.


[View source]

Updates a documentation version.


[View source]

Changes information about the DomainName resource.


[View source]

Updates a GatewayResponse of a specified response type on the given RestApi.


[View source]

Represents an update integration.


[View source]

Represents an update integration response.


[View source]

Updates an existing Method resource.


[View source]

Updates an existing MethodResponse resource.


[View source]

Changes information about a model. The maximum size of the model is 400 KB.


[View source]

Updates a RequestValidator of a given RestApi.


[View source]

Changes information about a Resource resource.


[View source]

Changes information about the specified API.


[View source]

Changes information about a Stage resource.


[View source]

Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key.


[View source]

Updates a usage plan of a given plan Id.


[View source]

Updates an existing VpcLink of a specified identifier.


[View source]