CARVIEW |
Class: Aws::APIGateway::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::APIGateway::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb
Overview
An API client for APIGateway. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::APIGateway::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_api_key(params = {}) ⇒ Types::ApiKey
Create an ApiKey resource.
-
#create_authorizer(params = {}) ⇒ Types::Authorizer
Adds a new Authorizer resource to an existing RestApi resource.
-
#create_base_path_mapping(params = {}) ⇒ Types::BasePathMapping
Creates a new BasePathMapping resource.
-
#create_deployment(params = {}) ⇒ Types::Deployment
Creates a Deployment resource, which makes a specified RestApi callable over the internet.
-
#create_documentation_part(params = {}) ⇒ Types::DocumentationPart
Creates a documentation part.
-
#create_documentation_version(params = {}) ⇒ Types::DocumentationVersion
Creates a documentation version.
-
#create_domain_name(params = {}) ⇒ Types::DomainName
Creates a new domain name.
-
#create_domain_name_access_association(params = {}) ⇒ Types::DomainNameAccessAssociation
Creates a domain name access association resource between an access association source and a private custom domain name.
-
#create_model(params = {}) ⇒ Types::Model
Adds a new Model resource to an existing RestApi resource.
-
#create_request_validator(params = {}) ⇒ Types::RequestValidator
Creates a RequestValidator of a given RestApi.
-
#create_resource(params = {}) ⇒ Types::Resource
Creates a Resource resource.
-
#create_rest_api(params = {}) ⇒ Types::RestApi
Creates a new RestApi resource.
-
#create_stage(params = {}) ⇒ Types::Stage
Creates a new Stage resource that references a pre-existing Deployment for the API.
-
#create_usage_plan(params = {}) ⇒ Types::UsagePlan
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(params = {}) ⇒ Types::UsagePlanKey
Creates a usage plan key for adding an existing API key to a usage plan.
-
#create_vpc_link(params = {}) ⇒ Types::VpcLink
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.
-
#delete_api_key(params = {}) ⇒ Struct
Deletes the ApiKey resource.
-
#delete_authorizer(params = {}) ⇒ Struct
Deletes an existing Authorizer resource.
-
#delete_base_path_mapping(params = {}) ⇒ Struct
Deletes the BasePathMapping resource.
-
#delete_client_certificate(params = {}) ⇒ Struct
Deletes the ClientCertificate resource.
-
#delete_deployment(params = {}) ⇒ Struct
Deletes a Deployment resource.
-
#delete_documentation_part(params = {}) ⇒ Struct
Deletes a documentation part.
-
#delete_documentation_version(params = {}) ⇒ Struct
Deletes a documentation version.
-
#delete_domain_name(params = {}) ⇒ Struct
Deletes the DomainName resource.
-
#delete_domain_name_access_association(params = {}) ⇒ Struct
Deletes the DomainNameAccessAssociation resource.
-
#delete_gateway_response(params = {}) ⇒ Struct
Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings.
-
#delete_integration(params = {}) ⇒ Struct
Represents a delete integration.
-
#delete_integration_response(params = {}) ⇒ Struct
Represents a delete integration response.
-
#delete_method(params = {}) ⇒ Struct
Deletes an existing Method resource.
-
#delete_method_response(params = {}) ⇒ Struct
Deletes an existing MethodResponse resource.
-
#delete_model(params = {}) ⇒ Struct
Deletes a model.
-
#delete_request_validator(params = {}) ⇒ Struct
Deletes a RequestValidator of a given RestApi.
-
#delete_resource(params = {}) ⇒ Struct
Deletes a Resource resource.
-
#delete_rest_api(params = {}) ⇒ Struct
Deletes the specified API.
-
#delete_stage(params = {}) ⇒ Struct
Deletes a Stage resource.
-
#delete_usage_plan(params = {}) ⇒ Struct
Deletes a usage plan of a given plan Id.
-
#delete_usage_plan_key(params = {}) ⇒ Struct
Deletes a usage plan key and remove the underlying API key from the associated usage plan.
-
#delete_vpc_link(params = {}) ⇒ Struct
Deletes an existing VpcLink of a specified identifier.
-
#flush_stage_authorizers_cache(params = {}) ⇒ Struct
Flushes all authorizer cache entries on a stage.
-
#flush_stage_cache(params = {}) ⇒ Struct
Flushes a stage's cache.
-
#generate_client_certificate(params = {}) ⇒ Types::ClientCertificate
Generates a ClientCertificate resource.
-
#get_account(params = {}) ⇒ Types::Account
Gets information about the current Account resource.
-
#get_api_key(params = {}) ⇒ Types::ApiKey
Gets information about the current ApiKey resource.
-
#get_api_keys(params = {}) ⇒ Types::ApiKeys
Gets information about the current ApiKeys resource.
-
#get_authorizer(params = {}) ⇒ Types::Authorizer
Describe an existing Authorizer resource.
-
#get_authorizers(params = {}) ⇒ Types::Authorizers
Describe an existing Authorizers resource.
-
#get_base_path_mapping(params = {}) ⇒ Types::BasePathMapping
Describe a BasePathMapping resource.
-
#get_base_path_mappings(params = {}) ⇒ Types::BasePathMappings
Represents a collection of BasePathMapping resources.
-
#get_client_certificate(params = {}) ⇒ Types::ClientCertificate
Gets information about the current ClientCertificate resource.
-
#get_client_certificates(params = {}) ⇒ Types::ClientCertificates
Gets a collection of ClientCertificate resources.
-
#get_deployment(params = {}) ⇒ Types::Deployment
Gets information about a Deployment resource.
-
#get_deployments(params = {}) ⇒ Types::Deployments
Gets information about a Deployments collection.
-
#get_documentation_part(params = {}) ⇒ Types::DocumentationPart
Gets a documentation part.
-
#get_documentation_parts(params = {}) ⇒ Types::DocumentationParts
Gets documentation parts.
-
#get_documentation_version(params = {}) ⇒ Types::DocumentationVersion
Gets a documentation version.
-
#get_documentation_versions(params = {}) ⇒ Types::DocumentationVersions
Gets documentation versions.
-
#get_domain_name(params = {}) ⇒ Types::DomainName
Represents a domain name that is contained in a simpler, more intuitive URL that can be called.
-
#get_domain_name_access_associations(params = {}) ⇒ Types::DomainNameAccessAssociations
Represents a collection on DomainNameAccessAssociations resources.
-
#get_domain_names(params = {}) ⇒ Types::DomainNames
Represents a collection of DomainName resources.
-
#get_export(params = {}) ⇒ Types::ExportResponse
Exports a deployed version of a RestApi in a specified format.
-
#get_gateway_response(params = {}) ⇒ Types::GatewayResponse
Gets a GatewayResponse of a specified response type on the given RestApi.
-
#get_gateway_responses(params = {}) ⇒ Types::GatewayResponses
Gets the GatewayResponses collection on the given RestApi.
-
#get_integration(params = {}) ⇒ Types::Integration
Get the integration settings.
-
#get_integration_response(params = {}) ⇒ Types::IntegrationResponse
Represents a get integration response.
-
#get_method(params = {}) ⇒ Types::Method
Describe an existing Method resource.
-
#get_method_response(params = {}) ⇒ Types::MethodResponse
Describes a MethodResponse resource.
-
#get_model(params = {}) ⇒ Types::Model
Describes an existing model defined for a RestApi resource.
-
#get_model_template(params = {}) ⇒ Types::Template
Generates a sample mapping template that can be used to transform a payload into the structure of a model.
-
#get_models(params = {}) ⇒ Types::Models
Describes existing Models defined for a RestApi resource.
-
#get_request_validator(params = {}) ⇒ Types::RequestValidator
Gets a RequestValidator of a given RestApi.
-
#get_request_validators(params = {}) ⇒ Types::RequestValidators
Gets the RequestValidators collection of a given RestApi.
-
#get_resource(params = {}) ⇒ Types::Resource
Lists information about a resource.
-
#get_resources(params = {}) ⇒ Types::Resources
Lists information about a collection of Resource resources.
-
#get_rest_api(params = {}) ⇒ Types::RestApi
Lists the RestApi resource in the collection.
-
#get_rest_apis(params = {}) ⇒ Types::RestApis
Lists the RestApis resources for your collection.
-
#get_sdk(params = {}) ⇒ Types::SdkResponse
Generates a client SDK for a RestApi and Stage.
-
#get_sdk_type(params = {}) ⇒ Types::SdkType
Gets an SDK type.
-
#get_sdk_types(params = {}) ⇒ Types::SdkTypes
Gets SDK types.
-
#get_stage(params = {}) ⇒ Types::Stage
Gets information about a Stage resource.
-
#get_stages(params = {}) ⇒ Types::Stages
Gets information about one or more Stage resources.
-
#get_tags(params = {}) ⇒ Types::Tags
Gets the Tags collection for a given resource.
-
#get_usage(params = {}) ⇒ Types::Usage
Gets the usage data of a usage plan in a specified time interval.
-
#get_usage_plan(params = {}) ⇒ Types::UsagePlan
Gets a usage plan of a given plan identifier.
-
#get_usage_plan_key(params = {}) ⇒ Types::UsagePlanKey
Gets a usage plan key of a given key identifier.
-
#get_usage_plan_keys(params = {}) ⇒ Types::UsagePlanKeys
Gets all the usage plan keys representing the API keys added to a specified usage plan.
-
#get_usage_plans(params = {}) ⇒ Types::UsagePlans
Gets all the usage plans of the caller's account.
-
#get_vpc_link(params = {}) ⇒ Types::VpcLink
Gets a specified VPC link under the caller's account in a region.
-
#get_vpc_links(params = {}) ⇒ Types::VpcLinks
Gets the VpcLinks collection under the caller's account in a selected region.
-
#import_api_keys(params = {}) ⇒ Types::ApiKeyIds
Import API keys from an external source, such as a CSV-formatted file.
-
#import_documentation_parts(params = {}) ⇒ Types::DocumentationPartIds
Imports documentation parts.
-
#import_rest_api(params = {}) ⇒ Types::RestApi
A feature of the API Gateway control service for creating a new API from an external API definition file.
-
#put_gateway_response(params = {}) ⇒ Types::GatewayResponse
Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.
-
#put_integration(params = {}) ⇒ Types::Integration
Sets up a method's integration.
-
#put_integration_response(params = {}) ⇒ Types::IntegrationResponse
Represents a put integration.
-
#put_method(params = {}) ⇒ Types::Method
Add a method to an existing Resource resource.
-
#put_method_response(params = {}) ⇒ Types::MethodResponse
Adds a MethodResponse to an existing Method resource.
-
#put_rest_api(params = {}) ⇒ Types::RestApi
A feature of the API Gateway control service for updating an existing API with an input of external API definitions.
-
#reject_domain_name_access_association(params = {}) ⇒ Struct
Rejects a domain name access association with a private custom domain name.
-
#tag_resource(params = {}) ⇒ Struct
Adds or updates a tag on a given resource.
-
#test_invoke_authorizer(params = {}) ⇒ Types::TestInvokeAuthorizerResponse
Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.
-
#test_invoke_method(params = {}) ⇒ Types::TestInvokeMethodResponse
Simulate the invocation of a Method in your RestApi with headers, parameters, and an incoming request body.
-
#untag_resource(params = {}) ⇒ Struct
Removes a tag from a given resource.
-
#update_account(params = {}) ⇒ Types::Account
Changes information about the current Account resource.
-
#update_api_key(params = {}) ⇒ Types::ApiKey
Changes information about an ApiKey resource.
-
#update_authorizer(params = {}) ⇒ Types::Authorizer
Updates an existing Authorizer resource.
-
#update_base_path_mapping(params = {}) ⇒ Types::BasePathMapping
Changes information about the BasePathMapping resource.
-
#update_client_certificate(params = {}) ⇒ Types::ClientCertificate
Changes information about an ClientCertificate resource.
-
#update_deployment(params = {}) ⇒ Types::Deployment
Changes information about a Deployment resource.
-
#update_documentation_part(params = {}) ⇒ Types::DocumentationPart
Updates a documentation part.
-
#update_documentation_version(params = {}) ⇒ Types::DocumentationVersion
Updates a documentation version.
-
#update_domain_name(params = {}) ⇒ Types::DomainName
Changes information about the DomainName resource.
-
#update_gateway_response(params = {}) ⇒ Types::GatewayResponse
Updates a GatewayResponse of a specified response type on the given RestApi.
-
#update_integration(params = {}) ⇒ Types::Integration
Represents an update integration.
-
#update_integration_response(params = {}) ⇒ Types::IntegrationResponse
Represents an update integration response.
-
#update_method(params = {}) ⇒ Types::Method
Updates an existing Method resource.
-
#update_method_response(params = {}) ⇒ Types::MethodResponse
Updates an existing MethodResponse resource.
-
#update_model(params = {}) ⇒ Types::Model
Changes information about a model.
-
#update_request_validator(params = {}) ⇒ Types::RequestValidator
Updates a RequestValidator of a given RestApi.
-
#update_resource(params = {}) ⇒ Types::Resource
Changes information about a Resource resource.
-
#update_rest_api(params = {}) ⇒ Types::RestApi
Changes information about the specified API.
-
#update_stage(params = {}) ⇒ Types::Stage
Changes information about a Stage resource.
-
#update_usage(params = {}) ⇒ Types::Usage
Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key.
-
#update_usage_plan(params = {}) ⇒ Types::UsagePlan
Updates a usage plan of a given plan Id.
-
#update_vpc_link(params = {}) ⇒ Types::VpcLink
Updates an existing VpcLink of a specified identifier.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
Parameters:
- options (Hash)
Options Hash (options):
-
:plugins
(Array<Seahorse::Client::Plugin>)
— default:
[]]
—
A list of plugins to apply to the client. Each plugin is either a class name or an instance of a plugin class.
-
:credentials
(required, Aws::CredentialProvider)
—
Your AWS credentials used for authentication. This can be an instance of any one of the following classes:
Aws::Credentials
- Used for configuring static, non-refreshing credentials.Aws::SharedCredentials
- Used for loading static credentials from a shared file, such as~/.aws/config
.Aws::AssumeRoleCredentials
- Used when you need to assume a role.Aws::AssumeRoleWebIdentityCredentials
- Used when you need to assume a role after providing credentials via the web.Aws::SSOCredentials
- Used for loading credentials from AWS SSO using an access token generated fromaws login
.Aws::ProcessCredentials
- Used for loading credentials from a process that outputs to stdout.Aws::InstanceProfileCredentials
- Used for loading credentials from an EC2 IMDS on an EC2 instance.Aws::ECSCredentials
- Used for loading credentials from instances running in ECS.Aws::CognitoIdentityCredentials
- Used for loading credentials from the Cognito Identity service.
When
:credentials
are not configured directly, the following locations will be searched for credentials:Aws.config[:credentials]
The
:access_key_id
,:secret_access_key
,:session_token
, and:account_id
options.ENV['AWS_ACCESS_KEY_ID']
,ENV['AWS_SECRET_ACCESS_KEY']
,ENV['AWS_SESSION_TOKEN']
, andENV['AWS_ACCOUNT_ID']
.~/.aws/credentials
~/.aws/config
EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive. Construct and pass an instance of
Aws::InstanceProfileCredentials
orAws::ECSCredentials
to enable retries and extended timeouts. Instance profile credential fetching can be disabled by settingENV['AWS_EC2_METADATA_DISABLED']
totrue
.
-
:region
(required, String)
—
The AWS region to connect to. The configured
:region
is used to determine the service:endpoint
. When not passed, a default:region
is searched for in the following locations:Aws.config[:region]
ENV['AWS_REGION']
ENV['AMAZON_REGION']
ENV['AWS_DEFAULT_REGION']
~/.aws/credentials
~/.aws/config
- :access_key_id (String)
- :account_id (String)
-
:active_endpoint_cache
(Boolean)
— default:
false
—
When set to
true
, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults tofalse
. -
:adaptive_retry_wait_to_fill
(Boolean)
— default:
true
—
Used only in
adaptive
retry mode. When true, the request will sleep until there is sufficent client side capacity to retry the request. When false, the request will raise aRetryCapacityNotAvailableError
and will not retry instead of sleeping. -
:auth_scheme_preference
(Array<String>)
—
A list of preferred authentication schemes to use when making a request. Supported values are:
sigv4
,sigv4a
,httpBearerAuth
, andnoAuth
. When set usingENV['AWS_AUTH_SCHEME_PREFERENCE']
or in shared config asauth_scheme_preference
, the value should be a comma-separated list. -
:client_side_monitoring
(Boolean)
— default:
false
—
When
true
, client-side metrics will be collected for all API requests from this client. -
:client_side_monitoring_client_id
(String)
— default:
""
—
Allows you to provide an identifier for this client which will be attached to all generated client side metrics. Defaults to an empty string.
-
:client_side_monitoring_host
(String)
— default:
"127.0.0.1"
—
Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client side monitoring agent is running on, where client metrics will be published via UDP.
-
:client_side_monitoring_port
(Integer)
— default:
31000
—
Required for publishing client metrics. The port that the client side monitoring agent is running on, where client metrics will be published via UDP.
-
:client_side_monitoring_publisher
(Aws::ClientSideMonitoring::Publisher)
— default:
Aws::ClientSideMonitoring::Publisher
—
Allows you to provide a custom client-side monitoring publisher class. By default, will use the Client Side Monitoring Agent Publisher.
-
:convert_params
(Boolean)
— default:
true
—
When
true
, an attempt is made to coerce request parameters into the required types. -
:correct_clock_skew
(Boolean)
— default:
true
—
Used only in
standard
and adaptive retry modes. Specifies whether to apply a clock skew correction and retry requests with skewed client clocks. -
:defaults_mode
(String)
— default:
"legacy"
—
See DefaultsModeConfiguration for a list of the accepted modes and the configuration defaults that are included.
-
:disable_host_prefix_injection
(Boolean)
— default:
false
—
When
true
, the SDK will not prepend the modeled host prefix to the endpoint. -
:disable_request_compression
(Boolean)
— default:
false
—
When set to 'true' the request body will not be compressed for supported operations.
-
:endpoint
(String, URI::HTTPS, URI::HTTP)
—
Normally you should not configure the
:endpoint
option directly. This is normally constructed from the:region
option. Configuring:endpoint
is normally reserved for connecting to test or custom endpoints. The endpoint should be a URI formatted like:'https://example.com' 'https://example.com' 'https://example.com:123'
-
:endpoint_cache_max_entries
(Integer)
— default:
1000
—
Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000.
-
:endpoint_cache_max_threads
(Integer)
— default:
10
—
Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
-
:endpoint_cache_poll_interval
(Integer)
— default:
60
—
When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec.
-
:endpoint_discovery
(Boolean)
— default:
false
—
When set to
true
, endpoint discovery will be enabled for operations when available. -
:ignore_configured_endpoint_urls
(Boolean)
—
Setting to true disables use of endpoint URLs provided via environment variables and the shared configuration file.
-
:log_formatter
(Aws::Log::Formatter)
— default:
Aws::Log::Formatter.default
—
The log formatter.
-
:log_level
(Symbol)
— default:
:info
—
The log level to send messages to the
:logger
at. -
:logger
(Logger)
—
The Logger instance to send log messages to. If this option is not set, logging will be disabled.
-
:max_attempts
(Integer)
— default:
3
—
An integer representing the maximum number attempts that will be made for a single request, including the initial attempt. For example, setting this value to 5 will result in a request being retried up to 4 times. Used in
standard
andadaptive
retry modes. -
:profile
(String)
— default:
"default"
—
Used when loading credentials from the shared credentials file at
HOME/.aws/credentials
. When not specified, 'default' is used. -
:request_checksum_calculation
(String)
— default:
"when_supported"
—
Determines when a checksum will be calculated for request payloads. Values are:
when_supported
- (default) When set, a checksum will be calculated for all request payloads of operations modeled with thehttpChecksum
trait whererequestChecksumRequired
istrue
and/or arequestAlgorithmMember
is modeled.when_required
- When set, a checksum will only be calculated for request payloads of operations modeled with thehttpChecksum
trait whererequestChecksumRequired
istrue
or where arequestAlgorithmMember
is modeled and supplied.
-
:request_min_compression_size_bytes
(Integer)
— default:
10240
—
The minimum size in bytes that triggers compression for request bodies. The value must be non-negative integer value between 0 and 10485780 bytes inclusive.
-
:response_checksum_validation
(String)
— default:
"when_supported"
—
Determines when checksum validation will be performed on response payloads. Values are:
when_supported
- (default) When set, checksum validation is performed on all response payloads of operations modeled with thehttpChecksum
trait whereresponseAlgorithms
is modeled, except when no modeled checksum algorithms are supported.when_required
- When set, checksum validation is not performed on response payloads of operations unless the checksum algorithm is supported and therequestValidationModeMember
member is set toENABLED
.
-
:retry_backoff
(Proc)
—
A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. This option is only used in the
legacy
retry mode. -
:retry_base_delay
(Float)
— default:
0.3
—
The base delay in seconds used by the default backoff function. This option is only used in the
legacy
retry mode. -
:retry_jitter
(Symbol)
— default:
:none
—
A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number. This option is only used in the
legacy
retry mode.@see https://www.awsarchitectureblog.com/2015/03/backoff.html
-
:retry_limit
(Integer)
— default:
3
—
The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors, auth errors, endpoint discovery, and errors from expired credentials. This option is only used in the
legacy
retry mode. -
:retry_max_delay
(Integer)
— default:
0
—
The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function. This option is only used in the
legacy
retry mode. -
:retry_mode
(String)
— default:
"legacy"
—
Specifies which retry algorithm to use. Values are:
legacy
- The pre-existing retry behavior. This is default value if no retry mode is provided.standard
- A standardized set of retry rules across the AWS SDKs. This includes support for retry quotas, which limit the number of unsuccessful retries a client can make.adaptive
- An experimental retry mode that includes all the functionality ofstandard
mode along with automatic client side throttling. This is a provisional mode that may change behavior in the future.
-
:sdk_ua_app_id
(String)
—
A unique and opaque application ID that is appended to the User-Agent header as app/sdk_ua_app_id. It should have a maximum length of 50. This variable is sourced from environment variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
- :secret_access_key (String)
- :session_token (String)
-
:sigv4a_signing_region_set
(Array)
—
A list of regions that should be signed with SigV4a signing. When not passed, a default
:sigv4a_signing_region_set
is searched for in the following locations:Aws.config[:sigv4a_signing_region_set]
ENV['AWS_SIGV4A_SIGNING_REGION_SET']
~/.aws/config
-
:stub_responses
(Boolean)
— default:
false
—
Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling ClientStubs#stub_responses. See ClientStubs for more information.
Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled.
-
:telemetry_provider
(Aws::Telemetry::TelemetryProviderBase)
— default:
Aws::Telemetry::NoOpTelemetryProvider
—
Allows you to provide a telemetry provider, which is used to emit telemetry data. By default, uses
NoOpTelemetryProvider
which will not record or emit any telemetry data. The SDK supports the following telemetry providers:- OpenTelemetry (OTel) - To use the OTel provider, install and require the
opentelemetry-sdk
gem and then, pass in an instance of aAws::Telemetry::OTelProvider
for telemetry provider.
- OpenTelemetry (OTel) - To use the OTel provider, install and require the
-
:token_provider
(Aws::TokenProvider)
—
Your Bearer token used for authentication. This can be an instance of any one of the following classes:
Aws::StaticTokenProvider
- Used for configuring static, non-refreshing tokens.Aws::SSOTokenProvider
- Used for loading tokens from AWS SSO using an access token generated fromaws login
.
When
:token_provider
is not configured directly, theAws::TokenProviderChain
will be used to search for tokens configured for your profile in shared configuration files. -
:use_dualstack_endpoint
(Boolean)
—
When set to
true
, dualstack enabled endpoints (with.aws
TLD) will be used if available. -
:use_fips_endpoint
(Boolean)
—
When set to
true
, fips compatible endpoints will be used if available. When afips
region is used, the region is normalized and this config is set totrue
. -
:validate_params
(Boolean)
— default:
true
—
When
true
, request parameters are validated before sending the request. -
:endpoint_provider
(Aws::APIGateway::EndpointProvider)
—
The endpoint provider used to resolve endpoints. Any object that responds to
#resolve_endpoint(parameters)
whereparameters
is a Struct similar toAws::APIGateway::EndpointParameters
. -
:http_continue_timeout
(Float)
— default:
1
—
The number of seconds to wait for a 100-continue response before sending the request body. This option has no effect unless the request has "Expect" header set to "100-continue". Defaults to
nil
which disables this behaviour. This value can safely be set per request on the session. -
:http_idle_timeout
(Float)
— default:
5
—
The number of seconds a connection is allowed to sit idle before it is considered stale. Stale connections are closed and removed from the pool before making a request.
-
:http_open_timeout
(Float)
— default:
15
—
The default number of seconds to wait for response data. This value can safely be set per-request on the session.
-
:http_proxy
(URI::HTTP, String)
—
A proxy to send requests through. Formatted like 'https://proxy.com:123'.
-
:http_read_timeout
(Float)
— default:
60
—
The default number of seconds to wait for response data. This value can safely be set per-request on the session.
-
:http_wire_trace
(Boolean)
— default:
false
—
When
true
, HTTP debug output will be sent to the:logger
. -
:on_chunk_received
(Proc)
—
When a Proc object is provided, it will be used as callback when each chunk of the response body is received. It provides three arguments: the chunk, the number of bytes received, and the total number of bytes in the response (or nil if the server did not send a
content-length
). -
:on_chunk_sent
(Proc)
—
When a Proc object is provided, it will be used as callback when each chunk of the request body is sent. It provides three arguments: the chunk, the number of bytes read from the body, and the total number of bytes in the body.
-
:raise_response_errors
(Boolean)
— default:
true
—
When
true
, response errors are raised. -
:ssl_ca_bundle
(String)
—
Full path to the SSL certificate authority bundle file that should be used when verifying peer certificates. If you do not pass
:ssl_ca_bundle
or:ssl_ca_directory
the the system default will be used if available. -
:ssl_ca_directory
(String)
—
Full path of the directory that contains the unbundled SSL certificate authority files for verifying peer certificates. If you do not pass
:ssl_ca_bundle
or:ssl_ca_directory
the the system default will be used if available. -
:ssl_ca_store
(String)
—
Sets the X509::Store to verify peer certificate.
-
:ssl_cert
(OpenSSL::X509::Certificate)
—
Sets a client certificate when creating http connections.
-
:ssl_key
(OpenSSL::PKey)
—
Sets a client key when creating http connections.
-
:ssl_timeout
(Float)
—
Sets the SSL timeout in seconds
-
:ssl_verify_peer
(Boolean)
— default:
true
—
When
true
, SSL peer certificates are verified when establishing a connection.
478 479 480 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 478 def initialize(*args) super end |
Instance Method Details
#create_api_key(params = {}) ⇒ Types::ApiKey
Create an ApiKey resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_api_key({
name: "String",
description: "String",
enabled: false,
generate_distinct_id: false,
value: "String",
stage_keys: [
{
rest_api_id: "String",
stage_name: "String",
},
],
customer_id: "String",
tags: {
"String" => "String",
},
})
Response structure
Response structure
resp.id #=> String
resp.value #=> String
resp.name #=> String
resp.customer_id #=> String
resp.description #=> String
resp.enabled #=> Boolean
resp.created_date #=> Time
resp.last_updated_date #=> Time
resp.stage_keys #=> Array
resp.stage_keys[0] #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:name
(String)
—
The name of the ApiKey.
-
:description
(String)
—
The description of the ApiKey.
-
:enabled
(Boolean)
—
Specifies whether the ApiKey can be used by callers.
-
:generate_distinct_id
(Boolean)
—
Specifies whether (
true
) or not (false
) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used. -
:value
(String)
—
Specifies a value of the API key.
-
:stage_keys
(Array<Types::StageKey>)
—
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
-
:customer_id
(String)
—
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
-
:tags
(Hash<String,String>)
—
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters.
Returns:
-
(Types::ApiKey)
—
Returns a response object which responds to the following methods:
- #id => String
- #value => String
- #name => String
- #customer_id => String
- #description => String
- #enabled => Boolean
- #created_date => Time
- #last_updated_date => Time
- #stage_keys => Array<String>
- #tags => Hash<String,String>
566 567 568 569 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 566 def create_api_key(params = {}, options = {}) req = build_request(:create_api_key, params) req.send_request(options) end |
#create_authorizer(params = {}) ⇒ Types::Authorizer
Adds a new Authorizer resource to an existing RestApi resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_authorizer({
rest_api_id: "String", # required
name: "String", # required
type: "TOKEN", # required, accepts TOKEN, REQUEST, COGNITO_USER_POOLS
provider_arns: ["ProviderARN"],
auth_type: "String",
authorizer_uri: "String",
authorizer_credentials: "String",
identity_source: "String",
identity_validation_expression: "String",
authorizer_result_ttl_in_seconds: 1,
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS"
resp.provider_arns #=> Array
resp.provider_arns[0] #=> String
resp.auth_type #=> String
resp.authorizer_uri #=> String
resp.authorizer_credentials #=> String
resp.identity_source #=> String
resp.identity_validation_expression #=> String
resp.authorizer_result_ttl_in_seconds #=> Integer
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:name
(required, String)
—
The name of the authorizer.
-
:type
(required, String)
—
The authorizer type. Valid values are
TOKEN
for a Lambda function using a single authorization token submitted in a custom header,REQUEST
for a Lambda function using incoming request parameters, andCOGNITO_USER_POOLS
for using an Amazon Cognito user pool. -
:provider_arns
(Array<String>)
—
A list of the Amazon Cognito user pool ARNs for the
COGNITO_USER_POOLS
authorizer. Each element is of this format:arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}
. For aTOKEN
orREQUEST
authorizer, this is not defined. -
:auth_type
(String)
—
Optional customer-defined field, used in OpenAPI imports and exports without functional impact.
-
:authorizer_uri
(String)
—
Specifies the authorizer's Uniform Resource Identifier (URI). For
TOKEN
orREQUEST
authorizers, this must be a well-formed Lambda function URI, for example,arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations
. In general, the URI has this formarn:aws:apigateway:{region}:lambda:path/{service_api}
, where{region}
is the same as the region hosting the Lambda function,path
indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial/
. For Lambda functions, this is usually of the form/2015-03-31/functions/[FunctionARN]/invocations
. -
:authorizer_credentials
(String)
—
Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.
-
:identity_source
(String)
—
The identity source for which authorization is requested. For a
TOKEN
orCOGNITO_USER_POOLS
authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name isAuth
, the header mapping expression ismethod.request.header.Auth
. For theREQUEST
authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if anAuth
header, aName
query string parameter are defined as identity sources, this value ismethod.request.header.Auth, method.request.querystring.Name
. These parameters will be used to derive the authorization caching key and to perform runtime validation of theREQUEST
authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional. -
:identity_validation_expression
(String)
—
A validation expression for the incoming identity token. For
TOKEN
authorizers, this value is a regular expression. ForCOGNITO_USER_POOLS
authorizers, API Gateway will match theaud
field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to theREQUEST
authorizer. -
:authorizer_result_ttl_in_seconds
(Integer)
—
The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.
Returns:
-
(Types::Authorizer)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #type => String
- #provider_arns => Array<String>
- #auth_type => String
- #authorizer_uri => String
- #authorizer_credentials => String
- #identity_source => String
- #identity_validation_expression => String
- #authorizer_result_ttl_in_seconds => Integer
696 697 698 699 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 696 def create_authorizer(params = {}, options = {}) req = build_request(:create_authorizer, params) req.send_request(options) end |
#create_base_path_mapping(params = {}) ⇒ Types::BasePathMapping
Creates a new BasePathMapping resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_base_path_mapping({
domain_name: "String", # required
domain_name_id: "String",
base_path: "String",
rest_api_id: "String", # required
stage: "String",
})
Response structure
Response structure
resp.base_path #=> String
resp.rest_api_id #=> String
resp.stage #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name
(required, String)
—
The domain name of the BasePathMapping resource to create.
-
:domain_name_id
(String)
—
The identifier for the domain name resource. Required for private custom domain names.
-
:base_path
(String)
—
The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage
(String)
—
The name of the API's stage that you want to use for this mapping. Specify '(none)' if you want callers to explicitly specify the stage name after any base path name.
Returns:
-
(Types::BasePathMapping)
—
Returns a response object which responds to the following methods:
- #base_path => String
- #rest_api_id => String
- #stage => String
748 749 750 751 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 748 def create_base_path_mapping(params = {}, options = {}) req = build_request(:create_base_path_mapping, params) req.send_request(options) end |
#create_deployment(params = {}) ⇒ Types::Deployment
Creates a Deployment resource, which makes a specified RestApi callable over the internet.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_deployment({
rest_api_id: "String", # required
stage_name: "String",
stage_description: "String",
description: "String",
cache_cluster_enabled: false,
cache_cluster_size: "0.5", # accepts 0.5, 1.6, 6.1, 13.5, 28.4, 58.2, 118, 237
variables: {
"String" => "String",
},
canary_settings: {
percent_traffic: 1.0,
stage_variable_overrides: {
"String" => "String",
},
use_stage_cache: false,
},
tracing_enabled: false,
})
Response structure
Response structure
resp.id #=> String
resp.description #=> String
resp.created_date #=> Time
resp.api_summary #=> Hash
resp.api_summary["String"] #=> Hash
resp.api_summary["String"]["String"].authorization_type #=> String
resp.api_summary["String"]["String"].api_key_required #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage_name
(String)
—
The name of the Stage resource for the Deployment resource to create.
-
:stage_description
(String)
—
The description of the Stage resource for the Deployment resource to create.
-
:description
(String)
—
The description for the Deployment resource to create.
-
:cache_cluster_enabled
(Boolean)
—
Enables a cache cluster for the Stage resource specified in the input.
-
:cache_cluster_size
(String)
—
The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
-
:variables
(Hash<String,String>)
—
A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match
[A-Za-z0-9-._~:/?#&=,]+
. -
:canary_settings
(Types::DeploymentCanarySettings)
—
The input configuration for the canary deployment when the deployment is a canary release deployment.
-
:tracing_enabled
(Boolean)
—
Specifies whether active tracing with X-ray is enabled for the Stage.
Returns:
-
(Types::Deployment)
—
Returns a response object which responds to the following methods:
- #id => String
- #description => String
- #created_date => Time
- #api_summary => Hash<String,Hash<String,Types::MethodSnapshot>>
834 835 836 837 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 834 def create_deployment(params = {}, options = {}) req = build_request(:create_deployment, params) req.send_request(options) end |
#create_documentation_part(params = {}) ⇒ Types::DocumentationPart
Creates a documentation part.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_documentation_part({
rest_api_id: "String", # required
location: { # required
type: "API", # required, accepts API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, RESPONSE_BODY
path: "String",
method: "String",
status_code: "DocumentationPartLocationStatusCode",
name: "String",
},
properties: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.location.type #=> String, one of "API", "AUTHORIZER", "MODEL", "RESOURCE", "METHOD", "PATH_PARAMETER", "QUERY_PARAMETER", "REQUEST_HEADER", "REQUEST_BODY", "RESPONSE", "RESPONSE_HEADER", "RESPONSE_BODY"
resp.location.path #=> String
resp.location.method #=> String
resp.location.status_code #=> String
resp.location.name #=> String
resp.properties #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:location
(required, Types::DocumentationPartLocation)
—
The location of the targeted API entity of the to-be-created documentation part.
-
:properties
(required, String)
—
The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
Returns:
-
(Types::DocumentationPart)
—
Returns a response object which responds to the following methods:
- #id => String
- #location => Types::DocumentationPartLocation
- #properties => String
885 886 887 888 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 885 def create_documentation_part(params = {}, options = {}) req = build_request(:create_documentation_part, params) req.send_request(options) end |
#create_documentation_version(params = {}) ⇒ Types::DocumentationVersion
Creates a documentation version
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_documentation_version({
rest_api_id: "String", # required
documentation_version: "String", # required
stage_name: "String",
description: "String",
})
Response structure
Response structure
resp.version #=> String
resp.created_date #=> Time
resp.description #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:documentation_version
(required, String)
—
The version identifier of the new snapshot.
-
:stage_name
(String)
—
The stage name to be associated with the new documentation snapshot.
-
:description
(String)
—
A description about the new documentation snapshot.
Returns:
-
(Types::DocumentationVersion)
—
Returns a response object which responds to the following methods:
- #version => String
- #created_date => Time
- #description => String
927 928 929 930 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 927 def create_documentation_version(params = {}, options = {}) req = build_request(:create_documentation_version, params) req.send_request(options) end |
#create_domain_name(params = {}) ⇒ Types::DomainName
Creates a new domain name.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_domain_name({
domain_name: "String", # required
certificate_name: "String",
certificate_body: "String",
certificate_private_key: "String",
certificate_chain: "String",
certificate_arn: "String",
regional_certificate_name: "String",
regional_certificate_arn: "String",
endpoint_configuration: {
types: ["REGIONAL"], # accepts REGIONAL, EDGE, PRIVATE
ip_address_type: "ipv4", # accepts ipv4, dualstack
vpc_endpoint_ids: ["String"],
},
tags: {
"String" => "String",
},
security_policy: "TLS_1_0", # accepts TLS_1_0, TLS_1_2
mutual_tls_authentication: {
truststore_uri: "String",
truststore_version: "String",
},
ownership_verification_certificate_arn: "String",
policy: "String",
routing_mode: "BASE_PATH_MAPPING_ONLY", # accepts BASE_PATH_MAPPING_ONLY, ROUTING_RULE_ONLY, ROUTING_RULE_THEN_BASE_PATH_MAPPING
})
Response structure
Response structure
resp.domain_name #=> String
resp.domain_name_id #=> String
resp.domain_name_arn #=> String
resp.certificate_name #=> String
resp.certificate_arn #=> String
resp.certificate_upload_date #=> Time
resp.regional_domain_name #=> String
resp.regional_hosted_zone_id #=> String
resp.regional_certificate_name #=> String
resp.regional_certificate_arn #=> String
resp.distribution_domain_name #=> String
resp.distribution_hosted_zone_id #=> String
resp.endpoint_configuration.types #=> Array
resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.endpoint_configuration.vpc_endpoint_ids #=> Array
resp.endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.domain_name_status #=> String, one of "AVAILABLE", "UPDATING", "PENDING", "PENDING_CERTIFICATE_REIMPORT", "PENDING_OWNERSHIP_VERIFICATION"
resp.domain_name_status_message #=> String
resp.security_policy #=> String, one of "TLS_1_0", "TLS_1_2"
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.mutual_tls_authentication.truststore_uri #=> String
resp.mutual_tls_authentication.truststore_version #=> String
resp.mutual_tls_authentication.truststore_warnings #=> Array
resp.mutual_tls_authentication.truststore_warnings[0] #=> String
resp.ownership_verification_certificate_arn #=> String
resp.management_policy #=> String
resp.policy #=> String
resp.routing_mode #=> String, one of "BASE_PATH_MAPPING_ONLY", "ROUTING_RULE_ONLY", "ROUTING_RULE_THEN_BASE_PATH_MAPPING"
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name
(required, String)
—
The name of the DomainName resource.
-
:certificate_name
(String)
—
The user-friendly name of the certificate that will be used by edge-optimized endpoint or private endpoint for this domain name.
-
:certificate_body
(String)
—
[Deprecated] The body of the server certificate that will be used by edge-optimized endpoint or private endpoint for this domain name provided by your certificate authority.
-
:certificate_private_key
(String)
—
[Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
-
:certificate_chain
(String)
—
[Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.
-
:certificate_arn
(String)
—
The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint or private endpoint for this domain name. Certificate Manager is the only supported source.
-
:regional_certificate_name
(String)
—
The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
-
:regional_certificate_arn
(String)
—
The reference to an Amazon Web Services-managed certificate that will be used by regional endpoint for this domain name. Certificate Manager is the only supported source.
-
:endpoint_configuration
(Types::EndpointConfiguration)
—
The endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name.
-
:tags
(Hash<String,String>)
—
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters. -
:security_policy
(String)
—
The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
TLS_1_0
andTLS_1_2
. -
:mutual_tls_authentication
(Types::MutualTlsAuthenticationInput)
—
The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.
-
:ownership_verification_certificate_arn
(String)
—
The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
-
:policy
(String)
—
A stringified JSON policy document that applies to the
execute-api
service for this DomainName regardless of the caller and Method configuration. Supported only for private custom domain names. -
:routing_mode
(String)
—
The routing mode for this domain name. The routing mode determines how API Gateway sends traffic from your custom domain name to your private APIs.
Returns:
-
(Types::DomainName)
—
Returns a response object which responds to the following methods:
- #domain_name => String
- #domain_name_id => String
- #domain_name_arn => String
- #certificate_name => String
- #certificate_arn => String
- #certificate_upload_date => Time
- #regional_domain_name => String
- #regional_hosted_zone_id => String
- #regional_certificate_name => String
- #regional_certificate_arn => String
- #distribution_domain_name => String
- #distribution_hosted_zone_id => String
- #endpoint_configuration => Types::EndpointConfiguration
- #domain_name_status => String
- #domain_name_status_message => String
- #security_policy => String
- #tags => Hash<String,String>
- #mutual_tls_authentication => Types::MutualTlsAuthentication
- #ownership_verification_certificate_arn => String
- #management_policy => String
- #policy => String
- #routing_mode => String
1097 1098 1099 1100 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1097 def create_domain_name(params = {}, options = {}) req = build_request(:create_domain_name, params) req.send_request(options) end |
#create_domain_name_access_association(params = {}) ⇒ Types::DomainNameAccessAssociation
Creates a domain name access association resource between an access association source and a private custom domain name.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_domain_name_access_association({
domain_name_arn: "String", # required
access_association_source_type: "VPCE", # required, accepts VPCE
access_association_source: "String", # required
tags: {
"String" => "String",
},
})
Response structure
Response structure
resp.domain_name_access_association_arn #=> String
resp.domain_name_arn #=> String
resp.access_association_source_type #=> String, one of "VPCE"
resp.access_association_source #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name_arn
(required, String)
—
The ARN of the domain name.
-
:access_association_source_type
(required, String)
—
The type of the domain name access association source.
-
:access_association_source
(required, String)
—
The identifier of the domain name access association source. For a VPCE, the value is the VPC endpoint ID.
-
:tags
(Hash<String,String>)
—
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters.
Returns:
-
(Types::DomainNameAccessAssociation)
—
Returns a response object which responds to the following methods:
- #domain_name_access_association_arn => String
- #domain_name_arn => String
- #access_association_source_type => String
- #access_association_source => String
- #tags => Hash<String,String>
1150 1151 1152 1153 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1150 def create_domain_name_access_association(params = {}, options = {}) req = build_request(:create_domain_name_access_association, params) req.send_request(options) end |
#create_model(params = {}) ⇒ Types::Model
Adds a new Model resource to an existing RestApi resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_model({
rest_api_id: "String", # required
name: "String", # required
description: "String",
schema: "String",
content_type: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.schema #=> String
resp.content_type #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The RestApi identifier under which the Model will be created.
-
:name
(required, String)
—
The name of the model. Must be alphanumeric.
-
:description
(String)
—
The description of the model.
-
:schema
(String)
—
The schema for the model. For
application/json
models, this should be JSON schema draft 4 model. The maximum size of the model is 400 KB. -
:content_type
(required, String)
—
The content-type for the model.
Returns:
-
(Types::Model)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #schema => String
- #content_type => String
1201 1202 1203 1204 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1201 def create_model(params = {}, options = {}) req = build_request(:create_model, params) req.send_request(options) end |
#create_request_validator(params = {}) ⇒ Types::RequestValidator
Creates a RequestValidator of a given RestApi.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_request_validator({
rest_api_id: "String", # required
name: "String",
validate_request_body: false,
validate_request_parameters: false,
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.validate_request_body #=> Boolean
resp.validate_request_parameters #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:name
(String)
—
The name of the to-be-created RequestValidator.
-
:validate_request_body
(Boolean)
—
A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (
true
) or not (false
). -
:validate_request_parameters
(Boolean)
—
A Boolean flag to indicate whether to validate request parameters,
true
, or notfalse
.
Returns:
-
(Types::RequestValidator)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #validate_request_body => Boolean
- #validate_request_parameters => Boolean
1248 1249 1250 1251 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1248 def create_request_validator(params = {}, options = {}) req = build_request(:create_request_validator, params) req.send_request(options) end |
#create_resource(params = {}) ⇒ Types::Resource
Creates a Resource resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_resource({
rest_api_id: "String", # required
parent_id: "String", # required
path_part: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.parent_id #=> String
resp.path_part #=> String
resp.path #=> String
resp.resource_methods #=> Hash
resp.resource_methods["String"].http_method #=> String
resp.resource_methods["String"].authorization_type #=> String
resp.resource_methods["String"].authorizer_id #=> String
resp.resource_methods["String"].api_key_required #=> Boolean
resp.resource_methods["String"].request_validator_id #=> String
resp.resource_methods["String"].operation_name #=> String
resp.resource_methods["String"].request_parameters #=> Hash
resp.resource_methods["String"].request_parameters["String"] #=> Boolean
resp.resource_methods["String"].request_models #=> Hash
resp.resource_methods["String"].request_models["String"] #=> String
resp.resource_methods["String"].method_responses #=> Hash
resp.resource_methods["String"].method_responses["String"].status_code #=> String
resp.resource_methods["String"].method_responses["String"].response_parameters #=> Hash
resp.resource_methods["String"].method_responses["String"].response_parameters["String"] #=> Boolean
resp.resource_methods["String"].method_responses["String"].response_models #=> Hash
resp.resource_methods["String"].method_responses["String"].response_models["String"] #=> String
resp.resource_methods["String"].method_integration.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.resource_methods["String"].method_integration.http_method #=> String
resp.resource_methods["String"].method_integration.uri #=> String
resp.resource_methods["String"].method_integration.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.resource_methods["String"].method_integration.connection_id #=> String
resp.resource_methods["String"].method_integration.credentials #=> String
resp.resource_methods["String"].method_integration.request_parameters #=> Hash
resp.resource_methods["String"].method_integration.request_parameters["String"] #=> String
resp.resource_methods["String"].method_integration.request_templates #=> Hash
resp.resource_methods["String"].method_integration.request_templates["String"] #=> String
resp.resource_methods["String"].method_integration.passthrough_behavior #=> String
resp.resource_methods["String"].method_integration.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.resource_methods["String"].method_integration.timeout_in_millis #=> Integer
resp.resource_methods["String"].method_integration.cache_namespace #=> String
resp.resource_methods["String"].method_integration.cache_key_parameters #=> Array
resp.resource_methods["String"].method_integration.cache_key_parameters[0] #=> String
resp.resource_methods["String"].method_integration.integration_responses #=> Hash
resp.resource_methods["String"].method_integration.integration_responses["String"].status_code #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].selection_pattern #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].response_parameters #=> Hash
resp.resource_methods["String"].method_integration.integration_responses["String"].response_parameters["String"] #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates #=> Hash
resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates["String"] #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.resource_methods["String"].method_integration.tls_config.insecure_skip_verification #=> Boolean
resp.resource_methods["String"].authorization_scopes #=> Array
resp.resource_methods["String"].authorization_scopes[0] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:parent_id
(required, String)
—
The parent resource's identifier.
-
:path_part
(required, String)
—
The last path segment for this resource.
Returns:
-
(Types::Resource)
—
Returns a response object which responds to the following methods:
- #id => String
- #parent_id => String
- #path_part => String
- #path => String
- #resource_methods => Hash<String,Types::Method>
1333 1334 1335 1336 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1333 def create_resource(params = {}, options = {}) req = build_request(:create_resource, params) req.send_request(options) end |
#create_rest_api(params = {}) ⇒ Types::RestApi
Creates a new RestApi resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_rest_api({
name: "String", # required
description: "String",
version: "String",
clone_from: "String",
binary_media_types: ["String"],
minimum_compression_size: 1,
api_key_source: "HEADER", # accepts HEADER, AUTHORIZER
endpoint_configuration: {
types: ["REGIONAL"], # accepts REGIONAL, EDGE, PRIVATE
ip_address_type: "ipv4", # accepts ipv4, dualstack
vpc_endpoint_ids: ["String"],
},
policy: "String",
tags: {
"String" => "String",
},
disable_execute_api_endpoint: false,
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.created_date #=> Time
resp.version #=> String
resp.warnings #=> Array
resp.warnings[0] #=> String
resp.binary_media_types #=> Array
resp.binary_media_types[0] #=> String
resp.minimum_compression_size #=> Integer
resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
resp.endpoint_configuration.types #=> Array
resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.endpoint_configuration.vpc_endpoint_ids #=> Array
resp.endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.policy #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.disable_execute_api_endpoint #=> Boolean
resp.root_resource_id #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:name
(required, String)
—
The name of the RestApi.
-
:description
(String)
—
The description of the RestApi.
-
:version
(String)
—
A version identifier for the API.
-
:clone_from
(String)
—
The ID of the RestApi that you want to clone from.
-
:binary_media_types
(Array<String>)
—
The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.
-
:minimum_compression_size
(Integer)
—
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
-
:api_key_source
(String)
—
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER
to read the API key from theX-API-Key
header of a request.AUTHORIZER
to read the API key from theUsageIdentifierKey
from a custom authorizer. -
:endpoint_configuration
(Types::EndpointConfiguration)
—
The endpoint configuration of this RestApi showing the endpoint types and IP address types of the API.
-
:policy
(String)
—
A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
-
:tags
(Hash<String,String>)
—
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters. -
:disable_execute_api_endpoint
(Boolean)
—
Specifies whether clients can invoke your API by using the default
execute-api
endpoint. By default, clients can invoke your API with the defaulthttps://{api_id}.execute-api.{region}.amazonaws.com
endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint
Returns:
-
(Types::RestApi)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #created_date => Time
- #version => String
- #warnings => Array<String>
- #binary_media_types => Array<String>
- #minimum_compression_size => Integer
- #api_key_source => String
- #endpoint_configuration => Types::EndpointConfiguration
- #policy => String
- #tags => Hash<String,String>
- #disable_execute_api_endpoint => Boolean
- #root_resource_id => String
1455 1456 1457 1458 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1455 def create_rest_api(params = {}, options = {}) req = build_request(:create_rest_api, params) req.send_request(options) end |
#create_stage(params = {}) ⇒ Types::Stage
Creates a new Stage resource that references a pre-existing Deployment for the API.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_stage({
rest_api_id: "String", # required
stage_name: "String", # required
deployment_id: "String", # required
description: "String",
cache_cluster_enabled: false,
cache_cluster_size: "0.5", # accepts 0.5, 1.6, 6.1, 13.5, 28.4, 58.2, 118, 237
variables: {
"String" => "String",
},
documentation_version: "String",
canary_settings: {
percent_traffic: 1.0,
deployment_id: "String",
stage_variable_overrides: {
"String" => "String",
},
use_stage_cache: false,
},
tracing_enabled: false,
tags: {
"String" => "String",
},
})
Response structure
Response structure
resp.deployment_id #=> String
resp.client_certificate_id #=> String
resp.stage_name #=> String
resp.description #=> String
resp.cache_cluster_enabled #=> Boolean
resp.cache_cluster_size #=> String, one of "0.5", "1.6", "6.1", "13.5", "28.4", "58.2", "118", "237"
resp.cache_cluster_status #=> String, one of "CREATE_IN_PROGRESS", "AVAILABLE", "DELETE_IN_PROGRESS", "NOT_AVAILABLE", "FLUSH_IN_PROGRESS"
resp.method_settings #=> Hash
resp.method_settings["String"].metrics_enabled #=> Boolean
resp.method_settings["String"].logging_level #=> String
resp.method_settings["String"].data_trace_enabled #=> Boolean
resp.method_settings["String"].throttling_burst_limit #=> Integer
resp.method_settings["String"].throttling_rate_limit #=> Float
resp.method_settings["String"].caching_enabled #=> Boolean
resp.method_settings["String"].cache_ttl_in_seconds #=> Integer
resp.method_settings["String"].cache_data_encrypted #=> Boolean
resp.method_settings["String"].require_authorization_for_cache_control #=> Boolean
resp.method_settings["String"].unauthorized_cache_control_header_strategy #=> String, one of "FAIL_WITH_403", "SUCCEED_WITH_RESPONSE_HEADER", "SUCCEED_WITHOUT_RESPONSE_HEADER"
resp.variables #=> Hash
resp.variables["String"] #=> String
resp.documentation_version #=> String
resp.access_log_settings.format #=> String
resp.access_log_settings.destination_arn #=> String
resp.canary_settings.percent_traffic #=> Float
resp.canary_settings.deployment_id #=> String
resp.canary_settings.stage_variable_overrides #=> Hash
resp.canary_settings.stage_variable_overrides["String"] #=> String
resp.canary_settings.use_stage_cache #=> Boolean
resp.tracing_enabled #=> Boolean
resp.web_acl_arn #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.created_date #=> Time
resp.last_updated_date #=> Time
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage_name
(required, String)
—
The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
-
:deployment_id
(required, String)
—
The identifier of the Deployment resource for the Stage resource.
-
:description
(String)
—
The description of the Stage resource.
-
:cache_cluster_enabled
(Boolean)
—
Whether cache clustering is enabled for the stage.
-
:cache_cluster_size
(String)
—
The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
-
:variables
(Hash<String,String>)
—
A map that defines the stage variables for the new Stage resource. Variable names can have alphanumeric and underscore characters, and the values must match
[A-Za-z0-9-._~:/?#&=,]+
. -
:documentation_version
(String)
—
The version of the associated API documentation.
-
:canary_settings
(Types::CanarySettings)
—
The canary deployment settings of this stage.
-
:tracing_enabled
(Boolean)
—
Specifies whether active tracing with X-ray is enabled for the Stage.
-
:tags
(Hash<String,String>)
—
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters.
Returns:
-
(Types::Stage)
—
Returns a response object which responds to the following methods:
- #deployment_id => String
- #client_certificate_id => String
- #stage_name => String
- #description => String
- #cache_cluster_enabled => Boolean
- #cache_cluster_size => String
- #cache_cluster_status => String
- #method_settings => Hash<String,Types::MethodSetting>
- #variables => Hash<String,String>
- #documentation_version => String
- #access_log_settings => Types::AccessLogSettings
- #canary_settings => Types::CanarySettings
- #tracing_enabled => Boolean
- #web_acl_arn => String
- #tags => Hash<String,String>
- #created_date => Time
- #last_updated_date => Time
1593 1594 1595 1596 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1593 def create_stage(params = {}, options = {}) req = build_request(:create_stage, params) req.send_request(options) end |
#create_usage_plan(params = {}) ⇒ Types::UsagePlan
Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_usage_plan({
name: "String", # required
description: "String",
api_stages: [
{
api_id: "String",
stage: "String",
throttle: {
"String" => {
burst_limit: 1,
rate_limit: 1.0,
},
},
},
],
throttle: {
burst_limit: 1,
rate_limit: 1.0,
},
quota: {
limit: 1,
offset: 1,
period: "DAY", # accepts DAY, WEEK, MONTH
},
tags: {
"String" => "String",
},
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.api_stages #=> Array
resp.api_stages[0].api_id #=> String
resp.api_stages[0].stage #=> String
resp.api_stages[0].throttle #=> Hash
resp.api_stages[0].throttle["String"].burst_limit #=> Integer
resp.api_stages[0].throttle["String"].rate_limit #=> Float
resp.throttle.burst_limit #=> Integer
resp.throttle.rate_limit #=> Float
resp.quota.limit #=> Integer
resp.quota.offset #=> Integer
resp.quota.period #=> String, one of "DAY", "WEEK", "MONTH"
resp.product_code #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:name
(required, String)
—
The name of the usage plan.
-
:description
(String)
—
The description of the usage plan.
-
:api_stages
(Array<Types::ApiStage>)
—
The associated API stages of the usage plan.
-
:throttle
(Types::ThrottleSettings)
—
The throttling limits of the usage plan.
-
:quota
(Types::QuotaSettings)
—
The quota of the usage plan.
-
:tags
(Hash<String,String>)
—
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters.
Returns:
-
(Types::UsagePlan)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #api_stages => Array<Types::ApiStage>
- #throttle => Types::ThrottleSettings
- #quota => Types::QuotaSettings
- #product_code => String
- #tags => Hash<String,String>
1685 1686 1687 1688 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1685 def create_usage_plan(params = {}, options = {}) req = build_request(:create_usage_plan, params) req.send_request(options) end |
#create_usage_plan_key(params = {}) ⇒ Types::UsagePlanKey
Creates a usage plan key for adding an existing API key to a usage plan.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_usage_plan_key({
usage_plan_id: "String", # required
key_id: "String", # required
key_type: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.type #=> String
resp.value #=> String
resp.name #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:usage_plan_id
(required, String)
—
The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.
-
:key_id
(required, String)
—
The identifier of a UsagePlanKey resource for a plan customer.
-
:key_type
(required, String)
—
The type of a UsagePlanKey resource for a plan customer.
Returns:
1728 1729 1730 1731 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1728 def create_usage_plan_key(params = {}, options = {}) req = build_request(:create_usage_plan_key, params) req.send_request(options) end |
#create_vpc_link(params = {}) ⇒ Types::VpcLink
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.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_vpc_link({
name: "String", # required
description: "String",
target_arns: ["String"], # required
tags: {
"String" => "String",
},
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.target_arns #=> Array
resp.target_arns[0] #=> String
resp.status #=> String, one of "AVAILABLE", "PENDING", "DELETING", "FAILED"
resp.status_message #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:name
(required, String)
—
The name used to label and identify the VPC link.
-
:description
(String)
—
The description of the VPC link.
-
:target_arns
(required, Array<String>)
—
The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same Amazon Web Services account of the API owner.
-
:tags
(Hash<String,String>)
—
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters.
Returns:
-
(Types::VpcLink)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #target_arns => Array<String>
- #status => String
- #status_message => String
- #tags => Hash<String,String>
1789 1790 1791 1792 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1789 def create_vpc_link(params = {}, options = {}) req = build_request(:create_vpc_link, params) req.send_request(options) end |
#delete_api_key(params = {}) ⇒ Struct
Deletes the ApiKey resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_api_key({
api_key: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:api_key
(required, String)
—
The identifier of the ApiKey resource to be deleted.
Returns:
-
(Struct)
—
Returns an empty response.
1809 1810 1811 1812 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1809 def delete_api_key(params = {}, options = {}) req = build_request(:delete_api_key, params) req.send_request(options) end |
#delete_authorizer(params = {}) ⇒ Struct
Deletes an existing Authorizer resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_authorizer({
rest_api_id: "String", # required
authorizer_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:authorizer_id
(required, String)
—
The identifier of the Authorizer resource.
Returns:
-
(Struct)
—
Returns an empty response.
1833 1834 1835 1836 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1833 def delete_authorizer(params = {}, options = {}) req = build_request(:delete_authorizer, params) req.send_request(options) end |
#delete_base_path_mapping(params = {}) ⇒ Struct
Deletes the BasePathMapping resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_base_path_mapping({
domain_name: "String", # required
domain_name_id: "String",
base_path: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name
(required, String)
—
The domain name of the BasePathMapping resource to delete.
-
:domain_name_id
(String)
—
The identifier for the domain name resource. Supported only for private custom domain names.
-
:base_path
(required, String)
—
The base path name of the BasePathMapping resource to delete.
To specify an empty base path, set this parameter to
'(none)'
.
Returns:
-
(Struct)
—
Returns an empty response.
1864 1865 1866 1867 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1864 def delete_base_path_mapping(params = {}, options = {}) req = build_request(:delete_base_path_mapping, params) req.send_request(options) end |
#delete_client_certificate(params = {}) ⇒ Struct
Deletes the ClientCertificate resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_client_certificate({
client_certificate_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:client_certificate_id
(required, String)
—
The identifier of the ClientCertificate resource to be deleted.
Returns:
-
(Struct)
—
Returns an empty response.
1884 1885 1886 1887 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1884 def delete_client_certificate(params = {}, options = {}) req = build_request(:delete_client_certificate, params) req.send_request(options) end |
#delete_deployment(params = {}) ⇒ Struct
Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_deployment({
rest_api_id: "String", # required
deployment_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:deployment_id
(required, String)
—
The identifier of the Deployment resource to delete.
Returns:
-
(Struct)
—
Returns an empty response.
1909 1910 1911 1912 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1909 def delete_deployment(params = {}, options = {}) req = build_request(:delete_deployment, params) req.send_request(options) end |
#delete_documentation_part(params = {}) ⇒ Struct
Deletes a documentation part
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_documentation_part({
rest_api_id: "String", # required
documentation_part_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:documentation_part_id
(required, String)
—
The identifier of the to-be-deleted documentation part.
Returns:
-
(Struct)
—
Returns an empty response.
1933 1934 1935 1936 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1933 def delete_documentation_part(params = {}, options = {}) req = build_request(:delete_documentation_part, params) req.send_request(options) end |
#delete_documentation_version(params = {}) ⇒ Struct
Deletes a documentation version.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_documentation_version({
rest_api_id: "String", # required
documentation_version: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:documentation_version
(required, String)
—
The version identifier of a to-be-deleted documentation snapshot.
Returns:
-
(Struct)
—
Returns an empty response.
1957 1958 1959 1960 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1957 def delete_documentation_version(params = {}, options = {}) req = build_request(:delete_documentation_version, params) req.send_request(options) end |
#delete_domain_name(params = {}) ⇒ Struct
Deletes the DomainName resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_domain_name({
domain_name: "String", # required
domain_name_id: "String",
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name
(required, String)
—
The name of the DomainName resource to be deleted.
-
:domain_name_id
(String)
—
The identifier for the domain name resource. Supported only for private custom domain names.
Returns:
-
(Struct)
—
Returns an empty response.
1982 1983 1984 1985 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 1982 def delete_domain_name(params = {}, options = {}) req = build_request(:delete_domain_name, params) req.send_request(options) end |
#delete_domain_name_access_association(params = {}) ⇒ Struct
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.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_domain_name_access_association({
domain_name_access_association_arn: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name_access_association_arn
(required, String)
—
The ARN of the domain name access association resource.
Returns:
-
(Struct)
—
Returns an empty response.
2007 2008 2009 2010 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2007 def delete_domain_name_access_association(params = {}, options = {}) req = build_request(:delete_domain_name_access_association, params) req.send_request(options) end |
#delete_gateway_response(params = {}) ⇒ Struct
Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_gateway_response({
rest_api_id: "String", # required
response_type: "DEFAULT_4XX", # required, accepts DEFAULT_4XX, DEFAULT_5XX, RESOURCE_NOT_FOUND, UNAUTHORIZED, INVALID_API_KEY, ACCESS_DENIED, AUTHORIZER_FAILURE, AUTHORIZER_CONFIGURATION_ERROR, INVALID_SIGNATURE, EXPIRED_TOKEN, MISSING_AUTHENTICATION_TOKEN, INTEGRATION_FAILURE, INTEGRATION_TIMEOUT, API_CONFIGURATION_ERROR, UNSUPPORTED_MEDIA_TYPE, BAD_REQUEST_PARAMETERS, BAD_REQUEST_BODY, REQUEST_TOO_LARGE, THROTTLED, QUOTA_EXCEEDED, WAF_FILTERED
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:response_type
(required, String)
—
The response type of the associated GatewayResponse.
Returns:
-
(Struct)
—
Returns an empty response.
2032 2033 2034 2035 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2032 def delete_gateway_response(params = {}, options = {}) req = build_request(:delete_gateway_response, params) req.send_request(options) end |
#delete_integration(params = {}) ⇒ Struct
Represents a delete integration.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_integration({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
Specifies a delete integration request's resource identifier.
-
:http_method
(required, String)
—
Specifies a delete integration request's HTTP method.
Returns:
-
(Struct)
—
Returns an empty response.
2060 2061 2062 2063 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2060 def delete_integration(params = {}, options = {}) req = build_request(:delete_integration, params) req.send_request(options) end |
#delete_integration_response(params = {}) ⇒ Struct
Represents a delete integration response.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_integration_response({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
status_code: "StatusCode", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
Specifies a delete integration response request's resource identifier.
-
:http_method
(required, String)
—
Specifies a delete integration response request's HTTP method.
-
:status_code
(required, String)
—
Specifies a delete integration response request's status code.
Returns:
-
(Struct)
—
Returns an empty response.
2093 2094 2095 2096 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2093 def delete_integration_response(params = {}, options = {}) req = build_request(:delete_integration_response, params) req.send_request(options) end |
#delete_method(params = {}) ⇒ Struct
Deletes an existing Method resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_method({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The Resource identifier for the Method resource.
-
:http_method
(required, String)
—
The HTTP verb of the Method resource.
Returns:
-
(Struct)
—
Returns an empty response.
2121 2122 2123 2124 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2121 def delete_method(params = {}, options = {}) req = build_request(:delete_method, params) req.send_request(options) end |
#delete_method_response(params = {}) ⇒ Struct
Deletes an existing MethodResponse resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_method_response({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
status_code: "StatusCode", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The Resource identifier for the MethodResponse resource.
-
:http_method
(required, String)
—
The HTTP verb of the Method resource.
-
:status_code
(required, String)
—
The status code identifier for the MethodResponse resource.
Returns:
-
(Struct)
—
Returns an empty response.
2153 2154 2155 2156 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2153 def delete_method_response(params = {}, options = {}) req = build_request(:delete_method_response, params) req.send_request(options) end |
#delete_model(params = {}) ⇒ Struct
Deletes a model.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_model({
rest_api_id: "String", # required
model_name: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:model_name
(required, String)
—
The name of the model to delete.
Returns:
-
(Struct)
—
Returns an empty response.
2177 2178 2179 2180 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2177 def delete_model(params = {}, options = {}) req = build_request(:delete_model, params) req.send_request(options) end |
#delete_request_validator(params = {}) ⇒ Struct
Deletes a RequestValidator of a given RestApi.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_request_validator({
rest_api_id: "String", # required
request_validator_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:request_validator_id
(required, String)
—
The identifier of the RequestValidator to be deleted.
Returns:
-
(Struct)
—
Returns an empty response.
2201 2202 2203 2204 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2201 def delete_request_validator(params = {}, options = {}) req = build_request(:delete_request_validator, params) req.send_request(options) end |
#delete_resource(params = {}) ⇒ Struct
Deletes a Resource resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_resource({
rest_api_id: "String", # required
resource_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The identifier of the Resource resource.
Returns:
-
(Struct)
—
Returns an empty response.
2225 2226 2227 2228 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2225 def delete_resource(params = {}, options = {}) req = build_request(:delete_resource, params) req.send_request(options) end |
#delete_rest_api(params = {}) ⇒ Struct
Deletes the specified API.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_rest_api({
rest_api_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
Returns:
-
(Struct)
—
Returns an empty response.
2245 2246 2247 2248 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2245 def delete_rest_api(params = {}, options = {}) req = build_request(:delete_rest_api, params) req.send_request(options) end |
#delete_stage(params = {}) ⇒ Struct
Deletes a Stage resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_stage({
rest_api_id: "String", # required
stage_name: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage_name
(required, String)
—
The name of the Stage resource to delete.
Returns:
-
(Struct)
—
Returns an empty response.
2269 2270 2271 2272 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2269 def delete_stage(params = {}, options = {}) req = build_request(:delete_stage, params) req.send_request(options) end |
#delete_usage_plan(params = {}) ⇒ Struct
Deletes a usage plan of a given plan Id.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_usage_plan({
usage_plan_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:usage_plan_id
(required, String)
—
The Id of the to-be-deleted usage plan.
Returns:
-
(Struct)
—
Returns an empty response.
2289 2290 2291 2292 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2289 def delete_usage_plan(params = {}, options = {}) req = build_request(:delete_usage_plan, params) req.send_request(options) end |
#delete_usage_plan_key(params = {}) ⇒ Struct
Deletes a usage plan key and remove the underlying API key from the associated usage plan.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_usage_plan_key({
usage_plan_id: "String", # required
key_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:usage_plan_id
(required, String)
—
The Id of the UsagePlan resource representing the usage plan containing the to-be-deleted UsagePlanKey resource representing a plan customer.
-
:key_id
(required, String)
—
The Id of the UsagePlanKey resource to be deleted.
Returns:
-
(Struct)
—
Returns an empty response.
2316 2317 2318 2319 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2316 def delete_usage_plan_key(params = {}, options = {}) req = build_request(:delete_usage_plan_key, params) req.send_request(options) end |
#delete_vpc_link(params = {}) ⇒ Struct
Deletes an existing VpcLink of a specified identifier.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.delete_vpc_link({
vpc_link_id: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:vpc_link_id
(required, String)
—
The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.
Returns:
-
(Struct)
—
Returns an empty response.
2337 2338 2339 2340 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2337 def delete_vpc_link(params = {}, options = {}) req = build_request(:delete_vpc_link, params) req.send_request(options) end |
#flush_stage_authorizers_cache(params = {}) ⇒ Struct
Flushes all authorizer cache entries on a stage.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.flush_stage_authorizers_cache({
rest_api_id: "String", # required
stage_name: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage_name
(required, String)
—
The name of the stage to flush.
Returns:
-
(Struct)
—
Returns an empty response.
2361 2362 2363 2364 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2361 def flush_stage_authorizers_cache(params = {}, options = {}) req = build_request(:flush_stage_authorizers_cache, params) req.send_request(options) end |
#flush_stage_cache(params = {}) ⇒ Struct
Flushes a stage's cache.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.flush_stage_cache({
rest_api_id: "String", # required
stage_name: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage_name
(required, String)
—
The name of the stage to flush its cache.
Returns:
-
(Struct)
—
Returns an empty response.
2385 2386 2387 2388 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2385 def flush_stage_cache(params = {}, options = {}) req = build_request(:flush_stage_cache, params) req.send_request(options) end |
#generate_client_certificate(params = {}) ⇒ Types::ClientCertificate
Generates a ClientCertificate resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.generate_client_certificate({
description: "String",
tags: {
"String" => "String",
},
})
Response structure
Response structure
resp.client_certificate_id #=> String
resp.description #=> String
resp.pem_encoded_certificate #=> String
resp.created_date #=> Time
resp.expiration_date #=> Time
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:description
(String)
—
The description of the ClientCertificate.
-
:tags
(Hash<String,String>)
—
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters.
Returns:
-
(Types::ClientCertificate)
—
Returns a response object which responds to the following methods:
- #client_certificate_id => String
- #description => String
- #pem_encoded_certificate => String
- #created_date => Time
- #expiration_date => Time
- #tags => Hash<String,String>
2430 2431 2432 2433 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2430 def generate_client_certificate(params = {}, options = {}) req = build_request(:generate_client_certificate, params) req.send_request(options) end |
#get_account(params = {}) ⇒ Types::Account
Gets information about the current Account resource.
Examples:
Response structure
Response structure
resp.cloudwatch_role_arn #=> String
resp.throttle_settings.burst_limit #=> Integer
resp.throttle_settings.rate_limit #=> Float
resp.features #=> Array
resp.features[0] #=> String
resp.api_key_version #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Returns:
-
(Types::Account)
—
Returns a response object which responds to the following methods:
- #cloudwatch_role_arn => String
- #throttle_settings => Types::ThrottleSettings
- #features => Array<String>
- #api_key_version => String
2455 2456 2457 2458 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2455 def get_account(params = {}, options = {}) req = build_request(:get_account, params) req.send_request(options) end |
#get_api_key(params = {}) ⇒ Types::ApiKey
Gets information about the current ApiKey resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_api_key({
api_key: "String", # required
include_value: false,
})
Response structure
Response structure
resp.id #=> String
resp.value #=> String
resp.name #=> String
resp.customer_id #=> String
resp.description #=> String
resp.enabled #=> Boolean
resp.created_date #=> Time
resp.last_updated_date #=> Time
resp.stage_keys #=> Array
resp.stage_keys[0] #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:api_key
(required, String)
—
The identifier of the ApiKey resource.
-
:include_value
(Boolean)
—
A boolean flag to specify whether (
true
) or not (false
) the result contains the key value.
Returns:
-
(Types::ApiKey)
—
Returns a response object which responds to the following methods:
- #id => String
- #value => String
- #name => String
- #customer_id => String
- #description => String
- #enabled => Boolean
- #created_date => Time
- #last_updated_date => Time
- #stage_keys => Array<String>
- #tags => Hash<String,String>
2506 2507 2508 2509 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2506 def get_api_key(params = {}, options = {}) req = build_request(:get_api_key, params) req.send_request(options) end |
#get_api_keys(params = {}) ⇒ Types::ApiKeys
Gets information about the current ApiKeys resource.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_api_keys({
position: "String",
limit: 1,
name_query: "String",
customer_id: "String",
include_values: false,
})
Response structure
Response structure
resp.warnings #=> Array
resp.warnings[0] #=> String
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].value #=> String
resp.items[0].name #=> String
resp.items[0].customer_id #=> String
resp.items[0].description #=> String
resp.items[0].enabled #=> Boolean
resp.items[0].created_date #=> Time
resp.items[0].last_updated_date #=> Time
resp.items[0].stage_keys #=> Array
resp.items[0].stage_keys[0] #=> String
resp.items[0].tags #=> Hash
resp.items[0].tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
-
:name_query
(String)
—
The name of queried API keys.
-
:customer_id
(String)
—
The identifier of a customer in Amazon Web Services Marketplace or an external system, such as a developer portal.
-
:include_values
(Boolean)
—
A boolean flag to specify whether (
true
) or not (false
) the result contains key values.
Returns:
- (Types::ApiKeys) —
2570 2571 2572 2573 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2570 def get_api_keys(params = {}, options = {}) req = build_request(:get_api_keys, params) req.send_request(options) end |
#get_authorizer(params = {}) ⇒ Types::Authorizer
Describe an existing Authorizer resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_authorizer({
rest_api_id: "String", # required
authorizer_id: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS"
resp.provider_arns #=> Array
resp.provider_arns[0] #=> String
resp.auth_type #=> String
resp.authorizer_uri #=> String
resp.authorizer_credentials #=> String
resp.identity_source #=> String
resp.identity_validation_expression #=> String
resp.authorizer_result_ttl_in_seconds #=> Integer
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:authorizer_id
(required, String)
—
The identifier of the Authorizer resource.
Returns:
-
(Types::Authorizer)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #type => String
- #provider_arns => Array<String>
- #auth_type => String
- #authorizer_uri => String
- #authorizer_credentials => String
- #identity_source => String
- #identity_validation_expression => String
- #authorizer_result_ttl_in_seconds => Integer
2619 2620 2621 2622 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2619 def get_authorizer(params = {}, options = {}) req = build_request(:get_authorizer, params) req.send_request(options) end |
#get_authorizers(params = {}) ⇒ Types::Authorizers
Describe an existing Authorizers resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_authorizers({
rest_api_id: "String", # required
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].name #=> String
resp.items[0].type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS"
resp.items[0].provider_arns #=> Array
resp.items[0].provider_arns[0] #=> String
resp.items[0].auth_type #=> String
resp.items[0].authorizer_uri #=> String
resp.items[0].authorizer_credentials #=> String
resp.items[0].identity_source #=> String
resp.items[0].identity_validation_expression #=> String
resp.items[0].authorizer_result_ttl_in_seconds #=> Integer
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
2667 2668 2669 2670 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2667 def get_authorizers(params = {}, options = {}) req = build_request(:get_authorizers, params) req.send_request(options) end |
#get_base_path_mapping(params = {}) ⇒ Types::BasePathMapping
Describe a BasePathMapping resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_base_path_mapping({
domain_name: "String", # required
domain_name_id: "String",
base_path: "String", # required
})
Response structure
Response structure
resp.base_path #=> String
resp.rest_api_id #=> String
resp.stage #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name
(required, String)
—
The domain name of the BasePathMapping resource to be described.
-
:domain_name_id
(String)
—
The identifier for the domain name resource. Supported only for private custom domain names.
-
:base_path
(required, String)
—
The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify any base path name after the domain name.
Returns:
-
(Types::BasePathMapping)
—
Returns a response object which responds to the following methods:
- #base_path => String
- #rest_api_id => String
- #stage => String
2709 2710 2711 2712 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2709 def get_base_path_mapping(params = {}, options = {}) req = build_request(:get_base_path_mapping, params) req.send_request(options) end |
#get_base_path_mappings(params = {}) ⇒ Types::BasePathMappings
Represents a collection of BasePathMapping resources.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_base_path_mappings({
domain_name: "String", # required
domain_name_id: "String",
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].base_path #=> String
resp.items[0].rest_api_id #=> String
resp.items[0].stage #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name
(required, String)
—
The domain name of a BasePathMapping resource.
-
:domain_name_id
(String)
—
The identifier for the domain name resource. Supported only for private custom domain names.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
2756 2757 2758 2759 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2756 def get_base_path_mappings(params = {}, options = {}) req = build_request(:get_base_path_mappings, params) req.send_request(options) end |
#get_client_certificate(params = {}) ⇒ Types::ClientCertificate
Gets information about the current ClientCertificate resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_client_certificate({
client_certificate_id: "String", # required
})
Response structure
Response structure
resp.client_certificate_id #=> String
resp.description #=> String
resp.pem_encoded_certificate #=> String
resp.created_date #=> Time
resp.expiration_date #=> Time
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:client_certificate_id
(required, String)
—
The identifier of the ClientCertificate resource to be described.
Returns:
-
(Types::ClientCertificate)
—
Returns a response object which responds to the following methods:
- #client_certificate_id => String
- #description => String
- #pem_encoded_certificate => String
- #created_date => Time
- #expiration_date => Time
- #tags => Hash<String,String>
2793 2794 2795 2796 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2793 def get_client_certificate(params = {}, options = {}) req = build_request(:get_client_certificate, params) req.send_request(options) end |
#get_client_certificates(params = {}) ⇒ Types::ClientCertificates
Gets a collection of ClientCertificate resources.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_client_certificates({
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].client_certificate_id #=> String
resp.items[0].description #=> String
resp.items[0].pem_encoded_certificate #=> String
resp.items[0].created_date #=> Time
resp.items[0].expiration_date #=> Time
resp.items[0].tags #=> Hash
resp.items[0].tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
2835 2836 2837 2838 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2835 def get_client_certificates(params = {}, options = {}) req = build_request(:get_client_certificates, params) req.send_request(options) end |
#get_deployment(params = {}) ⇒ Types::Deployment
Gets information about a Deployment resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_deployment({
rest_api_id: "String", # required
deployment_id: "String", # required
embed: ["String"],
})
Response structure
Response structure
resp.id #=> String
resp.description #=> String
resp.created_date #=> Time
resp.api_summary #=> Hash
resp.api_summary["String"] #=> Hash
resp.api_summary["String"]["String"].authorization_type #=> String
resp.api_summary["String"]["String"].api_key_required #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:deployment_id
(required, String)
—
The identifier of the Deployment resource to get information about.
-
:embed
(Array<String>)
—
A query parameter to retrieve the specified embedded resources of the returned Deployment resource in the response. In a REST API call, this
embed
parameter value is a list of comma-separated strings, as inGET /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2
. The SDK and other platform-dependent libraries might use a different format for the list. Currently, this request supports only retrieval of the embedded API summary this way. Hence, the parameter value must be a single-valued list containing only the"apisummary"
string. For example,GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary
.
Returns:
-
(Types::Deployment)
—
Returns a response object which responds to the following methods:
- #id => String
- #description => String
- #created_date => Time
- #api_summary => Hash<String,Hash<String,Types::MethodSnapshot>>
2888 2889 2890 2891 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2888 def get_deployment(params = {}, options = {}) req = build_request(:get_deployment, params) req.send_request(options) end |
#get_deployments(params = {}) ⇒ Types::Deployments
Gets information about a Deployments collection.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_deployments({
rest_api_id: "String", # required
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].description #=> String
resp.items[0].created_date #=> Time
resp.items[0].api_summary #=> Hash
resp.items[0].api_summary["String"] #=> Hash
resp.items[0].api_summary["String"]["String"].authorization_type #=> String
resp.items[0].api_summary["String"]["String"].api_key_required #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
2934 2935 2936 2937 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2934 def get_deployments(params = {}, options = {}) req = build_request(:get_deployments, params) req.send_request(options) end |
#get_documentation_part(params = {}) ⇒ Types::DocumentationPart
Gets a documentation part.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_documentation_part({
rest_api_id: "String", # required
documentation_part_id: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.location.type #=> String, one of "API", "AUTHORIZER", "MODEL", "RESOURCE", "METHOD", "PATH_PARAMETER", "QUERY_PARAMETER", "REQUEST_HEADER", "REQUEST_BODY", "RESPONSE", "RESPONSE_HEADER", "RESPONSE_BODY"
resp.location.path #=> String
resp.location.method #=> String
resp.location.status_code #=> String
resp.location.name #=> String
resp.properties #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:documentation_part_id
(required, String)
—
The string identifier of the associated RestApi.
Returns:
-
(Types::DocumentationPart)
—
Returns a response object which responds to the following methods:
- #id => String
- #location => Types::DocumentationPartLocation
- #properties => String
2972 2973 2974 2975 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 2972 def get_documentation_part(params = {}, options = {}) req = build_request(:get_documentation_part, params) req.send_request(options) end |
#get_documentation_parts(params = {}) ⇒ Types::DocumentationParts
Gets documentation parts.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_documentation_parts({
rest_api_id: "String", # required
type: "API", # accepts API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, RESPONSE_BODY
name_query: "String",
path: "String",
position: "String",
limit: 1,
location_status: "DOCUMENTED", # accepts DOCUMENTED, UNDOCUMENTED
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].location.type #=> String, one of "API", "AUTHORIZER", "MODEL", "RESOURCE", "METHOD", "PATH_PARAMETER", "QUERY_PARAMETER", "REQUEST_HEADER", "REQUEST_BODY", "RESPONSE", "RESPONSE_HEADER", "RESPONSE_BODY"
resp.items[0].location.path #=> String
resp.items[0].location.method #=> String
resp.items[0].location.status_code #=> String
resp.items[0].location.name #=> String
resp.items[0].properties #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:type
(String)
—
The type of API entities of the to-be-retrieved documentation parts.
-
:name_query
(String)
—
The name of API entities of the to-be-retrieved documentation parts.
-
:path
(String)
—
The path of API entities of the to-be-retrieved documentation parts.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
-
:location_status
(String)
—
The status of the API documentation parts to retrieve. Valid values are
DOCUMENTED
for retrieving DocumentationPart resources with content andUNDOCUMENTED
for DocumentationPart resources without content.
Returns:
3035 3036 3037 3038 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3035 def get_documentation_parts(params = {}, options = {}) req = build_request(:get_documentation_parts, params) req.send_request(options) end |
#get_documentation_version(params = {}) ⇒ Types::DocumentationVersion
Gets a documentation version.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_documentation_version({
rest_api_id: "String", # required
documentation_version: "String", # required
})
Response structure
Response structure
resp.version #=> String
resp.created_date #=> Time
resp.description #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:documentation_version
(required, String)
—
The version identifier of the to-be-retrieved documentation snapshot.
Returns:
-
(Types::DocumentationVersion)
—
Returns a response object which responds to the following methods:
- #version => String
- #created_date => Time
- #description => String
3069 3070 3071 3072 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3069 def get_documentation_version(params = {}, options = {}) req = build_request(:get_documentation_version, params) req.send_request(options) end |
#get_documentation_versions(params = {}) ⇒ Types::DocumentationVersions
Gets documentation versions.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_documentation_versions({
rest_api_id: "String", # required
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].version #=> String
resp.items[0].created_date #=> Time
resp.items[0].description #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
3109 3110 3111 3112 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3109 def get_documentation_versions(params = {}, options = {}) req = build_request(:get_documentation_versions, params) req.send_request(options) end |
#get_domain_name(params = {}) ⇒ Types::DomainName
Represents a domain name that is contained in a simpler, more intuitive URL that can be called.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_domain_name({
domain_name: "String", # required
domain_name_id: "String",
})
Response structure
Response structure
resp.domain_name #=> String
resp.domain_name_id #=> String
resp.domain_name_arn #=> String
resp.certificate_name #=> String
resp.certificate_arn #=> String
resp.certificate_upload_date #=> Time
resp.regional_domain_name #=> String
resp.regional_hosted_zone_id #=> String
resp.regional_certificate_name #=> String
resp.regional_certificate_arn #=> String
resp.distribution_domain_name #=> String
resp.distribution_hosted_zone_id #=> String
resp.endpoint_configuration.types #=> Array
resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.endpoint_configuration.vpc_endpoint_ids #=> Array
resp.endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.domain_name_status #=> String, one of "AVAILABLE", "UPDATING", "PENDING", "PENDING_CERTIFICATE_REIMPORT", "PENDING_OWNERSHIP_VERIFICATION"
resp.domain_name_status_message #=> String
resp.security_policy #=> String, one of "TLS_1_0", "TLS_1_2"
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.mutual_tls_authentication.truststore_uri #=> String
resp.mutual_tls_authentication.truststore_version #=> String
resp.mutual_tls_authentication.truststore_warnings #=> Array
resp.mutual_tls_authentication.truststore_warnings[0] #=> String
resp.ownership_verification_certificate_arn #=> String
resp.management_policy #=> String
resp.policy #=> String
resp.routing_mode #=> String, one of "BASE_PATH_MAPPING_ONLY", "ROUTING_RULE_ONLY", "ROUTING_RULE_THEN_BASE_PATH_MAPPING"
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name
(required, String)
—
The name of the DomainName resource.
-
:domain_name_id
(String)
—
The identifier for the domain name resource. Required for private custom domain names.
Returns:
-
(Types::DomainName)
—
Returns a response object which responds to the following methods:
- #domain_name => String
- #domain_name_id => String
- #domain_name_arn => String
- #certificate_name => String
- #certificate_arn => String
- #certificate_upload_date => Time
- #regional_domain_name => String
- #regional_hosted_zone_id => String
- #regional_certificate_name => String
- #regional_certificate_arn => String
- #distribution_domain_name => String
- #distribution_hosted_zone_id => String
- #endpoint_configuration => Types::EndpointConfiguration
- #domain_name_status => String
- #domain_name_status_message => String
- #security_policy => String
- #tags => Hash<String,String>
- #mutual_tls_authentication => Types::MutualTlsAuthentication
- #ownership_verification_certificate_arn => String
- #management_policy => String
- #policy => String
- #routing_mode => String
3191 3192 3193 3194 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3191 def get_domain_name(params = {}, options = {}) req = build_request(:get_domain_name, params) req.send_request(options) end |
#get_domain_name_access_associations(params = {}) ⇒ Types::DomainNameAccessAssociations
Represents a collection on DomainNameAccessAssociations resources.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_domain_name_access_associations({
position: "String",
limit: 1,
resource_owner: "SELF", # accepts SELF, OTHER_ACCOUNTS
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].domain_name_access_association_arn #=> String
resp.items[0].domain_name_arn #=> String
resp.items[0].access_association_source_type #=> String, one of "VPCE"
resp.items[0].access_association_source #=> String
resp.items[0].tags #=> Hash
resp.items[0].tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
-
:resource_owner
(String)
—
The owner of the domain name access association. Use
SELF
to only list the domain name access associations owned by your own account. UseOTHER_ACCOUNTS
to list the domain name access associations with your private custom domain names that are owned by other AWS accounts.
Returns:
3237 3238 3239 3240 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3237 def get_domain_name_access_associations(params = {}, options = {}) req = build_request(:get_domain_name_access_associations, params) req.send_request(options) end |
#get_domain_names(params = {}) ⇒ Types::DomainNames
Represents a collection of DomainName resources.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_domain_names({
position: "String",
limit: 1,
resource_owner: "SELF", # accepts SELF, OTHER_ACCOUNTS
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].domain_name #=> String
resp.items[0].domain_name_id #=> String
resp.items[0].domain_name_arn #=> String
resp.items[0].certificate_name #=> String
resp.items[0].certificate_arn #=> String
resp.items[0].certificate_upload_date #=> Time
resp.items[0].regional_domain_name #=> String
resp.items[0].regional_hosted_zone_id #=> String
resp.items[0].regional_certificate_name #=> String
resp.items[0].regional_certificate_arn #=> String
resp.items[0].distribution_domain_name #=> String
resp.items[0].distribution_hosted_zone_id #=> String
resp.items[0].endpoint_configuration.types #=> Array
resp.items[0].endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.items[0].endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.items[0].endpoint_configuration.vpc_endpoint_ids #=> Array
resp.items[0].endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.items[0].domain_name_status #=> String, one of "AVAILABLE", "UPDATING", "PENDING", "PENDING_CERTIFICATE_REIMPORT", "PENDING_OWNERSHIP_VERIFICATION"
resp.items[0].domain_name_status_message #=> String
resp.items[0].security_policy #=> String, one of "TLS_1_0", "TLS_1_2"
resp.items[0].tags #=> Hash
resp.items[0].tags["String"] #=> String
resp.items[0].mutual_tls_authentication.truststore_uri #=> String
resp.items[0].mutual_tls_authentication.truststore_version #=> String
resp.items[0].mutual_tls_authentication.truststore_warnings #=> Array
resp.items[0].mutual_tls_authentication.truststore_warnings[0] #=> String
resp.items[0].ownership_verification_certificate_arn #=> String
resp.items[0].management_policy #=> String
resp.items[0].policy #=> String
resp.items[0].routing_mode #=> String, one of "BASE_PATH_MAPPING_ONLY", "ROUTING_RULE_ONLY", "ROUTING_RULE_THEN_BASE_PATH_MAPPING"
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
-
:resource_owner
(String)
—
The owner of the domain name access association.
Returns:
3306 3307 3308 3309 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3306 def get_domain_names(params = {}, options = {}) req = build_request(:get_domain_names, params) req.send_request(options) end |
#get_export(params = {}) ⇒ Types::ExportResponse
Exports a deployed version of a RestApi in a specified format.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_export({
rest_api_id: "String", # required
stage_name: "String", # required
export_type: "String", # required
parameters: {
"String" => "String",
},
accepts: "String",
})
Response structure
Response structure
resp.content_type #=> String
resp.content_disposition #=> String
resp.body #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage_name
(required, String)
—
The name of the Stage that will be exported.
-
:export_type
(required, String)
—
The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.
-
:parameters
(Hash<String,String>)
—
A key-value map of query string parameters that specify properties of the export, depending on the requested
exportType
. ForexportType
oas30
andswagger
, any combination of the following parameters are supported:extensions='integrations'
orextensions='apigateway'
will export the API with x-amazon-apigateway-integration extensions.extensions='authorizers'
will export the API with x-amazon-apigateway-authorizer extensions.postman
will export the API with Postman extensions, allowing for import to the Postman tool -
:accepts
(String)
—
The content-type of the export, for example
application/json
. Currentlyapplication/json
andapplication/yaml
are supported forexportType
ofoas30
andswagger
. This should be specified in theAccept
header for direct API requests.
Returns:
-
(Types::ExportResponse)
—
Returns a response object which responds to the following methods:
- #content_type => String
- #content_disposition => String
- #body => String
3365 3366 3367 3368 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3365 def get_export(params = {}, options = {}) req = build_request(:get_export, params) req.send_request(options) end |
#get_gateway_response(params = {}) ⇒ Types::GatewayResponse
Gets a GatewayResponse of a specified response type on the given RestApi.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_gateway_response({
rest_api_id: "String", # required
response_type: "DEFAULT_4XX", # required, accepts DEFAULT_4XX, DEFAULT_5XX, RESOURCE_NOT_FOUND, UNAUTHORIZED, INVALID_API_KEY, ACCESS_DENIED, AUTHORIZER_FAILURE, AUTHORIZER_CONFIGURATION_ERROR, INVALID_SIGNATURE, EXPIRED_TOKEN, MISSING_AUTHENTICATION_TOKEN, INTEGRATION_FAILURE, INTEGRATION_TIMEOUT, API_CONFIGURATION_ERROR, UNSUPPORTED_MEDIA_TYPE, BAD_REQUEST_PARAMETERS, BAD_REQUEST_BODY, REQUEST_TOO_LARGE, THROTTLED, QUOTA_EXCEEDED, WAF_FILTERED
})
Response structure
Response structure
resp.response_type #=> String, one of "DEFAULT_4XX", "DEFAULT_5XX", "RESOURCE_NOT_FOUND", "UNAUTHORIZED", "INVALID_API_KEY", "ACCESS_DENIED", "AUTHORIZER_FAILURE", "AUTHORIZER_CONFIGURATION_ERROR", "INVALID_SIGNATURE", "EXPIRED_TOKEN", "MISSING_AUTHENTICATION_TOKEN", "INTEGRATION_FAILURE", "INTEGRATION_TIMEOUT", "API_CONFIGURATION_ERROR", "UNSUPPORTED_MEDIA_TYPE", "BAD_REQUEST_PARAMETERS", "BAD_REQUEST_BODY", "REQUEST_TOO_LARGE", "THROTTLED", "QUOTA_EXCEEDED", "WAF_FILTERED"
resp.status_code #=> String
resp.response_parameters #=> Hash
resp.response_parameters["String"] #=> String
resp.response_templates #=> Hash
resp.response_templates["String"] #=> String
resp.default_response #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:response_type
(required, String)
—
The response type of the associated GatewayResponse.
Returns:
-
(Types::GatewayResponse)
—
Returns a response object which responds to the following methods:
- #response_type => String
- #status_code => String
- #response_parameters => Hash<String,String>
- #response_templates => Hash<String,String>
- #default_response => Boolean
3406 3407 3408 3409 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3406 def get_gateway_response(params = {}, options = {}) req = build_request(:get_gateway_response, params) req.send_request(options) end |
#get_gateway_responses(params = {}) ⇒ Types::GatewayResponses
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.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_gateway_responses({
rest_api_id: "String", # required
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].response_type #=> String, one of "DEFAULT_4XX", "DEFAULT_5XX", "RESOURCE_NOT_FOUND", "UNAUTHORIZED", "INVALID_API_KEY", "ACCESS_DENIED", "AUTHORIZER_FAILURE", "AUTHORIZER_CONFIGURATION_ERROR", "INVALID_SIGNATURE", "EXPIRED_TOKEN", "MISSING_AUTHENTICATION_TOKEN", "INTEGRATION_FAILURE", "INTEGRATION_TIMEOUT", "API_CONFIGURATION_ERROR", "UNSUPPORTED_MEDIA_TYPE", "BAD_REQUEST_PARAMETERS", "BAD_REQUEST_BODY", "REQUEST_TOO_LARGE", "THROTTLED", "QUOTA_EXCEEDED", "WAF_FILTERED"
resp.items[0].status_code #=> String
resp.items[0].response_parameters #=> Hash
resp.items[0].response_parameters["String"] #=> String
resp.items[0].response_templates #=> Hash
resp.items[0].response_templates["String"] #=> String
resp.items[0].default_response #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:position
(String)
—
The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500. The GatewayResponses collection does not support pagination and the limit does not apply here.
Returns:
3456 3457 3458 3459 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3456 def get_gateway_responses(params = {}, options = {}) req = build_request(:get_gateway_responses, params) req.send_request(options) end |
#get_integration(params = {}) ⇒ Types::Integration
Get the integration settings.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_integration({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
})
Response structure
Response structure
resp.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.http_method #=> String
resp.uri #=> String
resp.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.connection_id #=> String
resp.credentials #=> String
resp.request_parameters #=> Hash
resp.request_parameters["String"] #=> String
resp.request_templates #=> Hash
resp.request_templates["String"] #=> String
resp.passthrough_behavior #=> String
resp.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.timeout_in_millis #=> Integer
resp.cache_namespace #=> String
resp.cache_key_parameters #=> Array
resp.cache_key_parameters[0] #=> String
resp.integration_responses #=> Hash
resp.integration_responses["String"].status_code #=> String
resp.integration_responses["String"].selection_pattern #=> String
resp.integration_responses["String"].response_parameters #=> Hash
resp.integration_responses["String"].response_parameters["String"] #=> String
resp.integration_responses["String"].response_templates #=> Hash
resp.integration_responses["String"].response_templates["String"] #=> String
resp.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.tls_config.insecure_skip_verification #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
Specifies a get integration request's resource identifier
-
:http_method
(required, String)
—
Specifies a get integration request's HTTP method.
Returns:
-
(Types::Integration)
—
Returns a response object which responds to the following methods:
- #type => String
- #http_method => String
- #uri => String
- #connection_type => String
- #connection_id => String
- #credentials => String
- #request_parameters => Hash<String,String>
- #request_templates => Hash<String,String>
- #passthrough_behavior => String
- #content_handling => String
- #timeout_in_millis => Integer
- #cache_namespace => String
- #cache_key_parameters => Array<String>
- #integration_responses => Hash<String,Types::IntegrationResponse>
- #tls_config => Types::TlsConfig
3528 3529 3530 3531 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3528 def get_integration(params = {}, options = {}) req = build_request(:get_integration, params) req.send_request(options) end |
#get_integration_response(params = {}) ⇒ Types::IntegrationResponse
Represents a get integration response.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_integration_response({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
status_code: "StatusCode", # required
})
Response structure
Response structure
resp.status_code #=> String
resp.selection_pattern #=> String
resp.response_parameters #=> Hash
resp.response_parameters["String"] #=> String
resp.response_templates #=> Hash
resp.response_templates["String"] #=> String
resp.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
Specifies a get integration response request's resource identifier.
-
:http_method
(required, String)
—
Specifies a get integration response request's HTTP method.
-
:status_code
(required, String)
—
Specifies a get integration response request's status code.
Returns:
-
(Types::IntegrationResponse)
—
Returns a response object which responds to the following methods:
- #status_code => String
- #selection_pattern => String
- #response_parameters => Hash<String,String>
- #response_templates => Hash<String,String>
- #content_handling => String
3576 3577 3578 3579 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3576 def get_integration_response(params = {}, options = {}) req = build_request(:get_integration_response, params) req.send_request(options) end |
#get_method(params = {}) ⇒ Types::Method
Describe an existing Method resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_method({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
})
Response structure
Response structure
resp.http_method #=> String
resp.authorization_type #=> String
resp.authorizer_id #=> String
resp.api_key_required #=> Boolean
resp.request_validator_id #=> String
resp.operation_name #=> String
resp.request_parameters #=> Hash
resp.request_parameters["String"] #=> Boolean
resp.request_models #=> Hash
resp.request_models["String"] #=> String
resp.method_responses #=> Hash
resp.method_responses["String"].status_code #=> String
resp.method_responses["String"].response_parameters #=> Hash
resp.method_responses["String"].response_parameters["String"] #=> Boolean
resp.method_responses["String"].response_models #=> Hash
resp.method_responses["String"].response_models["String"] #=> String
resp.method_integration.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.method_integration.http_method #=> String
resp.method_integration.uri #=> String
resp.method_integration.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.method_integration.connection_id #=> String
resp.method_integration.credentials #=> String
resp.method_integration.request_parameters #=> Hash
resp.method_integration.request_parameters["String"] #=> String
resp.method_integration.request_templates #=> Hash
resp.method_integration.request_templates["String"] #=> String
resp.method_integration.passthrough_behavior #=> String
resp.method_integration.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.method_integration.timeout_in_millis #=> Integer
resp.method_integration.cache_namespace #=> String
resp.method_integration.cache_key_parameters #=> Array
resp.method_integration.cache_key_parameters[0] #=> String
resp.method_integration.integration_responses #=> Hash
resp.method_integration.integration_responses["String"].status_code #=> String
resp.method_integration.integration_responses["String"].selection_pattern #=> String
resp.method_integration.integration_responses["String"].response_parameters #=> Hash
resp.method_integration.integration_responses["String"].response_parameters["String"] #=> String
resp.method_integration.integration_responses["String"].response_templates #=> Hash
resp.method_integration.integration_responses["String"].response_templates["String"] #=> String
resp.method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.method_integration.tls_config.insecure_skip_verification #=> Boolean
resp.authorization_scopes #=> Array
resp.authorization_scopes[0] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The Resource identifier for the Method resource.
-
:http_method
(required, String)
—
Specifies the method request's HTTP method type.
Returns:
-
(Types::Method)
—
Returns a response object which responds to the following methods:
- #http_method => String
- #authorization_type => String
- #authorizer_id => String
- #api_key_required => Boolean
- #request_validator_id => String
- #operation_name => String
- #request_parameters => Hash<String,Boolean>
- #request_models => Hash<String,String>
- #method_responses => Hash<String,Types::MethodResponse>
- #method_integration => Types::Integration
- #authorization_scopes => Array<String>
3662 3663 3664 3665 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3662 def get_method(params = {}, options = {}) req = build_request(:get_method, params) req.send_request(options) end |
#get_method_response(params = {}) ⇒ Types::MethodResponse
Describes a MethodResponse resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_method_response({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
status_code: "StatusCode", # required
})
Response structure
Response structure
resp.status_code #=> String
resp.response_parameters #=> Hash
resp.response_parameters["String"] #=> Boolean
resp.response_models #=> Hash
resp.response_models["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The Resource identifier for the MethodResponse resource.
-
:http_method
(required, String)
—
The HTTP verb of the Method resource.
-
:status_code
(required, String)
—
The status code for the MethodResponse resource.
Returns:
-
(Types::MethodResponse)
—
Returns a response object which responds to the following methods:
- #status_code => String
- #response_parameters => Hash<String,Boolean>
- #response_models => Hash<String,String>
3706 3707 3708 3709 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3706 def get_method_response(params = {}, options = {}) req = build_request(:get_method_response, params) req.send_request(options) end |
#get_model(params = {}) ⇒ Types::Model
Describes an existing model defined for a RestApi resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_model({
rest_api_id: "String", # required
model_name: "String", # required
flatten: false,
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.schema #=> String
resp.content_type #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The RestApi identifier under which the Model exists.
-
:model_name
(required, String)
—
The name of the model as an identifier.
-
:flatten
(Boolean)
—
A query parameter of a Boolean value to resolve (
true
) all external model references and returns a flattened model schema or not (false
) The default isfalse
.
Returns:
-
(Types::Model)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #schema => String
- #content_type => String
3750 3751 3752 3753 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3750 def get_model(params = {}, options = {}) req = build_request(:get_model, params) req.send_request(options) end |
#get_model_template(params = {}) ⇒ Types::Template
Generates a sample mapping template that can be used to transform a payload into the structure of a model.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_model_template({
rest_api_id: "String", # required
model_name: "String", # required
})
Response structure
Response structure
resp.value #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:model_name
(required, String)
—
The name of the model for which to generate a template.
Returns:
- (Types::Template) —
3781 3782 3783 3784 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3781 def get_model_template(params = {}, options = {}) req = build_request(:get_model_template, params) req.send_request(options) end |
#get_models(params = {}) ⇒ Types::Models
Describes existing Models defined for a RestApi resource.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_models({
rest_api_id: "String", # required
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].name #=> String
resp.items[0].description #=> String
resp.items[0].schema #=> String
resp.items[0].content_type #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
- (Types::Models) —
3825 3826 3827 3828 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3825 def get_models(params = {}, options = {}) req = build_request(:get_models, params) req.send_request(options) end |
#get_request_validator(params = {}) ⇒ Types::RequestValidator
Gets a RequestValidator of a given RestApi.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_request_validator({
rest_api_id: "String", # required
request_validator_id: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.validate_request_body #=> Boolean
resp.validate_request_parameters #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:request_validator_id
(required, String)
—
The identifier of the RequestValidator to be retrieved.
Returns:
-
(Types::RequestValidator)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #validate_request_body => Boolean
- #validate_request_parameters => Boolean
3861 3862 3863 3864 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3861 def get_request_validator(params = {}, options = {}) req = build_request(:get_request_validator, params) req.send_request(options) end |
#get_request_validators(params = {}) ⇒ Types::RequestValidators
Gets the RequestValidators collection of a given RestApi.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_request_validators({
rest_api_id: "String", # required
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].name #=> String
resp.items[0].validate_request_body #=> Boolean
resp.items[0].validate_request_parameters #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
3902 3903 3904 3905 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3902 def get_request_validators(params = {}, options = {}) req = build_request(:get_request_validators, params) req.send_request(options) end |
#get_resource(params = {}) ⇒ Types::Resource
Lists information about a resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_resource({
rest_api_id: "String", # required
resource_id: "String", # required
embed: ["String"],
})
Response structure
Response structure
resp.id #=> String
resp.parent_id #=> String
resp.path_part #=> String
resp.path #=> String
resp.resource_methods #=> Hash
resp.resource_methods["String"].http_method #=> String
resp.resource_methods["String"].authorization_type #=> String
resp.resource_methods["String"].authorizer_id #=> String
resp.resource_methods["String"].api_key_required #=> Boolean
resp.resource_methods["String"].request_validator_id #=> String
resp.resource_methods["String"].operation_name #=> String
resp.resource_methods["String"].request_parameters #=> Hash
resp.resource_methods["String"].request_parameters["String"] #=> Boolean
resp.resource_methods["String"].request_models #=> Hash
resp.resource_methods["String"].request_models["String"] #=> String
resp.resource_methods["String"].method_responses #=> Hash
resp.resource_methods["String"].method_responses["String"].status_code #=> String
resp.resource_methods["String"].method_responses["String"].response_parameters #=> Hash
resp.resource_methods["String"].method_responses["String"].response_parameters["String"] #=> Boolean
resp.resource_methods["String"].method_responses["String"].response_models #=> Hash
resp.resource_methods["String"].method_responses["String"].response_models["String"] #=> String
resp.resource_methods["String"].method_integration.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.resource_methods["String"].method_integration.http_method #=> String
resp.resource_methods["String"].method_integration.uri #=> String
resp.resource_methods["String"].method_integration.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.resource_methods["String"].method_integration.connection_id #=> String
resp.resource_methods["String"].method_integration.credentials #=> String
resp.resource_methods["String"].method_integration.request_parameters #=> Hash
resp.resource_methods["String"].method_integration.request_parameters["String"] #=> String
resp.resource_methods["String"].method_integration.request_templates #=> Hash
resp.resource_methods["String"].method_integration.request_templates["String"] #=> String
resp.resource_methods["String"].method_integration.passthrough_behavior #=> String
resp.resource_methods["String"].method_integration.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.resource_methods["String"].method_integration.timeout_in_millis #=> Integer
resp.resource_methods["String"].method_integration.cache_namespace #=> String
resp.resource_methods["String"].method_integration.cache_key_parameters #=> Array
resp.resource_methods["String"].method_integration.cache_key_parameters[0] #=> String
resp.resource_methods["String"].method_integration.integration_responses #=> Hash
resp.resource_methods["String"].method_integration.integration_responses["String"].status_code #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].selection_pattern #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].response_parameters #=> Hash
resp.resource_methods["String"].method_integration.integration_responses["String"].response_parameters["String"] #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates #=> Hash
resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates["String"] #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.resource_methods["String"].method_integration.tls_config.insecure_skip_verification #=> Boolean
resp.resource_methods["String"].authorization_scopes #=> Array
resp.resource_methods["String"].authorization_scopes[0] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The identifier for the Resource resource.
-
:embed
(Array<String>)
—
A query parameter to retrieve the specified resources embedded in the returned Resource representation in the response. This
embed
parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the"methods"
string. For example,GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
.
Returns:
-
(Types::Resource)
—
Returns a response object which responds to the following methods:
- #id => String
- #parent_id => String
- #path_part => String
- #path => String
- #resource_methods => Hash<String,Types::Method>
3993 3994 3995 3996 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 3993 def get_resource(params = {}, options = {}) req = build_request(:get_resource, params) req.send_request(options) end |
#get_resources(params = {}) ⇒ Types::Resources
Lists information about a collection of Resource resources.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_resources({
rest_api_id: "String", # required
position: "String",
limit: 1,
embed: ["String"],
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].parent_id #=> String
resp.items[0].path_part #=> String
resp.items[0].path #=> String
resp.items[0].resource_methods #=> Hash
resp.items[0].resource_methods["String"].http_method #=> String
resp.items[0].resource_methods["String"].authorization_type #=> String
resp.items[0].resource_methods["String"].authorizer_id #=> String
resp.items[0].resource_methods["String"].api_key_required #=> Boolean
resp.items[0].resource_methods["String"].request_validator_id #=> String
resp.items[0].resource_methods["String"].operation_name #=> String
resp.items[0].resource_methods["String"].request_parameters #=> Hash
resp.items[0].resource_methods["String"].request_parameters["String"] #=> Boolean
resp.items[0].resource_methods["String"].request_models #=> Hash
resp.items[0].resource_methods["String"].request_models["String"] #=> String
resp.items[0].resource_methods["String"].method_responses #=> Hash
resp.items[0].resource_methods["String"].method_responses["String"].status_code #=> String
resp.items[0].resource_methods["String"].method_responses["String"].response_parameters #=> Hash
resp.items[0].resource_methods["String"].method_responses["String"].response_parameters["String"] #=> Boolean
resp.items[0].resource_methods["String"].method_responses["String"].response_models #=> Hash
resp.items[0].resource_methods["String"].method_responses["String"].response_models["String"] #=> String
resp.items[0].resource_methods["String"].method_integration.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.items[0].resource_methods["String"].method_integration.http_method #=> String
resp.items[0].resource_methods["String"].method_integration.uri #=> String
resp.items[0].resource_methods["String"].method_integration.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.items[0].resource_methods["String"].method_integration.connection_id #=> String
resp.items[0].resource_methods["String"].method_integration.credentials #=> String
resp.items[0].resource_methods["String"].method_integration.request_parameters #=> Hash
resp.items[0].resource_methods["String"].method_integration.request_parameters["String"] #=> String
resp.items[0].resource_methods["String"].method_integration.request_templates #=> Hash
resp.items[0].resource_methods["String"].method_integration.request_templates["String"] #=> String
resp.items[0].resource_methods["String"].method_integration.passthrough_behavior #=> String
resp.items[0].resource_methods["String"].method_integration.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.items[0].resource_methods["String"].method_integration.timeout_in_millis #=> Integer
resp.items[0].resource_methods["String"].method_integration.cache_namespace #=> String
resp.items[0].resource_methods["String"].method_integration.cache_key_parameters #=> Array
resp.items[0].resource_methods["String"].method_integration.cache_key_parameters[0] #=> String
resp.items[0].resource_methods["String"].method_integration.integration_responses #=> Hash
resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].status_code #=> String
resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].selection_pattern #=> String
resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].response_parameters #=> Hash
resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].response_parameters["String"] #=> String
resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].response_templates #=> Hash
resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].response_templates["String"] #=> String
resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.items[0].resource_methods["String"].method_integration.tls_config.insecure_skip_verification #=> Boolean
resp.items[0].resource_methods["String"].authorization_scopes #=> Array
resp.items[0].resource_methods["String"].authorization_scopes[0] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
-
:embed
(Array<String>)
—
A query parameter used to retrieve the specified resources embedded in the returned Resources resource in the response. This
embed
parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the"methods"
string. For example,GET /restapis/{restapi_id}/resources?embed=methods
.
Returns:
- (Types::Resources) —
4090 4091 4092 4093 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4090 def get_resources(params = {}, options = {}) req = build_request(:get_resources, params) req.send_request(options) end |
#get_rest_api(params = {}) ⇒ Types::RestApi
Lists the RestApi resource in the collection.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_rest_api({
rest_api_id: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.created_date #=> Time
resp.version #=> String
resp.warnings #=> Array
resp.warnings[0] #=> String
resp.binary_media_types #=> Array
resp.binary_media_types[0] #=> String
resp.minimum_compression_size #=> Integer
resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
resp.endpoint_configuration.types #=> Array
resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.endpoint_configuration.vpc_endpoint_ids #=> Array
resp.endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.policy #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.disable_execute_api_endpoint #=> Boolean
resp.root_resource_id #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
Returns:
-
(Types::RestApi)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #created_date => Time
- #version => String
- #warnings => Array<String>
- #binary_media_types => Array<String>
- #minimum_compression_size => Integer
- #api_key_source => String
- #endpoint_configuration => Types::EndpointConfiguration
- #policy => String
- #tags => Hash<String,String>
- #disable_execute_api_endpoint => Boolean
- #root_resource_id => String
4149 4150 4151 4152 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4149 def get_rest_api(params = {}, options = {}) req = build_request(:get_rest_api, params) req.send_request(options) end |
#get_rest_apis(params = {}) ⇒ Types::RestApis
Lists the RestApis resources for your collection.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_rest_apis({
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].name #=> String
resp.items[0].description #=> String
resp.items[0].created_date #=> Time
resp.items[0].version #=> String
resp.items[0].warnings #=> Array
resp.items[0].warnings[0] #=> String
resp.items[0].binary_media_types #=> Array
resp.items[0].binary_media_types[0] #=> String
resp.items[0].minimum_compression_size #=> Integer
resp.items[0].api_key_source #=> String, one of "HEADER", "AUTHORIZER"
resp.items[0].endpoint_configuration.types #=> Array
resp.items[0].endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.items[0].endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.items[0].endpoint_configuration.vpc_endpoint_ids #=> Array
resp.items[0].endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.items[0].policy #=> String
resp.items[0].tags #=> Hash
resp.items[0].tags["String"] #=> String
resp.items[0].disable_execute_api_endpoint #=> Boolean
resp.items[0].root_resource_id #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
- (Types::RestApis) —
4205 4206 4207 4208 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4205 def get_rest_apis(params = {}, options = {}) req = build_request(:get_rest_apis, params) req.send_request(options) end |
#get_sdk(params = {}) ⇒ Types::SdkResponse
Generates a client SDK for a RestApi and Stage.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_sdk({
rest_api_id: "String", # required
stage_name: "String", # required
sdk_type: "String", # required
parameters: {
"String" => "String",
},
})
Response structure
Response structure
resp.content_type #=> String
resp.content_disposition #=> String
resp.body #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage_name
(required, String)
—
The name of the Stage that the SDK will use.
-
:sdk_type
(required, String)
—
The language for the generated SDK. Currently
java
,javascript
,android
,objectivec
(for iOS),swift
(for iOS), andruby
are supported. -
:parameters
(Hash<String,String>)
—
A string-to-string key-value map of query parameters
sdkType
-dependent properties of the SDK. ForsdkType
ofobjectivec
orswift
, a parameter namedclassPrefix
is required. ForsdkType
ofandroid
, parameters namedgroupId
,artifactId
,artifactVersion
, andinvokerPackage
are required. ForsdkType
ofjava
, parameters namedserviceName
andjavaPackageName
are required.
Returns:
-
(Types::SdkResponse)
—
Returns a response object which responds to the following methods:
- #content_type => String
- #content_disposition => String
- #body => String
4257 4258 4259 4260 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4257 def get_sdk(params = {}, options = {}) req = build_request(:get_sdk, params) req.send_request(options) end |
#get_sdk_type(params = {}) ⇒ Types::SdkType
Gets an SDK type.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_sdk_type({
id: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.friendly_name #=> String
resp.description #=> String
resp.configuration_properties #=> Array
resp.configuration_properties[0].name #=> String
resp.configuration_properties[0].friendly_name #=> String
resp.configuration_properties[0].description #=> String
resp.configuration_properties[0].required #=> Boolean
resp.configuration_properties[0].default_value #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:id
(required, String)
—
The identifier of the queried SdkType instance.
Returns:
-
(Types::SdkType)
—
Returns a response object which responds to the following methods:
- #id => String
- #friendly_name => String
- #description => String
- #configuration_properties => Array<Types::SdkConfigurationProperty>
4294 4295 4296 4297 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4294 def get_sdk_type(params = {}, options = {}) req = build_request(:get_sdk_type, params) req.send_request(options) end |
#get_sdk_types(params = {}) ⇒ Types::SdkTypes
Gets SDK types
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_sdk_types({
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].friendly_name #=> String
resp.items[0].description #=> String
resp.items[0].configuration_properties #=> Array
resp.items[0].configuration_properties[0].name #=> String
resp.items[0].configuration_properties[0].friendly_name #=> String
resp.items[0].configuration_properties[0].description #=> String
resp.items[0].configuration_properties[0].required #=> Boolean
resp.items[0].configuration_properties[0].default_value #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
- (Types::SdkTypes) —
4336 4337 4338 4339 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4336 def get_sdk_types(params = {}, options = {}) req = build_request(:get_sdk_types, params) req.send_request(options) end |
#get_stage(params = {}) ⇒ Types::Stage
Gets information about a Stage resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_stage({
rest_api_id: "String", # required
stage_name: "String", # required
})
Response structure
Response structure
resp.deployment_id #=> String
resp.client_certificate_id #=> String
resp.stage_name #=> String
resp.description #=> String
resp.cache_cluster_enabled #=> Boolean
resp.cache_cluster_size #=> String, one of "0.5", "1.6", "6.1", "13.5", "28.4", "58.2", "118", "237"
resp.cache_cluster_status #=> String, one of "CREATE_IN_PROGRESS", "AVAILABLE", "DELETE_IN_PROGRESS", "NOT_AVAILABLE", "FLUSH_IN_PROGRESS"
resp.method_settings #=> Hash
resp.method_settings["String"].metrics_enabled #=> Boolean
resp.method_settings["String"].logging_level #=> String
resp.method_settings["String"].data_trace_enabled #=> Boolean
resp.method_settings["String"].throttling_burst_limit #=> Integer
resp.method_settings["String"].throttling_rate_limit #=> Float
resp.method_settings["String"].caching_enabled #=> Boolean
resp.method_settings["String"].cache_ttl_in_seconds #=> Integer
resp.method_settings["String"].cache_data_encrypted #=> Boolean
resp.method_settings["String"].require_authorization_for_cache_control #=> Boolean
resp.method_settings["String"].unauthorized_cache_control_header_strategy #=> String, one of "FAIL_WITH_403", "SUCCEED_WITH_RESPONSE_HEADER", "SUCCEED_WITHOUT_RESPONSE_HEADER"
resp.variables #=> Hash
resp.variables["String"] #=> String
resp.documentation_version #=> String
resp.access_log_settings.format #=> String
resp.access_log_settings.destination_arn #=> String
resp.canary_settings.percent_traffic #=> Float
resp.canary_settings.deployment_id #=> String
resp.canary_settings.stage_variable_overrides #=> Hash
resp.canary_settings.stage_variable_overrides["String"] #=> String
resp.canary_settings.use_stage_cache #=> Boolean
resp.tracing_enabled #=> Boolean
resp.web_acl_arn #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.created_date #=> Time
resp.last_updated_date #=> Time
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage_name
(required, String)
—
The name of the Stage resource to get information about.
Returns:
-
(Types::Stage)
—
Returns a response object which responds to the following methods:
- #deployment_id => String
- #client_certificate_id => String
- #stage_name => String
- #description => String
- #cache_cluster_enabled => Boolean
- #cache_cluster_size => String
- #cache_cluster_status => String
- #method_settings => Hash<String,Types::MethodSetting>
- #variables => Hash<String,String>
- #documentation_version => String
- #access_log_settings => Types::AccessLogSettings
- #canary_settings => Types::CanarySettings
- #tracing_enabled => Boolean
- #web_acl_arn => String
- #tags => Hash<String,String>
- #created_date => Time
- #last_updated_date => Time
4415 4416 4417 4418 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4415 def get_stage(params = {}, options = {}) req = build_request(:get_stage, params) req.send_request(options) end |
#get_stages(params = {}) ⇒ Types::Stages
Gets information about one or more Stage resources.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_stages({
rest_api_id: "String", # required
deployment_id: "String",
})
Response structure
Response structure
resp.item #=> Array
resp.item[0].deployment_id #=> String
resp.item[0].client_certificate_id #=> String
resp.item[0].stage_name #=> String
resp.item[0].description #=> String
resp.item[0].cache_cluster_enabled #=> Boolean
resp.item[0].cache_cluster_size #=> String, one of "0.5", "1.6", "6.1", "13.5", "28.4", "58.2", "118", "237"
resp.item[0].cache_cluster_status #=> String, one of "CREATE_IN_PROGRESS", "AVAILABLE", "DELETE_IN_PROGRESS", "NOT_AVAILABLE", "FLUSH_IN_PROGRESS"
resp.item[0].method_settings #=> Hash
resp.item[0].method_settings["String"].metrics_enabled #=> Boolean
resp.item[0].method_settings["String"].logging_level #=> String
resp.item[0].method_settings["String"].data_trace_enabled #=> Boolean
resp.item[0].method_settings["String"].throttling_burst_limit #=> Integer
resp.item[0].method_settings["String"].throttling_rate_limit #=> Float
resp.item[0].method_settings["String"].caching_enabled #=> Boolean
resp.item[0].method_settings["String"].cache_ttl_in_seconds #=> Integer
resp.item[0].method_settings["String"].cache_data_encrypted #=> Boolean
resp.item[0].method_settings["String"].require_authorization_for_cache_control #=> Boolean
resp.item[0].method_settings["String"].unauthorized_cache_control_header_strategy #=> String, one of "FAIL_WITH_403", "SUCCEED_WITH_RESPONSE_HEADER", "SUCCEED_WITHOUT_RESPONSE_HEADER"
resp.item[0].variables #=> Hash
resp.item[0].variables["String"] #=> String
resp.item[0].documentation_version #=> String
resp.item[0].access_log_settings.format #=> String
resp.item[0].access_log_settings.destination_arn #=> String
resp.item[0].canary_settings.percent_traffic #=> Float
resp.item[0].canary_settings.deployment_id #=> String
resp.item[0].canary_settings.stage_variable_overrides #=> Hash
resp.item[0].canary_settings.stage_variable_overrides["String"] #=> String
resp.item[0].canary_settings.use_stage_cache #=> Boolean
resp.item[0].tracing_enabled #=> Boolean
resp.item[0].web_acl_arn #=> String
resp.item[0].tags #=> Hash
resp.item[0].tags["String"] #=> String
resp.item[0].created_date #=> Time
resp.item[0].last_updated_date #=> Time
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:deployment_id
(String)
—
The stages' deployment identifiers.
Returns:
- (Types::Stages) —
4479 4480 4481 4482 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4479 def get_stages(params = {}, options = {}) req = build_request(:get_stages, params) req.send_request(options) end |
#get_tags(params = {}) ⇒ Types::Tags
Gets the Tags collection for a given resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_tags({
resource_arn: "String", # required
position: "String",
limit: 1,
})
Response structure
Response structure
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:resource_arn
(required, String)
—
The ARN of a resource that can be tagged.
-
:position
(String)
— default:
Not currently supported
—
The current pagination position in the paged result set.
-
:limit
(Integer)
— default:
Not currently supported
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
- (Types::Tags) —
4516 4517 4518 4519 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4516 def get_tags(params = {}, options = {}) req = build_request(:get_tags, params) req.send_request(options) end |
#get_usage(params = {}) ⇒ Types::Usage
Gets the usage data of a usage plan in a specified time interval.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_usage({
usage_plan_id: "String", # required
key_id: "String",
start_date: "String", # required
end_date: "String", # required
position: "String",
limit: 1,
})
Response structure
Response structure
resp.usage_plan_id #=> String
resp.start_date #=> String
resp.end_date #=> String
resp.position #=> String
resp.items #=> Hash
resp.items["String"] #=> Array
resp.items["String"][0] #=> Array
resp.items["String"][0][0] #=> Integer
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:usage_plan_id
(required, String)
—
The Id of the usage plan associated with the usage data.
-
:key_id
(String)
—
The Id of the API key associated with the resultant usage data.
-
:start_date
(required, String)
—
The starting date (e.g., 2016-01-01) of the usage data.
-
:end_date
(required, String)
—
The ending date (e.g., 2016-12-31) of the usage data.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
-
(Types::Usage)
—
Returns a response object which responds to the following methods:
- #usage_plan_id => String
- #start_date => String
- #end_date => String
- #position => String
- #items => Hash<String,Array<Array<Integer>>>
4576 4577 4578 4579 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4576 def get_usage(params = {}, options = {}) req = build_request(:get_usage, params) req.send_request(options) end |
#get_usage_plan(params = {}) ⇒ Types::UsagePlan
Gets a usage plan of a given plan identifier.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_usage_plan({
usage_plan_id: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.api_stages #=> Array
resp.api_stages[0].api_id #=> String
resp.api_stages[0].stage #=> String
resp.api_stages[0].throttle #=> Hash
resp.api_stages[0].throttle["String"].burst_limit #=> Integer
resp.api_stages[0].throttle["String"].rate_limit #=> Float
resp.throttle.burst_limit #=> Integer
resp.throttle.rate_limit #=> Float
resp.quota.limit #=> Integer
resp.quota.offset #=> Integer
resp.quota.period #=> String, one of "DAY", "WEEK", "MONTH"
resp.product_code #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:usage_plan_id
(required, String)
—
The identifier of the UsagePlan resource to be retrieved.
Returns:
-
(Types::UsagePlan)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #api_stages => Array<Types::ApiStage>
- #throttle => Types::ThrottleSettings
- #quota => Types::QuotaSettings
- #product_code => String
- #tags => Hash<String,String>
4625 4626 4627 4628 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4625 def get_usage_plan(params = {}, options = {}) req = build_request(:get_usage_plan, params) req.send_request(options) end |
#get_usage_plan_key(params = {}) ⇒ Types::UsagePlanKey
Gets a usage plan key of a given key identifier.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_usage_plan_key({
usage_plan_id: "String", # required
key_id: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.type #=> String
resp.value #=> String
resp.name #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:usage_plan_id
(required, String)
—
The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.
-
:key_id
(required, String)
—
The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer.
Returns:
4664 4665 4666 4667 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4664 def get_usage_plan_key(params = {}, options = {}) req = build_request(:get_usage_plan_key, params) req.send_request(options) end |
#get_usage_plan_keys(params = {}) ⇒ Types::UsagePlanKeys
Gets all the usage plan keys representing the API keys added to a specified usage plan.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_usage_plan_keys({
usage_plan_id: "String", # required
position: "String",
limit: 1,
name_query: "String",
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].type #=> String
resp.items[0].value #=> String
resp.items[0].name #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:usage_plan_id
(required, String)
—
The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
-
:name_query
(String)
—
A query parameter specifying the name of the to-be-returned usage plan keys.
Returns:
4715 4716 4717 4718 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4715 def get_usage_plan_keys(params = {}, options = {}) req = build_request(:get_usage_plan_keys, params) req.send_request(options) end |
#get_usage_plans(params = {}) ⇒ Types::UsagePlans
Gets all the usage plans of the caller's account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_usage_plans({
position: "String",
key_id: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].name #=> String
resp.items[0].description #=> String
resp.items[0].api_stages #=> Array
resp.items[0].api_stages[0].api_id #=> String
resp.items[0].api_stages[0].stage #=> String
resp.items[0].api_stages[0].throttle #=> Hash
resp.items[0].api_stages[0].throttle["String"].burst_limit #=> Integer
resp.items[0].api_stages[0].throttle["String"].rate_limit #=> Float
resp.items[0].throttle.burst_limit #=> Integer
resp.items[0].throttle.rate_limit #=> Float
resp.items[0].quota.limit #=> Integer
resp.items[0].quota.offset #=> Integer
resp.items[0].quota.period #=> String, one of "DAY", "WEEK", "MONTH"
resp.items[0].product_code #=> String
resp.items[0].tags #=> Hash
resp.items[0].tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:position
(String)
—
The current pagination position in the paged result set.
-
:key_id
(String)
—
The identifier of the API key associated with the usage plans.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
4771 4772 4773 4774 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4771 def get_usage_plans(params = {}, options = {}) req = build_request(:get_usage_plans, params) req.send_request(options) end |
#get_vpc_link(params = {}) ⇒ Types::VpcLink
Gets a specified VPC link under the caller's account in a region.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_vpc_link({
vpc_link_id: "String", # required
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.target_arns #=> Array
resp.target_arns[0] #=> String
resp.status #=> String, one of "AVAILABLE", "PENDING", "DELETING", "FAILED"
resp.status_message #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:vpc_link_id
(required, String)
—
The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.
Returns:
-
(Types::VpcLink)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #target_arns => Array<String>
- #status => String
- #status_message => String
- #tags => Hash<String,String>
4812 4813 4814 4815 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4812 def get_vpc_link(params = {}, options = {}) req = build_request(:get_vpc_link, params) req.send_request(options) end |
#get_vpc_links(params = {}) ⇒ Types::VpcLinks
Gets the VpcLinks collection under the caller's account in a selected region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.get_vpc_links({
position: "String",
limit: 1,
})
Response structure
Response structure
resp.position #=> String
resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].name #=> String
resp.items[0].description #=> String
resp.items[0].target_arns #=> Array
resp.items[0].target_arns[0] #=> String
resp.items[0].status #=> String, one of "AVAILABLE", "PENDING", "DELETING", "FAILED"
resp.items[0].status_message #=> String
resp.items[0].tags #=> Hash
resp.items[0].tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:position
(String)
—
The current pagination position in the paged result set.
-
:limit
(Integer)
—
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
Returns:
- (Types::VpcLinks) —
4857 4858 4859 4860 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4857 def get_vpc_links(params = {}, options = {}) req = build_request(:get_vpc_links, params) req.send_request(options) end |
#import_api_keys(params = {}) ⇒ Types::ApiKeyIds
Import API keys from an external source, such as a CSV-formatted file.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.import_api_keys({
body: "data", # required
format: "csv", # required, accepts csv
fail_on_warnings: false,
})
Response structure
Response structure
resp.ids #=> Array
resp.ids[0] #=> String
resp.warnings #=> Array
resp.warnings[0] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:body
(required, String, StringIO, File)
—
The payload of the POST request to import API keys. For the payload format, see API Key File Format.
-
:format
(required, String)
—
A query parameter to specify the input format to imported API keys. Currently, only the
csv
format is supported. -
:fail_on_warnings
(Boolean)
—
A query parameter to indicate whether to rollback ApiKey importation (
true
) or not (false
) when error is encountered.
Returns:
- (Types::ApiKeyIds) —
4898 4899 4900 4901 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4898 def import_api_keys(params = {}, options = {}) req = build_request(:import_api_keys, params) req.send_request(options) end |
#import_documentation_parts(params = {}) ⇒ Types::DocumentationPartIds
Imports documentation parts
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.import_documentation_parts({
rest_api_id: "String", # required
mode: "merge", # accepts merge, overwrite
fail_on_warnings: false,
body: "data", # required
})
Response structure
Response structure
resp.ids #=> Array
resp.ids[0] #=> String
resp.warnings #=> Array
resp.warnings[0] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:mode
(String)
—
A query parameter to indicate whether to overwrite (
overwrite
) any existing DocumentationParts definition or to merge (merge
) the new definition into the existing one. The default value ismerge
. -
:fail_on_warnings
(Boolean)
—
A query parameter to specify whether to rollback the documentation importation (
true
) or not (false
) when a warning is encountered. The default value isfalse
. -
:body
(required, String, StringIO, File)
—
Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.
Returns:
4945 4946 4947 4948 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 4945 def import_documentation_parts(params = {}, options = {}) req = build_request(:import_documentation_parts, params) req.send_request(options) end |
#import_rest_api(params = {}) ⇒ Types::RestApi
A feature of the API Gateway control service for creating a new API from an external API definition file.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.import_rest_api({
fail_on_warnings: false,
parameters: {
"String" => "String",
},
body: "data", # required
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.created_date #=> Time
resp.version #=> String
resp.warnings #=> Array
resp.warnings[0] #=> String
resp.binary_media_types #=> Array
resp.binary_media_types[0] #=> String
resp.minimum_compression_size #=> Integer
resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
resp.endpoint_configuration.types #=> Array
resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.endpoint_configuration.vpc_endpoint_ids #=> Array
resp.endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.policy #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.disable_execute_api_endpoint #=> Boolean
resp.root_resource_id #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:fail_on_warnings
(Boolean)
—
A query parameter to indicate whether to rollback the API creation (
true
) or not (false
) when a warning is encountered. The default value isfalse
. -
:parameters
(Hash<String,String>)
—
A key-value map of context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set
parameters
asignore=documentation
.To configure the endpoint type, set
parameters
asendpointConfigurationTypes=EDGE
,endpointConfigurationTypes=REGIONAL
, orendpointConfigurationTypes=PRIVATE
. The default endpoint type isEDGE
.To handle imported
basepath
, setparameters
asbasepath=ignore
,basepath=prepend
orbasepath=split
. -
:body
(required, String, StringIO, File)
—
The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.
Returns:
-
(Types::RestApi)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #created_date => Time
- #version => String
- #warnings => Array<String>
- #binary_media_types => Array<String>
- #minimum_compression_size => Integer
- #api_key_source => String
- #endpoint_configuration => Types::EndpointConfiguration
- #policy => String
- #tags => Hash<String,String>
- #disable_execute_api_endpoint => Boolean
- #root_resource_id => String
5033 5034 5035 5036 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5033 def import_rest_api(params = {}, options = {}) req = build_request(:import_rest_api, params) req.send_request(options) end |
#put_gateway_response(params = {}) ⇒ Types::GatewayResponse
Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.put_gateway_response({
rest_api_id: "String", # required
response_type: "DEFAULT_4XX", # required, accepts DEFAULT_4XX, DEFAULT_5XX, RESOURCE_NOT_FOUND, UNAUTHORIZED, INVALID_API_KEY, ACCESS_DENIED, AUTHORIZER_FAILURE, AUTHORIZER_CONFIGURATION_ERROR, INVALID_SIGNATURE, EXPIRED_TOKEN, MISSING_AUTHENTICATION_TOKEN, INTEGRATION_FAILURE, INTEGRATION_TIMEOUT, API_CONFIGURATION_ERROR, UNSUPPORTED_MEDIA_TYPE, BAD_REQUEST_PARAMETERS, BAD_REQUEST_BODY, REQUEST_TOO_LARGE, THROTTLED, QUOTA_EXCEEDED, WAF_FILTERED
status_code: "StatusCode",
response_parameters: {
"String" => "String",
},
response_templates: {
"String" => "String",
},
})
Response structure
Response structure
resp.response_type #=> String, one of "DEFAULT_4XX", "DEFAULT_5XX", "RESOURCE_NOT_FOUND", "UNAUTHORIZED", "INVALID_API_KEY", "ACCESS_DENIED", "AUTHORIZER_FAILURE", "AUTHORIZER_CONFIGURATION_ERROR", "INVALID_SIGNATURE", "EXPIRED_TOKEN", "MISSING_AUTHENTICATION_TOKEN", "INTEGRATION_FAILURE", "INTEGRATION_TIMEOUT", "API_CONFIGURATION_ERROR", "UNSUPPORTED_MEDIA_TYPE", "BAD_REQUEST_PARAMETERS", "BAD_REQUEST_BODY", "REQUEST_TOO_LARGE", "THROTTLED", "QUOTA_EXCEEDED", "WAF_FILTERED"
resp.status_code #=> String
resp.response_parameters #=> Hash
resp.response_parameters["String"] #=> String
resp.response_templates #=> Hash
resp.response_templates["String"] #=> String
resp.default_response #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:response_type
(required, String)
—
The response type of the associated GatewayResponse
-
:status_code
(String)
—
The HTTP status code of the GatewayResponse.
-
:response_parameters
(Hash<String,String>)
—
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
-
:response_templates
(Hash<String,String>)
—
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
Returns:
-
(Types::GatewayResponse)
—
Returns a response object which responds to the following methods:
- #response_type => String
- #status_code => String
- #response_parameters => Hash<String,String>
- #response_templates => Hash<String,String>
- #default_response => Boolean
5092 5093 5094 5095 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5092 def put_gateway_response(params = {}, options = {}) req = build_request(:put_gateway_response, params) req.send_request(options) end |
#put_integration(params = {}) ⇒ Types::Integration
Sets up a method's integration.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.put_integration({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
type: "HTTP", # required, accepts HTTP, AWS, MOCK, HTTP_PROXY, AWS_PROXY
integration_http_method: "String",
uri: "String",
connection_type: "INTERNET", # accepts INTERNET, VPC_LINK
connection_id: "String",
credentials: "String",
request_parameters: {
"String" => "String",
},
request_templates: {
"String" => "String",
},
passthrough_behavior: "String",
cache_namespace: "String",
cache_key_parameters: ["String"],
content_handling: "CONVERT_TO_BINARY", # accepts CONVERT_TO_BINARY, CONVERT_TO_TEXT
timeout_in_millis: 1,
tls_config: {
insecure_skip_verification: false,
},
})
Response structure
Response structure
resp.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.http_method #=> String
resp.uri #=> String
resp.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.connection_id #=> String
resp.credentials #=> String
resp.request_parameters #=> Hash
resp.request_parameters["String"] #=> String
resp.request_templates #=> Hash
resp.request_templates["String"] #=> String
resp.passthrough_behavior #=> String
resp.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.timeout_in_millis #=> Integer
resp.cache_namespace #=> String
resp.cache_key_parameters #=> Array
resp.cache_key_parameters[0] #=> String
resp.integration_responses #=> Hash
resp.integration_responses["String"].status_code #=> String
resp.integration_responses["String"].selection_pattern #=> String
resp.integration_responses["String"].response_parameters #=> Hash
resp.integration_responses["String"].response_parameters["String"] #=> String
resp.integration_responses["String"].response_templates #=> Hash
resp.integration_responses["String"].response_templates["String"] #=> String
resp.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.tls_config.insecure_skip_verification #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
Specifies a put integration request's resource ID.
-
:http_method
(required, String)
—
Specifies the HTTP method for the integration.
-
:type
(required, String)
—
Specifies a put integration input's type.
-
:integration_http_method
(String)
—
The HTTP method for the integration.
-
:uri
(String)
—
Specifies Uniform Resource Identifier (URI) of the integration endpoint. For HTTP or
HTTP_PROXY
integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, whereconnectionType
is notVPC_LINK
, or private integration, whereconnectionType
isVPC_LINK
. For a private HTTP integration, the URI is not used for routing. ForAWS
orAWS_PROXY
integrations, the URI is of the formarn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api
}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web Services service for fast host-name lookup. action can be used for an Amazon Web Services service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an Amazon Web Services service path-based API. The ensuing service_api refers to the path to an Amazon Web Services service resource, including the region of the integrated Amazon Web Services service, if applicable. For example, for integration with the S3 API ofGetObject
, theuri
can be eitherarn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}
orarn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
. -
:connection_type
(String)
—
The type of the network connection to the integration endpoint. The valid value is
INTERNET
for connections through the public routable internet orVPC_LINK
for private connections between API Gateway and a network load balancer in a VPC. The default value isINTERNET
. -
:connection_id
(String)
—
The ID of the VpcLink used for the integration. Specify this value only if you specify
VPC_LINK
as the connection type. -
:credentials
(String)
—
Specifies whether credentials are required for a put integration.
-
:request_parameters
(Hash<String,String>)
—
A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of
method.request.{location}.{name}
, wherelocation
isquerystring
,path
, orheader
andname
must be a valid and unique method request parameter name. -
:request_templates
(Hash<String,String>)
—
Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.
-
:passthrough_behavior
(String)
—
Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the
requestTemplates
property on the Integration resource. There are three valid values:WHEN_NO_MATCH
,WHEN_NO_TEMPLATES
, andNEVER
. -
:cache_namespace
(String)
—
Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the
cacheNamespace
. You can specify the samecacheNamespace
across resources to return the same cached data for requests to different resources. -
:cache_key_parameters
(Array<String>)
—
A list of request parameters whose values API Gateway caches. To be valid values for
cacheKeyParameters
, these parameters must also be specified for MethodrequestParameters
. -
:content_handling
(String)
—
Specifies how to handle request payload content type conversions. Supported values are
CONVERT_TO_BINARY
andCONVERT_TO_TEXT
, with the following behaviors:If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the
passthroughBehavior
is configured to support payload pass-through. -
:timeout_in_millis
(Integer)
—
Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds. You can increase the default value to longer than 29 seconds for Regional or private APIs only.
-
:tls_config
(Types::TlsConfig)
—
Specifies the TLS configuration for an integration.
Returns:
-
(Types::Integration)
—
Returns a response object which responds to the following methods:
- #type => String
- #http_method => String
- #uri => String
- #connection_type => String
- #connection_id => String
- #credentials => String
- #request_parameters => Hash<String,String>
- #request_templates => Hash<String,String>
- #passthrough_behavior => String
- #content_handling => String
- #timeout_in_millis => Integer
- #cache_namespace => String
- #cache_key_parameters => Array<String>
- #integration_responses => Hash<String,Types::IntegrationResponse>
- #tls_config => Types::TlsConfig
5280 5281 5282 5283 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5280 def put_integration(params = {}, options = {}) req = build_request(:put_integration, params) req.send_request(options) end |
#put_integration_response(params = {}) ⇒ Types::IntegrationResponse
Represents a put integration.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.put_integration_response({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
status_code: "StatusCode", # required
selection_pattern: "String",
response_parameters: {
"String" => "String",
},
response_templates: {
"String" => "String",
},
content_handling: "CONVERT_TO_BINARY", # accepts CONVERT_TO_BINARY, CONVERT_TO_TEXT
})
Response structure
Response structure
resp.status_code #=> String
resp.selection_pattern #=> String
resp.response_parameters #=> Hash
resp.response_parameters["String"] #=> String
resp.response_templates #=> Hash
resp.response_templates["String"] #=> String
resp.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
Specifies a put integration response request's resource identifier.
-
:http_method
(required, String)
—
Specifies a put integration response request's HTTP method.
-
:status_code
(required, String)
—
Specifies the status code that is used to map the integration response to an existing MethodResponse.
-
:selection_pattern
(String)
—
Specifies the selection pattern of a put integration response.
-
:response_parameters
(Hash<String,String>)
—
A key-value map specifying response parameters that are passed to the method response from the back end. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of
method.response.header.{name}
, wherename
is a valid and unique header name. The mapped non-static value must match the pattern ofintegration.response.header.{name}
orintegration.response.body.{JSON-expression}
, wherename
must be a valid and unique response header name andJSON-expression
a valid JSON expression without the$
prefix. -
:response_templates
(Hash<String,String>)
—
Specifies a put integration response's templates.
-
:content_handling
(String)
—
Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARY
andCONVERT_TO_TEXT
, with the following behaviors:If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
Returns:
-
(Types::IntegrationResponse)
—
Returns a response object which responds to the following methods:
- #status_code => String
- #selection_pattern => String
- #response_parameters => Hash<String,String>
- #response_templates => Hash<String,String>
- #content_handling => String
5365 5366 5367 5368 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5365 def put_integration_response(params = {}, options = {}) req = build_request(:put_integration_response, params) req.send_request(options) end |
#put_method(params = {}) ⇒ Types::Method
Add a method to an existing Resource resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.put_method({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
authorization_type: "String", # required
authorizer_id: "String",
api_key_required: false,
operation_name: "String",
request_parameters: {
"String" => false,
},
request_models: {
"String" => "String",
},
request_validator_id: "String",
authorization_scopes: ["String"],
})
Response structure
Response structure
resp.http_method #=> String
resp.authorization_type #=> String
resp.authorizer_id #=> String
resp.api_key_required #=> Boolean
resp.request_validator_id #=> String
resp.operation_name #=> String
resp.request_parameters #=> Hash
resp.request_parameters["String"] #=> Boolean
resp.request_models #=> Hash
resp.request_models["String"] #=> String
resp.method_responses #=> Hash
resp.method_responses["String"].status_code #=> String
resp.method_responses["String"].response_parameters #=> Hash
resp.method_responses["String"].response_parameters["String"] #=> Boolean
resp.method_responses["String"].response_models #=> Hash
resp.method_responses["String"].response_models["String"] #=> String
resp.method_integration.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.method_integration.http_method #=> String
resp.method_integration.uri #=> String
resp.method_integration.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.method_integration.connection_id #=> String
resp.method_integration.credentials #=> String
resp.method_integration.request_parameters #=> Hash
resp.method_integration.request_parameters["String"] #=> String
resp.method_integration.request_templates #=> Hash
resp.method_integration.request_templates["String"] #=> String
resp.method_integration.passthrough_behavior #=> String
resp.method_integration.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.method_integration.timeout_in_millis #=> Integer
resp.method_integration.cache_namespace #=> String
resp.method_integration.cache_key_parameters #=> Array
resp.method_integration.cache_key_parameters[0] #=> String
resp.method_integration.integration_responses #=> Hash
resp.method_integration.integration_responses["String"].status_code #=> String
resp.method_integration.integration_responses["String"].selection_pattern #=> String
resp.method_integration.integration_responses["String"].response_parameters #=> Hash
resp.method_integration.integration_responses["String"].response_parameters["String"] #=> String
resp.method_integration.integration_responses["String"].response_templates #=> Hash
resp.method_integration.integration_responses["String"].response_templates["String"] #=> String
resp.method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.method_integration.tls_config.insecure_skip_verification #=> Boolean
resp.authorization_scopes #=> Array
resp.authorization_scopes[0] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The Resource identifier for the new Method resource.
-
:http_method
(required, String)
—
Specifies the method request's HTTP method type.
-
:authorization_type
(required, String)
—
The method's authorization type. Valid values are
NONE
for open access,AWS_IAM
for using AWS IAM permissions,CUSTOM
for using a custom authorizer, orCOGNITO_USER_POOLS
for using a Cognito user pool. -
:authorizer_id
(String)
—
Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM or COGNITO_USER_POOLS. The authorizer identifier is generated by API Gateway when you created the authorizer.
-
:api_key_required
(Boolean)
—
Specifies whether the method required a valid ApiKey.
-
:operation_name
(String)
—
A human-friendly operation identifier for the method. For example, you can assign the
operationName
ofListPets
for theGET /pets
method in thePetStore
example. -
:request_parameters
(Hash<String,Boolean>)
—
A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key defines a method request parameter name matching the pattern of
method.request.{location}.{name}
, wherelocation
isquerystring
,path
, orheader
andname
is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true
) or optional (false
). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or body-mapping templates. -
:request_models
(Hash<String,String>)
—
Specifies the Model resources used for the request's content type. Request models are represented as a key/value map, with a content type as the key and a Model name as the value.
-
:request_validator_id
(String)
—
The identifier of a RequestValidator for validating the method request.
-
:authorization_scopes
(Array<String>)
—
A list of authorization scopes configured on the method. The scopes are used with a
COGNITO_USER_POOLS
authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.
Returns:
-
(Types::Method)
—
Returns a response object which responds to the following methods:
- #http_method => String
- #authorization_type => String
- #authorizer_id => String
- #api_key_required => Boolean
- #request_validator_id => String
- #operation_name => String
- #request_parameters => Hash<String,Boolean>
- #request_models => Hash<String,String>
- #method_responses => Hash<String,Types::MethodResponse>
- #method_integration => Types::Integration
- #authorization_scopes => Array<String>
5513 5514 5515 5516 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5513 def put_method(params = {}, options = {}) req = build_request(:put_method, params) req.send_request(options) end |
#put_method_response(params = {}) ⇒ Types::MethodResponse
Adds a MethodResponse to an existing Method resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.put_method_response({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
status_code: "StatusCode", # required
response_parameters: {
"String" => false,
},
response_models: {
"String" => "String",
},
})
Response structure
Response structure
resp.status_code #=> String
resp.response_parameters #=> Hash
resp.response_parameters["String"] #=> Boolean
resp.response_models #=> Hash
resp.response_models["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The Resource identifier for the Method resource.
-
:http_method
(required, String)
—
The HTTP verb of the Method resource.
-
:status_code
(required, String)
—
The method response's status code.
-
:response_parameters
(Hash<String,Boolean>)
—
A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether the method response parameter is required or not. The method response header names must match the pattern of
method.response.header.{name}
, wherename
is a valid and unique header name. The response parameter names defined here are available in the integration response to be mapped from an integration response header expressed inintegration.response.header.{name}
, a static value enclosed within a pair of single quotes (e.g.,'application/json'
), or a JSON expression from the back-end response payload in the form ofintegration.response.body.{JSON-expression}
, whereJSON-expression
is a valid JSON expression without the$
prefix.) -
:response_models
(Hash<String,String>)
—
Specifies the Model resources used for the response's content type. Response models are represented as a key/value map, with a content type as the key and a Model name as the value.
Returns:
-
(Types::MethodResponse)
—
Returns a response object which responds to the following methods:
- #status_code => String
- #response_parameters => Hash<String,Boolean>
- #response_models => Hash<String,String>
5584 5585 5586 5587 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5584 def put_method_response(params = {}, options = {}) req = build_request(:put_method_response, params) req.send_request(options) end |
#put_rest_api(params = {}) ⇒ Types::RestApi
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.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.put_rest_api({
rest_api_id: "String", # required
mode: "merge", # accepts merge, overwrite
fail_on_warnings: false,
parameters: {
"String" => "String",
},
body: "data", # required
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.created_date #=> Time
resp.version #=> String
resp.warnings #=> Array
resp.warnings[0] #=> String
resp.binary_media_types #=> Array
resp.binary_media_types[0] #=> String
resp.minimum_compression_size #=> Integer
resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
resp.endpoint_configuration.types #=> Array
resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.endpoint_configuration.vpc_endpoint_ids #=> Array
resp.endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.policy #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.disable_execute_api_endpoint #=> Boolean
resp.root_resource_id #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:mode
(String)
—
The
mode
query parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge". -
:fail_on_warnings
(Boolean)
—
A query parameter to indicate whether to rollback the API update (
true
) or not (false
) when a warning is encountered. The default value isfalse
. -
:parameters
(Hash<String,String>)
—
Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set
ignore=documentation
as aparameters
value, as in the AWS CLI command ofaws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'
. -
:body
(required, String, StringIO, File)
—
The PUT request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.
Returns:
-
(Types::RestApi)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #created_date => Time
- #version => String
- #warnings => Array<String>
- #binary_media_types => Array<String>
- #minimum_compression_size => Integer
- #api_key_source => String
- #endpoint_configuration => Types::EndpointConfiguration
- #policy => String
- #tags => Hash<String,String>
- #disable_execute_api_endpoint => Boolean
- #root_resource_id => String
5674 5675 5676 5677 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5674 def put_rest_api(params = {}, options = {}) req = build_request(:put_rest_api, params) req.send_request(options) end |
#reject_domain_name_access_association(params = {}) ⇒ Struct
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.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.reject_domain_name_access_association({
domain_name_access_association_arn: "String", # required
domain_name_arn: "String", # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name_access_association_arn
(required, String)
—
The ARN of the domain name access association resource.
-
:domain_name_arn
(required, String)
—
The ARN of the domain name.
Returns:
-
(Struct)
—
Returns an empty response.
5704 5705 5706 5707 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5704 def reject_domain_name_access_association(params = {}, options = {}) req = build_request(:reject_domain_name_access_association, params) req.send_request(options) end |
#tag_resource(params = {}) ⇒ Struct
Adds or updates a tag on a given resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.tag_resource({
resource_arn: "String", # required
tags: { # required
"String" => "String",
},
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:resource_arn
(required, String)
—
The ARN of a resource that can be tagged.
-
:tags
(required, Hash<String,String>)
—
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters.
Returns:
-
(Struct)
—
Returns an empty response.
5732 5733 5734 5735 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5732 def tag_resource(params = {}, options = {}) req = build_request(:tag_resource, params) req.send_request(options) end |
#test_invoke_authorizer(params = {}) ⇒ Types::TestInvokeAuthorizerResponse
Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.test_invoke_authorizer({
rest_api_id: "String", # required
authorizer_id: "String", # required
headers: {
"String" => "String",
},
multi_value_headers: {
"String" => ["String"],
},
path_with_query_string: "String",
body: "String",
stage_variables: {
"String" => "String",
},
additional_context: {
"String" => "String",
},
})
Response structure
Response structure
resp.client_status #=> Integer
resp.log #=> String
resp.latency #=> Integer
resp.principal_id #=> String
resp.policy #=> String
resp.authorization #=> Hash
resp.authorization["String"] #=> Array
resp.authorization["String"][0] #=> String
resp.claims #=> Hash
resp.claims["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:authorizer_id
(required, String)
—
Specifies a test invoke authorizer request's Authorizer ID.
-
:headers
(Hash<String,String>)
—
A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.
-
:multi_value_headers
(Hash<String,Array>)
—
The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.
-
:path_with_query_string
(String)
—
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
-
:body
(String)
—
The simulated request body of an incoming invocation request.
-
:stage_variables
(Hash<String,String>)
—
A key-value map of stage variables to simulate an invocation on a deployed Stage.
-
:additional_context
(Hash<String,String>)
—
A key-value map of additional context variables.
Returns:
-
(Types::TestInvokeAuthorizerResponse)
—
Returns a response object which responds to the following methods:
- #client_status => Integer
- #log => String
- #latency => Integer
- #principal_id => String
- #policy => String
- #authorization => Hash<String,Array<String>>
- #claims => Hash<String,String>
5817 5818 5819 5820 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5817 def test_invoke_authorizer(params = {}, options = {}) req = build_request(:test_invoke_authorizer, params) req.send_request(options) end |
#test_invoke_method(params = {}) ⇒ Types::TestInvokeMethodResponse
Simulate the invocation of a Method in your RestApi with headers, parameters, and an incoming request body.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.test_invoke_method({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
path_with_query_string: "String",
body: "String",
headers: {
"String" => "String",
},
multi_value_headers: {
"String" => ["String"],
},
client_certificate_id: "String",
stage_variables: {
"String" => "String",
},
})
Response structure
Response structure
resp.status #=> Integer
resp.body #=> String
resp.headers #=> Hash
resp.headers["String"] #=> String
resp.multi_value_headers #=> Hash
resp.multi_value_headers["String"] #=> Array
resp.multi_value_headers["String"][0] #=> String
resp.log #=> String
resp.latency #=> Integer
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
Specifies a test invoke method request's resource ID.
-
:http_method
(required, String)
—
Specifies a test invoke method request's HTTP method.
-
:path_with_query_string
(String)
—
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
-
:body
(String)
—
The simulated request body of an incoming invocation request.
-
:headers
(Hash<String,String>)
—
A key-value map of headers to simulate an incoming invocation request.
-
:multi_value_headers
(Hash<String,Array>)
—
The headers as a map from string to list of values to simulate an incoming invocation request.
-
:client_certificate_id
(String)
—
A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.
-
:stage_variables
(Hash<String,String>)
—
A key-value map of stage variables to simulate an invocation on a deployed Stage.
Returns:
5901 5902 5903 5904 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5901 def test_invoke_method(params = {}, options = {}) req = build_request(:test_invoke_method, params) req.send_request(options) end |
#untag_resource(params = {}) ⇒ Struct
Removes a tag from a given resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.untag_resource({
resource_arn: "String", # required
tag_keys: ["String"], # required
})
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:resource_arn
(required, String)
—
The ARN of a resource that can be tagged.
-
:tag_keys
(required, Array<String>)
—
The Tag keys to delete.
Returns:
-
(Struct)
—
Returns an empty response.
5925 5926 5927 5928 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5925 def untag_resource(params = {}, options = {}) req = build_request(:untag_resource, params) req.send_request(options) end |
#update_account(params = {}) ⇒ Types::Account
Changes information about the current Account resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_account({
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.cloudwatch_role_arn #=> String
resp.throttle_settings.burst_limit #=> Integer
resp.throttle_settings.rate_limit #=> Float
resp.features #=> Array
resp.features[0] #=> String
resp.api_key_version #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::Account)
—
Returns a response object which responds to the following methods:
- #cloudwatch_role_arn => String
- #throttle_settings => Types::ThrottleSettings
- #features => Array<String>
- #api_key_version => String
5971 5972 5973 5974 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 5971 def update_account(params = {}, options = {}) req = build_request(:update_account, params) req.send_request(options) end |
#update_api_key(params = {}) ⇒ Types::ApiKey
Changes information about an ApiKey resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_api_key({
api_key: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.value #=> String
resp.name #=> String
resp.customer_id #=> String
resp.description #=> String
resp.enabled #=> Boolean
resp.created_date #=> Time
resp.last_updated_date #=> Time
resp.stage_keys #=> Array
resp.stage_keys[0] #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:api_key
(required, String)
—
The identifier of the ApiKey resource to be updated.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::ApiKey)
—
Returns a response object which responds to the following methods:
- #id => String
- #value => String
- #name => String
- #customer_id => String
- #description => String
- #enabled => Boolean
- #created_date => Time
- #last_updated_date => Time
- #stage_keys => Array<String>
- #tags => Hash<String,String>
6033 6034 6035 6036 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6033 def update_api_key(params = {}, options = {}) req = build_request(:update_api_key, params) req.send_request(options) end |
#update_authorizer(params = {}) ⇒ Types::Authorizer
Updates an existing Authorizer resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_authorizer({
rest_api_id: "String", # required
authorizer_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS"
resp.provider_arns #=> Array
resp.provider_arns[0] #=> String
resp.auth_type #=> String
resp.authorizer_uri #=> String
resp.authorizer_credentials #=> String
resp.identity_source #=> String
resp.identity_validation_expression #=> String
resp.authorizer_result_ttl_in_seconds #=> Integer
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:authorizer_id
(required, String)
—
The identifier of the Authorizer resource.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::Authorizer)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #type => String
- #provider_arns => Array<String>
- #auth_type => String
- #authorizer_uri => String
- #authorizer_credentials => String
- #identity_source => String
- #identity_validation_expression => String
- #authorizer_result_ttl_in_seconds => Integer
6098 6099 6100 6101 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6098 def update_authorizer(params = {}, options = {}) req = build_request(:update_authorizer, params) req.send_request(options) end |
#update_base_path_mapping(params = {}) ⇒ Types::BasePathMapping
Changes information about the BasePathMapping resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_base_path_mapping({
domain_name: "String", # required
domain_name_id: "String",
base_path: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.base_path #=> String
resp.rest_api_id #=> String
resp.stage #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name
(required, String)
—
The domain name of the BasePathMapping resource to change.
-
:domain_name_id
(String)
—
The identifier for the domain name resource. Supported only for private custom domain names.
-
:base_path
(required, String)
—
The base path of the BasePathMapping resource to change.
To specify an empty base path, set this parameter to
'(none)'
. -
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::BasePathMapping)
—
Returns a response object which responds to the following methods:
- #base_path => String
- #rest_api_id => String
- #stage => String
6155 6156 6157 6158 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6155 def update_base_path_mapping(params = {}, options = {}) req = build_request(:update_base_path_mapping, params) req.send_request(options) end |
#update_client_certificate(params = {}) ⇒ Types::ClientCertificate
Changes information about an ClientCertificate resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_client_certificate({
client_certificate_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.client_certificate_id #=> String
resp.description #=> String
resp.pem_encoded_certificate #=> String
resp.created_date #=> Time
resp.expiration_date #=> Time
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:client_certificate_id
(required, String)
—
The identifier of the ClientCertificate resource to be updated.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::ClientCertificate)
—
Returns a response object which responds to the following methods:
- #client_certificate_id => String
- #description => String
- #pem_encoded_certificate => String
- #created_date => Time
- #expiration_date => Time
- #tags => Hash<String,String>
6208 6209 6210 6211 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6208 def update_client_certificate(params = {}, options = {}) req = build_request(:update_client_certificate, params) req.send_request(options) end |
#update_deployment(params = {}) ⇒ Types::Deployment
Changes information about a Deployment resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_deployment({
rest_api_id: "String", # required
deployment_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.description #=> String
resp.created_date #=> Time
resp.api_summary #=> Hash
resp.api_summary["String"] #=> Hash
resp.api_summary["String"]["String"].authorization_type #=> String
resp.api_summary["String"]["String"].api_key_required #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:deployment_id
(required, String)
—
The replacement identifier for the Deployment resource to change information about.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::Deployment)
—
Returns a response object which responds to the following methods:
- #id => String
- #description => String
- #created_date => Time
- #api_summary => Hash<String,Hash<String,Types::MethodSnapshot>>
6264 6265 6266 6267 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6264 def update_deployment(params = {}, options = {}) req = build_request(:update_deployment, params) req.send_request(options) end |
#update_documentation_part(params = {}) ⇒ Types::DocumentationPart
Updates a documentation part.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_documentation_part({
rest_api_id: "String", # required
documentation_part_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.location.type #=> String, one of "API", "AUTHORIZER", "MODEL", "RESOURCE", "METHOD", "PATH_PARAMETER", "QUERY_PARAMETER", "REQUEST_HEADER", "REQUEST_BODY", "RESPONSE", "RESPONSE_HEADER", "RESPONSE_BODY"
resp.location.path #=> String
resp.location.method #=> String
resp.location.status_code #=> String
resp.location.name #=> String
resp.properties #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:documentation_part_id
(required, String)
—
The identifier of the to-be-updated documentation part.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::DocumentationPart)
—
Returns a response object which responds to the following methods:
- #id => String
- #location => Types::DocumentationPartLocation
- #properties => String
6318 6319 6320 6321 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6318 def update_documentation_part(params = {}, options = {}) req = build_request(:update_documentation_part, params) req.send_request(options) end |
#update_documentation_version(params = {}) ⇒ Types::DocumentationVersion
Updates a documentation version.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_documentation_version({
rest_api_id: "String", # required
documentation_version: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.version #=> String
resp.created_date #=> Time
resp.description #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:documentation_version
(required, String)
—
The version identifier of the to-be-updated documentation version.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::DocumentationVersion)
—
Returns a response object which responds to the following methods:
- #version => String
- #created_date => Time
- #description => String
6368 6369 6370 6371 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6368 def update_documentation_version(params = {}, options = {}) req = build_request(:update_documentation_version, params) req.send_request(options) end |
#update_domain_name(params = {}) ⇒ Types::DomainName
Changes information about the DomainName resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_domain_name({
domain_name: "String", # required
domain_name_id: "String",
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.domain_name #=> String
resp.domain_name_id #=> String
resp.domain_name_arn #=> String
resp.certificate_name #=> String
resp.certificate_arn #=> String
resp.certificate_upload_date #=> Time
resp.regional_domain_name #=> String
resp.regional_hosted_zone_id #=> String
resp.regional_certificate_name #=> String
resp.regional_certificate_arn #=> String
resp.distribution_domain_name #=> String
resp.distribution_hosted_zone_id #=> String
resp.endpoint_configuration.types #=> Array
resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.endpoint_configuration.vpc_endpoint_ids #=> Array
resp.endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.domain_name_status #=> String, one of "AVAILABLE", "UPDATING", "PENDING", "PENDING_CERTIFICATE_REIMPORT", "PENDING_OWNERSHIP_VERIFICATION"
resp.domain_name_status_message #=> String
resp.security_policy #=> String, one of "TLS_1_0", "TLS_1_2"
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.mutual_tls_authentication.truststore_uri #=> String
resp.mutual_tls_authentication.truststore_version #=> String
resp.mutual_tls_authentication.truststore_warnings #=> Array
resp.mutual_tls_authentication.truststore_warnings[0] #=> String
resp.ownership_verification_certificate_arn #=> String
resp.management_policy #=> String
resp.policy #=> String
resp.routing_mode #=> String, one of "BASE_PATH_MAPPING_ONLY", "ROUTING_RULE_ONLY", "ROUTING_RULE_THEN_BASE_PATH_MAPPING"
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:domain_name
(required, String)
—
The name of the DomainName resource to be changed.
-
:domain_name_id
(String)
—
The identifier for the domain name resource. Supported only for private custom domain names.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::DomainName)
—
Returns a response object which responds to the following methods:
- #domain_name => String
- #domain_name_id => String
- #domain_name_arn => String
- #certificate_name => String
- #certificate_arn => String
- #certificate_upload_date => Time
- #regional_domain_name => String
- #regional_hosted_zone_id => String
- #regional_certificate_name => String
- #regional_certificate_arn => String
- #distribution_domain_name => String
- #distribution_hosted_zone_id => String
- #endpoint_configuration => Types::EndpointConfiguration
- #domain_name_status => String
- #domain_name_status_message => String
- #security_policy => String
- #tags => Hash<String,String>
- #mutual_tls_authentication => Types::MutualTlsAuthentication
- #ownership_verification_certificate_arn => String
- #management_policy => String
- #policy => String
- #routing_mode => String
6465 6466 6467 6468 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6465 def update_domain_name(params = {}, options = {}) req = build_request(:update_domain_name, params) req.send_request(options) end |
#update_gateway_response(params = {}) ⇒ Types::GatewayResponse
Updates a GatewayResponse of a specified response type on the given RestApi.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_gateway_response({
rest_api_id: "String", # required
response_type: "DEFAULT_4XX", # required, accepts DEFAULT_4XX, DEFAULT_5XX, RESOURCE_NOT_FOUND, UNAUTHORIZED, INVALID_API_KEY, ACCESS_DENIED, AUTHORIZER_FAILURE, AUTHORIZER_CONFIGURATION_ERROR, INVALID_SIGNATURE, EXPIRED_TOKEN, MISSING_AUTHENTICATION_TOKEN, INTEGRATION_FAILURE, INTEGRATION_TIMEOUT, API_CONFIGURATION_ERROR, UNSUPPORTED_MEDIA_TYPE, BAD_REQUEST_PARAMETERS, BAD_REQUEST_BODY, REQUEST_TOO_LARGE, THROTTLED, QUOTA_EXCEEDED, WAF_FILTERED
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.response_type #=> String, one of "DEFAULT_4XX", "DEFAULT_5XX", "RESOURCE_NOT_FOUND", "UNAUTHORIZED", "INVALID_API_KEY", "ACCESS_DENIED", "AUTHORIZER_FAILURE", "AUTHORIZER_CONFIGURATION_ERROR", "INVALID_SIGNATURE", "EXPIRED_TOKEN", "MISSING_AUTHENTICATION_TOKEN", "INTEGRATION_FAILURE", "INTEGRATION_TIMEOUT", "API_CONFIGURATION_ERROR", "UNSUPPORTED_MEDIA_TYPE", "BAD_REQUEST_PARAMETERS", "BAD_REQUEST_BODY", "REQUEST_TOO_LARGE", "THROTTLED", "QUOTA_EXCEEDED", "WAF_FILTERED"
resp.status_code #=> String
resp.response_parameters #=> Hash
resp.response_parameters["String"] #=> String
resp.response_templates #=> Hash
resp.response_templates["String"] #=> String
resp.default_response #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:response_type
(required, String)
—
The response type of the associated GatewayResponse.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::GatewayResponse)
—
Returns a response object which responds to the following methods:
- #response_type => String
- #status_code => String
- #response_parameters => Hash<String,String>
- #response_templates => Hash<String,String>
- #default_response => Boolean
6522 6523 6524 6525 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6522 def update_gateway_response(params = {}, options = {}) req = build_request(:update_gateway_response, params) req.send_request(options) end |
#update_integration(params = {}) ⇒ Types::Integration
Represents an update integration.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_integration({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.http_method #=> String
resp.uri #=> String
resp.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.connection_id #=> String
resp.credentials #=> String
resp.request_parameters #=> Hash
resp.request_parameters["String"] #=> String
resp.request_templates #=> Hash
resp.request_templates["String"] #=> String
resp.passthrough_behavior #=> String
resp.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.timeout_in_millis #=> Integer
resp.cache_namespace #=> String
resp.cache_key_parameters #=> Array
resp.cache_key_parameters[0] #=> String
resp.integration_responses #=> Hash
resp.integration_responses["String"].status_code #=> String
resp.integration_responses["String"].selection_pattern #=> String
resp.integration_responses["String"].response_parameters #=> Hash
resp.integration_responses["String"].response_parameters["String"] #=> String
resp.integration_responses["String"].response_templates #=> Hash
resp.integration_responses["String"].response_templates["String"] #=> String
resp.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.tls_config.insecure_skip_verification #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
Represents an update integration request's resource identifier.
-
:http_method
(required, String)
—
Represents an update integration request's HTTP method.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::Integration)
—
Returns a response object which responds to the following methods:
- #type => String
- #http_method => String
- #uri => String
- #connection_type => String
- #connection_id => String
- #credentials => String
- #request_parameters => Hash<String,String>
- #request_templates => Hash<String,String>
- #passthrough_behavior => String
- #content_handling => String
- #timeout_in_millis => Integer
- #cache_namespace => String
- #cache_key_parameters => Array<String>
- #integration_responses => Hash<String,Types::IntegrationResponse>
- #tls_config => Types::TlsConfig
6610 6611 6612 6613 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6610 def update_integration(params = {}, options = {}) req = build_request(:update_integration, params) req.send_request(options) end |
#update_integration_response(params = {}) ⇒ Types::IntegrationResponse
Represents an update integration response.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_integration_response({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
status_code: "StatusCode", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.status_code #=> String
resp.selection_pattern #=> String
resp.response_parameters #=> Hash
resp.response_parameters["String"] #=> String
resp.response_templates #=> Hash
resp.response_templates["String"] #=> String
resp.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
Specifies an update integration response request's resource identifier.
-
:http_method
(required, String)
—
Specifies an update integration response request's HTTP method.
-
:status_code
(required, String)
—
Specifies an update integration response request's status code.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::IntegrationResponse)
—
Returns a response object which responds to the following methods:
- #status_code => String
- #selection_pattern => String
- #response_parameters => Hash<String,String>
- #response_templates => Hash<String,String>
- #content_handling => String
6675 6676 6677 6678 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6675 def update_integration_response(params = {}, options = {}) req = build_request(:update_integration_response, params) req.send_request(options) end |
#update_method(params = {}) ⇒ Types::Method
Updates an existing Method resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_method({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.http_method #=> String
resp.authorization_type #=> String
resp.authorizer_id #=> String
resp.api_key_required #=> Boolean
resp.request_validator_id #=> String
resp.operation_name #=> String
resp.request_parameters #=> Hash
resp.request_parameters["String"] #=> Boolean
resp.request_models #=> Hash
resp.request_models["String"] #=> String
resp.method_responses #=> Hash
resp.method_responses["String"].status_code #=> String
resp.method_responses["String"].response_parameters #=> Hash
resp.method_responses["String"].response_parameters["String"] #=> Boolean
resp.method_responses["String"].response_models #=> Hash
resp.method_responses["String"].response_models["String"] #=> String
resp.method_integration.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.method_integration.http_method #=> String
resp.method_integration.uri #=> String
resp.method_integration.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.method_integration.connection_id #=> String
resp.method_integration.credentials #=> String
resp.method_integration.request_parameters #=> Hash
resp.method_integration.request_parameters["String"] #=> String
resp.method_integration.request_templates #=> Hash
resp.method_integration.request_templates["String"] #=> String
resp.method_integration.passthrough_behavior #=> String
resp.method_integration.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.method_integration.timeout_in_millis #=> Integer
resp.method_integration.cache_namespace #=> String
resp.method_integration.cache_key_parameters #=> Array
resp.method_integration.cache_key_parameters[0] #=> String
resp.method_integration.integration_responses #=> Hash
resp.method_integration.integration_responses["String"].status_code #=> String
resp.method_integration.integration_responses["String"].selection_pattern #=> String
resp.method_integration.integration_responses["String"].response_parameters #=> Hash
resp.method_integration.integration_responses["String"].response_parameters["String"] #=> String
resp.method_integration.integration_responses["String"].response_templates #=> Hash
resp.method_integration.integration_responses["String"].response_templates["String"] #=> String
resp.method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.method_integration.tls_config.insecure_skip_verification #=> Boolean
resp.authorization_scopes #=> Array
resp.authorization_scopes[0] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The Resource identifier for the Method resource.
-
:http_method
(required, String)
—
The HTTP verb of the Method resource.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::Method)
—
Returns a response object which responds to the following methods:
- #http_method => String
- #authorization_type => String
- #authorizer_id => String
- #api_key_required => Boolean
- #request_validator_id => String
- #operation_name => String
- #request_parameters => Hash<String,Boolean>
- #request_models => Hash<String,String>
- #method_responses => Hash<String,Types::MethodResponse>
- #method_integration => Types::Integration
- #authorization_scopes => Array<String>
6777 6778 6779 6780 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6777 def update_method(params = {}, options = {}) req = build_request(:update_method, params) req.send_request(options) end |
#update_method_response(params = {}) ⇒ Types::MethodResponse
Updates an existing MethodResponse resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_method_response({
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
status_code: "StatusCode", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.status_code #=> String
resp.response_parameters #=> Hash
resp.response_parameters["String"] #=> Boolean
resp.response_models #=> Hash
resp.response_models["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The Resource identifier for the MethodResponse resource.
-
:http_method
(required, String)
—
The HTTP verb of the Method resource.
-
:status_code
(required, String)
—
The status code for the MethodResponse resource.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::MethodResponse)
—
Returns a response object which responds to the following methods:
- #status_code => String
- #response_parameters => Hash<String,Boolean>
- #response_models => Hash<String,String>
6837 6838 6839 6840 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6837 def update_method_response(params = {}, options = {}) req = build_request(:update_method_response, params) req.send_request(options) end |
#update_model(params = {}) ⇒ Types::Model
Changes information about a model. The maximum size of the model is 400 KB.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_model({
rest_api_id: "String", # required
model_name: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.schema #=> String
resp.content_type #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:model_name
(required, String)
—
The name of the model to update.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::Model)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #schema => String
- #content_type => String
6892 6893 6894 6895 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6892 def update_model(params = {}, options = {}) req = build_request(:update_model, params) req.send_request(options) end |
#update_request_validator(params = {}) ⇒ Types::RequestValidator
Updates a RequestValidator of a given RestApi.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_request_validator({
rest_api_id: "String", # required
request_validator_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.validate_request_body #=> Boolean
resp.validate_request_parameters #=> Boolean
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:request_validator_id
(required, String)
—
The identifier of RequestValidator to be updated.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::RequestValidator)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #validate_request_body => Boolean
- #validate_request_parameters => Boolean
6944 6945 6946 6947 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 6944 def update_request_validator(params = {}, options = {}) req = build_request(:update_request_validator, params) req.send_request(options) end |
#update_resource(params = {}) ⇒ Types::Resource
Changes information about a Resource resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_resource({
rest_api_id: "String", # required
resource_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.parent_id #=> String
resp.path_part #=> String
resp.path #=> String
resp.resource_methods #=> Hash
resp.resource_methods["String"].http_method #=> String
resp.resource_methods["String"].authorization_type #=> String
resp.resource_methods["String"].authorizer_id #=> String
resp.resource_methods["String"].api_key_required #=> Boolean
resp.resource_methods["String"].request_validator_id #=> String
resp.resource_methods["String"].operation_name #=> String
resp.resource_methods["String"].request_parameters #=> Hash
resp.resource_methods["String"].request_parameters["String"] #=> Boolean
resp.resource_methods["String"].request_models #=> Hash
resp.resource_methods["String"].request_models["String"] #=> String
resp.resource_methods["String"].method_responses #=> Hash
resp.resource_methods["String"].method_responses["String"].status_code #=> String
resp.resource_methods["String"].method_responses["String"].response_parameters #=> Hash
resp.resource_methods["String"].method_responses["String"].response_parameters["String"] #=> Boolean
resp.resource_methods["String"].method_responses["String"].response_models #=> Hash
resp.resource_methods["String"].method_responses["String"].response_models["String"] #=> String
resp.resource_methods["String"].method_integration.type #=> String, one of "HTTP", "AWS", "MOCK", "HTTP_PROXY", "AWS_PROXY"
resp.resource_methods["String"].method_integration.http_method #=> String
resp.resource_methods["String"].method_integration.uri #=> String
resp.resource_methods["String"].method_integration.connection_type #=> String, one of "INTERNET", "VPC_LINK"
resp.resource_methods["String"].method_integration.connection_id #=> String
resp.resource_methods["String"].method_integration.credentials #=> String
resp.resource_methods["String"].method_integration.request_parameters #=> Hash
resp.resource_methods["String"].method_integration.request_parameters["String"] #=> String
resp.resource_methods["String"].method_integration.request_templates #=> Hash
resp.resource_methods["String"].method_integration.request_templates["String"] #=> String
resp.resource_methods["String"].method_integration.passthrough_behavior #=> String
resp.resource_methods["String"].method_integration.content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.resource_methods["String"].method_integration.timeout_in_millis #=> Integer
resp.resource_methods["String"].method_integration.cache_namespace #=> String
resp.resource_methods["String"].method_integration.cache_key_parameters #=> Array
resp.resource_methods["String"].method_integration.cache_key_parameters[0] #=> String
resp.resource_methods["String"].method_integration.integration_responses #=> Hash
resp.resource_methods["String"].method_integration.integration_responses["String"].status_code #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].selection_pattern #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].response_parameters #=> Hash
resp.resource_methods["String"].method_integration.integration_responses["String"].response_parameters["String"] #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates #=> Hash
resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates["String"] #=> String
resp.resource_methods["String"].method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
resp.resource_methods["String"].method_integration.tls_config.insecure_skip_verification #=> Boolean
resp.resource_methods["String"].authorization_scopes #=> Array
resp.resource_methods["String"].authorization_scopes[0] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:resource_id
(required, String)
—
The identifier of the Resource resource.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::Resource)
—
Returns a response object which responds to the following methods:
- #id => String
- #parent_id => String
- #path_part => String
- #path => String
- #resource_methods => Hash<String,Types::Method>
7041 7042 7043 7044 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 7041 def update_resource(params = {}, options = {}) req = build_request(:update_resource, params) req.send_request(options) end |
#update_rest_api(params = {}) ⇒ Types::RestApi
Changes information about the specified API.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_rest_api({
rest_api_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.created_date #=> Time
resp.version #=> String
resp.warnings #=> Array
resp.warnings[0] #=> String
resp.binary_media_types #=> Array
resp.binary_media_types[0] #=> String
resp.minimum_compression_size #=> Integer
resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
resp.endpoint_configuration.types #=> Array
resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE", "PRIVATE"
resp.endpoint_configuration.ip_address_type #=> String, one of "ipv4", "dualstack"
resp.endpoint_configuration.vpc_endpoint_ids #=> Array
resp.endpoint_configuration.vpc_endpoint_ids[0] #=> String
resp.policy #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.disable_execute_api_endpoint #=> Boolean
resp.root_resource_id #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::RestApi)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #created_date => Time
- #version => String
- #warnings => Array<String>
- #binary_media_types => Array<String>
- #minimum_compression_size => Integer
- #api_key_source => String
- #endpoint_configuration => Types::EndpointConfiguration
- #policy => String
- #tags => Hash<String,String>
- #disable_execute_api_endpoint => Boolean
- #root_resource_id => String
7116 7117 7118 7119 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 7116 def update_rest_api(params = {}, options = {}) req = build_request(:update_rest_api, params) req.send_request(options) end |
#update_stage(params = {}) ⇒ Types::Stage
Changes information about a Stage resource.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_stage({
rest_api_id: "String", # required
stage_name: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.deployment_id #=> String
resp.client_certificate_id #=> String
resp.stage_name #=> String
resp.description #=> String
resp.cache_cluster_enabled #=> Boolean
resp.cache_cluster_size #=> String, one of "0.5", "1.6", "6.1", "13.5", "28.4", "58.2", "118", "237"
resp.cache_cluster_status #=> String, one of "CREATE_IN_PROGRESS", "AVAILABLE", "DELETE_IN_PROGRESS", "NOT_AVAILABLE", "FLUSH_IN_PROGRESS"
resp.method_settings #=> Hash
resp.method_settings["String"].metrics_enabled #=> Boolean
resp.method_settings["String"].logging_level #=> String
resp.method_settings["String"].data_trace_enabled #=> Boolean
resp.method_settings["String"].throttling_burst_limit #=> Integer
resp.method_settings["String"].throttling_rate_limit #=> Float
resp.method_settings["String"].caching_enabled #=> Boolean
resp.method_settings["String"].cache_ttl_in_seconds #=> Integer
resp.method_settings["String"].cache_data_encrypted #=> Boolean
resp.method_settings["String"].require_authorization_for_cache_control #=> Boolean
resp.method_settings["String"].unauthorized_cache_control_header_strategy #=> String, one of "FAIL_WITH_403", "SUCCEED_WITH_RESPONSE_HEADER", "SUCCEED_WITHOUT_RESPONSE_HEADER"
resp.variables #=> Hash
resp.variables["String"] #=> String
resp.documentation_version #=> String
resp.access_log_settings.format #=> String
resp.access_log_settings.destination_arn #=> String
resp.canary_settings.percent_traffic #=> Float
resp.canary_settings.deployment_id #=> String
resp.canary_settings.stage_variable_overrides #=> Hash
resp.canary_settings.stage_variable_overrides["String"] #=> String
resp.canary_settings.use_stage_cache #=> Boolean
resp.tracing_enabled #=> Boolean
resp.web_acl_arn #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
resp.created_date #=> Time
resp.last_updated_date #=> Time
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:rest_api_id
(required, String)
—
The string identifier of the associated RestApi.
-
:stage_name
(required, String)
—
The name of the Stage resource to change information about.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::Stage)
—
Returns a response object which responds to the following methods:
- #deployment_id => String
- #client_certificate_id => String
- #stage_name => String
- #description => String
- #cache_cluster_enabled => Boolean
- #cache_cluster_size => String
- #cache_cluster_status => String
- #method_settings => Hash<String,Types::MethodSetting>
- #variables => Hash<String,String>
- #documentation_version => String
- #access_log_settings => Types::AccessLogSettings
- #canary_settings => Types::CanarySettings
- #tracing_enabled => Boolean
- #web_acl_arn => String
- #tags => Hash<String,String>
- #created_date => Time
- #last_updated_date => Time
7211 7212 7213 7214 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 7211 def update_stage(params = {}, options = {}) req = build_request(:update_stage, params) req.send_request(options) end |
#update_usage(params = {}) ⇒ Types::Usage
Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_usage({
usage_plan_id: "String", # required
key_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.usage_plan_id #=> String
resp.start_date #=> String
resp.end_date #=> String
resp.position #=> String
resp.items #=> Hash
resp.items["String"] #=> Array
resp.items["String"][0] #=> Array
resp.items["String"][0][0] #=> Integer
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:usage_plan_id
(required, String)
—
The Id of the usage plan associated with the usage data.
-
:key_id
(required, String)
—
The identifier of the API key associated with the usage plan in which a temporary extension is granted to the remaining quota.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::Usage)
—
Returns a response object which responds to the following methods:
- #usage_plan_id => String
- #start_date => String
- #end_date => String
- #position => String
- #items => Hash<String,Array<Array<Integer>>>
7270 7271 7272 7273 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 7270 def update_usage(params = {}, options = {}) req = build_request(:update_usage, params) req.send_request(options) end |
#update_usage_plan(params = {}) ⇒ Types::UsagePlan
Updates a usage plan of a given plan Id.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_usage_plan({
usage_plan_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.api_stages #=> Array
resp.api_stages[0].api_id #=> String
resp.api_stages[0].stage #=> String
resp.api_stages[0].throttle #=> Hash
resp.api_stages[0].throttle["String"].burst_limit #=> Integer
resp.api_stages[0].throttle["String"].rate_limit #=> Float
resp.throttle.burst_limit #=> Integer
resp.throttle.rate_limit #=> Float
resp.quota.limit #=> Integer
resp.quota.offset #=> Integer
resp.quota.period #=> String, one of "DAY", "WEEK", "MONTH"
resp.product_code #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:usage_plan_id
(required, String)
—
The Id of the to-be-updated usage plan.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::UsagePlan)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #api_stages => Array<Types::ApiStage>
- #throttle => Types::ThrottleSettings
- #quota => Types::QuotaSettings
- #product_code => String
- #tags => Hash<String,String>
7335 7336 7337 7338 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 7335 def update_usage_plan(params = {}, options = {}) req = build_request(:update_usage_plan, params) req.send_request(options) end |
#update_vpc_link(params = {}) ⇒ Types::VpcLink
Updates an existing VpcLink of a specified identifier.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_vpc_link({
vpc_link_id: "String", # required
patch_operations: [
{
op: "add", # accepts add, remove, replace, move, copy, test
path: "String",
value: "String",
from: "String",
},
],
})
Response structure
Response structure
resp.id #=> String
resp.name #=> String
resp.description #=> String
resp.target_arns #=> Array
resp.target_arns[0] #=> String
resp.status #=> String, one of "AVAILABLE", "PENDING", "DELETING", "FAILED"
resp.status_message #=> String
resp.tags #=> Hash
resp.tags["String"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:vpc_link_id
(required, String)
—
The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.
-
:patch_operations
(Array<Types::PatchOperation>)
—
For more information about supported patch operations, see Patch Operations.
Returns:
-
(Types::VpcLink)
—
Returns a response object which responds to the following methods:
- #id => String
- #name => String
- #description => String
- #target_arns => Array<String>
- #status => String
- #status_message => String
- #tags => Hash<String,String>
7392 7393 7394 7395 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/client.rb', line 7392 def update_vpc_link(params = {}, options = {}) req = build_request(:update_vpc_link, params) req.send_request(options) end |