lib/aws-sdk-apigatewayv2/client.rb in aws-sdk-apigatewayv2-1.9.0 vs lib/aws-sdk-apigatewayv2/client.rb in aws-sdk-apigatewayv2-1.10.0
- old
+ new
@@ -520,15 +520,20 @@
# A string with a length between \[1-512\].
#
# @option params [Array<Types::DomainNameConfiguration>] :domain_name_configurations
# The domain name configurations.
#
+ # @option params [Hash<String,String>] :tags
+ # A key value pair of string with key length between\[1-128\] and value
+ # length between\[1-256\]
+ #
# @return [Types::CreateDomainNameResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateDomainNameResponse#api_mapping_selection_expression #api_mapping_selection_expression} => String
# * {Types::CreateDomainNameResponse#domain_name #domain_name} => String
# * {Types::CreateDomainNameResponse#domain_name_configurations #domain_name_configurations} => Array<Types::DomainNameConfiguration>
+ # * {Types::CreateDomainNameResponse#tags #tags} => Hash<String,String>
#
# @example Request syntax with placeholder values
#
# resp = client.create_domain_name({
# domain_name: "StringWithLengthBetween1And512", # required
@@ -543,10 +548,13 @@
# security_policy: "TLS_1_0", # accepts TLS_1_0, TLS_1_2
# domain_name_status: "AVAILABLE", # accepts AVAILABLE, UPDATING
# domain_name_status_message: "__string",
# },
# ],
+ # tags: {
+ # "__string" => "StringWithLengthBetween1And1600",
+ # },
# })
#
# @example Response structure
#
# resp.api_mapping_selection_expression #=> String
@@ -559,10 +567,12 @@
# resp.domain_name_configurations[0].endpoint_type #=> String, one of "REGIONAL", "EDGE"
# resp.domain_name_configurations[0].hosted_zone_id #=> String
# resp.domain_name_configurations[0].security_policy #=> String, one of "TLS_1_0", "TLS_1_2"
# resp.domain_name_configurations[0].domain_name_status #=> String, one of "AVAILABLE", "UPDATING"
# resp.domain_name_configurations[0].domain_name_status_message #=> String
+ # resp.tags #=> Hash
+ # resp.tags["__string"] #=> String
#
# @overload create_domain_name(params = {})
# @param [Hash] params ({})
def create_domain_name(params = {}, options = {})
req = build_request(:create_domain_name, params)
@@ -1058,10 +1068,14 @@
# A string with a length between \[1-128\].
#
# @option params [Hash<String,String>] :stage_variables
# The stage variable map.
#
+ # @option params [Hash<String,String>] :tags
+ # A key value pair of string with key length between\[1-128\] and value
+ # length between\[1-256\]
+ #
# @return [Types::CreateStageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateStageResponse#access_log_settings #access_log_settings} => Types::AccessLogSettings
# * {Types::CreateStageResponse#client_certificate_id #client_certificate_id} => String
# * {Types::CreateStageResponse#created_date #created_date} => Time
@@ -1070,10 +1084,11 @@
# * {Types::CreateStageResponse#description #description} => String
# * {Types::CreateStageResponse#last_updated_date #last_updated_date} => Time
# * {Types::CreateStageResponse#route_settings #route_settings} => Hash<String,Types::RouteSettings>
# * {Types::CreateStageResponse#stage_name #stage_name} => String
# * {Types::CreateStageResponse#stage_variables #stage_variables} => Hash<String,String>
+ # * {Types::CreateStageResponse#tags #tags} => Hash<String,String>
#
# @example Request syntax with placeholder values
#
# resp = client.create_stage({
# access_log_settings: {
@@ -1102,10 +1117,13 @@
# },
# stage_name: "StringWithLengthBetween1And128", # required
# stage_variables: {
# "__string" => "StringWithLengthBetween0And2048",
# },
+ # tags: {
+ # "__string" => "StringWithLengthBetween1And1600",
+ # },
# })
#
# @example Response structure
#
# resp.access_log_settings.destination_arn #=> String
@@ -1127,10 +1145,12 @@
# resp.route_settings["__string"].throttling_burst_limit #=> Integer
# resp.route_settings["__string"].throttling_rate_limit #=> Float
# resp.stage_name #=> String
# resp.stage_variables #=> Hash
# resp.stage_variables["__string"] #=> String
+ # resp.tags #=> Hash
+ # resp.tags["__string"] #=> String
#
# @overload create_stage(params = {})
# @param [Hash] params ({})
def create_stage(params = {}, options = {})
req = build_request(:create_stage, params)
@@ -1394,10 +1414,11 @@
# * {Types::GetApiResponse#name #name} => String
# * {Types::GetApiResponse#protocol_type #protocol_type} => String
# * {Types::GetApiResponse#route_selection_expression #route_selection_expression} => String
# * {Types::GetApiResponse#version #version} => String
# * {Types::GetApiResponse#warnings #warnings} => Array<String>
+ # * {Types::GetApiResponse#tags #tags} => Hash<String,String>
#
# @example Request syntax with placeholder values
#
# resp = client.get_api({
# api_id: "__string", # required
@@ -1415,10 +1436,12 @@
# resp.protocol_type #=> String, one of "WEBSOCKET"
# resp.route_selection_expression #=> String
# resp.version #=> String
# resp.warnings #=> Array
# resp.warnings[0] #=> String
+ # resp.tags #=> Hash
+ # resp.tags["__string"] #=> String
#
# @overload get_api(params = {})
# @param [Hash] params ({})
def get_api(params = {}, options = {})
req = build_request(:get_api, params)
@@ -1527,10 +1550,12 @@
# resp.items[0].protocol_type #=> String, one of "WEBSOCKET"
# resp.items[0].route_selection_expression #=> String
# resp.items[0].version #=> String
# resp.items[0].warnings #=> Array
# resp.items[0].warnings[0] #=> String
+ # resp.items[0].tags #=> Hash
+ # resp.items[0].tags["__string"] #=> String
# resp.next_token #=> String
#
# @overload get_apis(params = {})
# @param [Hash] params ({})
def get_apis(params = {}, options = {})
@@ -1709,10 +1734,11 @@
# @return [Types::GetDomainNameResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::GetDomainNameResponse#api_mapping_selection_expression #api_mapping_selection_expression} => String
# * {Types::GetDomainNameResponse#domain_name #domain_name} => String
# * {Types::GetDomainNameResponse#domain_name_configurations #domain_name_configurations} => Array<Types::DomainNameConfiguration>
+ # * {Types::GetDomainNameResponse#tags #tags} => Hash<String,String>
#
# @example Request syntax with placeholder values
#
# resp = client.get_domain_name({
# domain_name: "__string", # required
@@ -1730,10 +1756,12 @@
# resp.domain_name_configurations[0].endpoint_type #=> String, one of "REGIONAL", "EDGE"
# resp.domain_name_configurations[0].hosted_zone_id #=> String
# resp.domain_name_configurations[0].security_policy #=> String, one of "TLS_1_0", "TLS_1_2"
# resp.domain_name_configurations[0].domain_name_status #=> String, one of "AVAILABLE", "UPDATING"
# resp.domain_name_configurations[0].domain_name_status_message #=> String
+ # resp.tags #=> Hash
+ # resp.tags["__string"] #=> String
#
# @overload get_domain_name(params = {})
# @param [Hash] params ({})
def get_domain_name(params = {}, options = {})
req = build_request(:get_domain_name, params)
@@ -1771,10 +1799,12 @@
# resp.items[0].domain_name_configurations[0].endpoint_type #=> String, one of "REGIONAL", "EDGE"
# resp.items[0].domain_name_configurations[0].hosted_zone_id #=> String
# resp.items[0].domain_name_configurations[0].security_policy #=> String, one of "TLS_1_0", "TLS_1_2"
# resp.items[0].domain_name_configurations[0].domain_name_status #=> String, one of "AVAILABLE", "UPDATING"
# resp.items[0].domain_name_configurations[0].domain_name_status_message #=> String
+ # resp.items[0].tags #=> Hash
+ # resp.items[0].tags["__string"] #=> String
# resp.next_token #=> String
#
# @overload get_domain_names(params = {})
# @param [Hash] params ({})
def get_domain_names(params = {}, options = {})
@@ -2280,10 +2310,11 @@
# * {Types::GetStageResponse#description #description} => String
# * {Types::GetStageResponse#last_updated_date #last_updated_date} => Time
# * {Types::GetStageResponse#route_settings #route_settings} => Hash<String,Types::RouteSettings>
# * {Types::GetStageResponse#stage_name #stage_name} => String
# * {Types::GetStageResponse#stage_variables #stage_variables} => Hash<String,String>
+ # * {Types::GetStageResponse#tags #tags} => Hash<String,String>
#
# @example Request syntax with placeholder values
#
# resp = client.get_stage({
# api_id: "__string", # required
@@ -2311,10 +2342,12 @@
# resp.route_settings["__string"].throttling_burst_limit #=> Integer
# resp.route_settings["__string"].throttling_rate_limit #=> Float
# resp.stage_name #=> String
# resp.stage_variables #=> Hash
# resp.stage_variables["__string"] #=> String
+ # resp.tags #=> Hash
+ # resp.tags["__string"] #=> String
#
# @overload get_stage(params = {})
# @param [Hash] params ({})
def get_stage(params = {}, options = {})
req = build_request(:get_stage, params)
@@ -2364,19 +2397,91 @@
# resp.items[0].route_settings["__string"].throttling_burst_limit #=> Integer
# resp.items[0].route_settings["__string"].throttling_rate_limit #=> Float
# resp.items[0].stage_name #=> String
# resp.items[0].stage_variables #=> Hash
# resp.items[0].stage_variables["__string"] #=> String
+ # resp.items[0].tags #=> Hash
+ # resp.items[0].tags["__string"] #=> String
# resp.next_token #=> String
#
# @overload get_stages(params = {})
# @param [Hash] params ({})
def get_stages(params = {}, options = {})
req = build_request(:get_stages, params)
req.send_request(options)
end
+ # Gets the Tags for a resource.
+ #
+ # @option params [required, String] :resource_arn
+ #
+ # @return [Types::GetTagsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetTagsResponse#tags #tags} => Hash<String,String>
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.get_tags({
+ # resource_arn: "__string", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.tags #=> Hash
+ # resp.tags["__string"] #=> String
+ #
+ # @overload get_tags(params = {})
+ # @param [Hash] params ({})
+ def get_tags(params = {}, options = {})
+ req = build_request(:get_tags, params)
+ req.send_request(options)
+ end
+
+ # @option params [required, String] :resource_arn
+ #
+ # @option params [Hash<String,String>] :tags
+ # A key value pair of string with key length between\[1-128\] and value
+ # length between\[1-256\]
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.tag_resource({
+ # resource_arn: "__string", # required
+ # tags: {
+ # "__string" => "StringWithLengthBetween1And1600",
+ # },
+ # })
+ #
+ # @overload tag_resource(params = {})
+ # @param [Hash] params ({})
+ def tag_resource(params = {}, options = {})
+ req = build_request(:tag_resource, params)
+ req.send_request(options)
+ end
+
+ # @option params [required, String] :resource_arn
+ #
+ # @option params [required, Array<String>] :tag_keys
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.untag_resource({
+ # resource_arn: "__string", # required
+ # tag_keys: ["__string"], # required
+ # })
+ #
+ # @overload untag_resource(params = {})
+ # @param [Hash] params ({})
+ def untag_resource(params = {}, options = {})
+ req = build_request(:untag_resource, params)
+ req.send_request(options)
+ end
+
# Updates an Api resource.
#
# @option params [required, String] :api_id
#
# @option params [String] :api_key_selection_expression
@@ -3287,10 +3392,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-apigatewayv2'
- context[:gem_version] = '1.9.0'
+ context[:gem_version] = '1.10.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated