AWS Fundamentals Logo
AWS Fundamentals
aws apigateway

AWS Amazon API Gateway CLI Commands

124 CLI commands available for Amazon API Gateway.

CommandSample
create-api-key

Create an ApiKey resource.

create-authorizer

Adds a new Authorizer resource to an existing RestApi resource.

create-base-path-mapping

Creates a new BasePathMapping resource.

create-deployment

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

create-documentation-part

Creates a documentation part.

create-documentation-version

Creates a documentation version

create-domain-name

Creates a new domain name.

create-domain-name-access-association

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

create-model

Adds a new Model resource to an existing RestApi resource.

create-request-validator

Creates a RequestValidator of a given RestApi.

create-resource

Creates a Resource resource.

create-rest-api

Creates a new RestApi resource.

create-stage

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

create-usage-plan

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

create-usage-plan-key

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

create-vpc-link

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.

delete-api-key

Deletes the ApiKey resource.

delete-authorizer

Deletes an existing Authorizer resource.

delete-base-path-mapping

Deletes the BasePathMapping resource.

delete-client-certificate

Deletes the ClientCertificate resource.

delete-deployment

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

delete-documentation-part

Deletes a documentation part

delete-documentation-version

Deletes a documentation version.

delete-domain-name

Deletes the DomainName resource.

delete-domain-name-access-association

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

delete-gateway-response

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

delete-integration

Represents a delete integration.

delete-integration-response

Represents a delete integration response.

delete-method

Deletes an existing Method resource.

delete-method-response

Deletes an existing MethodResponse resource.

delete-model

Deletes a model.

delete-request-validator

Deletes a RequestValidator of a given RestApi.

delete-resource

Deletes a Resource resource.

delete-rest-api

Deletes the specified API.

delete-stage

Deletes a Stage resource.

delete-usage-plan

Deletes a usage plan of a given plan Id.

delete-usage-plan-key

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

delete-vpc-link

Deletes an existing VpcLink of a specified identifier.

flush-stage-authorizers-cache

Flushes all authorizer cache entries on a stage.

flush-stage-cache

Flushes a stage's cache.

generate-client-certificate

Generates a ClientCertificate resource.

get-account

Gets information about the current Account resource.

get-api-key

Gets information about the current ApiKey resource.

get-api-keys

Gets information about the current ApiKeys resource.

get-authorizer

Describe an existing Authorizer resource.

get-authorizers

Describe an existing Authorizers resource.

get-base-path-mapping

Describe a BasePathMapping resource.

get-base-path-mappings

Represents a collection of BasePathMapping resources.

get-client-certificate

Gets information about the current ClientCertificate resource.

get-client-certificates

Gets a collection of ClientCertificate resources.

get-deployment

Gets information about a Deployment resource.

get-deployments

Gets information about a Deployments collection.

get-documentation-part

Gets a documentation part.

get-documentation-parts

Gets documentation parts.

get-documentation-version

Gets a documentation version.

get-documentation-versions

Gets documentation versions.

get-domain-name

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

get-domain-name-access-associations

Represents a collection on DomainNameAccessAssociations resources.

get-domain-names

Represents a collection of DomainName resources.

get-export

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

get-gateway-response

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

get-gateway-responses

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.

get-integration

Get the integration settings.

get-integration-response

Represents a get integration response.

get-method

Describe an existing Method resource.

get-method-response

Describes a MethodResponse resource.

get-model

Describes an existing model defined for a RestApi resource.

get-model-template

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

get-models

Describes existing Models defined for a RestApi resource.

get-request-validator

Gets a RequestValidator of a given RestApi.

get-request-validators

Gets the RequestValidators collection of a given RestApi.

get-resource

Lists information about a resource.

get-resources

Lists information about a collection of Resource resources.

get-rest-api

Lists the RestApi resource in the collection.

get-rest-apis

Lists the RestApis resources for your collection.

get-sdk

Generates a client SDK for a RestApi and Stage.

get-sdk-type

Gets an SDK type.

get-sdk-types

Gets SDK types

get-stage

Gets information about a Stage resource.

get-stages

Gets information about one or more Stage resources.

get-tags

Gets the Tags collection for a given resource.

get-usage

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

get-usage-plan

Gets a usage plan of a given plan identifier.

get-usage-plan-key

Gets a usage plan key of a given key identifier.

get-usage-plan-keys

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

get-usage-plans

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

get-vpc-link

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

get-vpc-links

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

import-api-keys

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

import-documentation-parts

Imports documentation parts

import-rest-api

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

put-gateway-response

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

put-integration

Sets up a method's integration.

put-integration-response

Represents a put integration.

put-method

Add a method to an existing Resource resource.

put-method-response

Adds a MethodResponse to an existing Method resource.

put-rest-api

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.

reject-domain-name-access-association

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 t

tag-resource

Adds or updates a tag on a given resource.

test-invoke-authorizer

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

test-invoke-method

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

untag-resource

Removes a tag from a given resource.

update-account

Changes information about the current Account resource.

update-api-key

Changes information about an ApiKey resource.

update-authorizer

Updates an existing Authorizer resource.

update-base-path-mapping

Changes information about the BasePathMapping resource.

update-client-certificate

Changes information about an ClientCertificate resource.

update-deployment

Changes information about a Deployment resource.

update-documentation-part

Updates a documentation part.

update-documentation-version

Updates a documentation version.

update-domain-name

Changes information about the DomainName resource.

update-gateway-response

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

update-integration

Represents an update integration.

update-integration-response

Represents an update integration response.

update-method

Updates an existing Method resource.

update-method-response

Updates an existing MethodResponse resource.

update-model

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

update-request-validator

Updates a RequestValidator of a given RestApi.

update-resource

Changes information about a Resource resource.

update-rest-api

Changes information about the specified API.

update-stage

Changes information about a Stage resource.

update-usage

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

update-usage-plan

Updates a usage plan of a given plan Id.

update-vpc-link

Updates an existing VpcLink of a specified identifier.

Get the Amazon API Gateway Cheat Sheet

Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.

Download Free Infographic

Get the Amazon API Gateway Cheat Sheet

Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.

Download Free Infographic

Quick Stats

Total Commands124
ServiceAPI Gateway