Class: Aws::APIGateway::Types::UpdateMethodResponseRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-apigateway/types.rb

Overview

Note:

When making an API call, you may pass UpdateMethodResponseRequest data as a hash:

{
  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",
    },
  ],
}

A request to update an existing MethodResponse resource.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#http_methodString

[Required] The HTTP verb of the Method resource.

Returns:

  • (String)


7733
7734
7735
7736
7737
7738
7739
7740
7741
# File 'lib/aws-sdk-apigateway/types.rb', line 7733

class UpdateMethodResponseRequest < Struct.new(
  :rest_api_id,
  :resource_id,
  :http_method,
  :status_code,
  :patch_operations)
  SENSITIVE = []
  include Aws::Structure
end

#patch_operationsArray<Types::PatchOperation>

A list of update operations to be applied to the specified resource and in the order specified in this list.

Returns:



7733
7734
7735
7736
7737
7738
7739
7740
7741
# File 'lib/aws-sdk-apigateway/types.rb', line 7733

class UpdateMethodResponseRequest < Struct.new(
  :rest_api_id,
  :resource_id,
  :http_method,
  :status_code,
  :patch_operations)
  SENSITIVE = []
  include Aws::Structure
end

#resource_idString

[Required] The Resource identifier for the MethodResponse resource.

Returns:

  • (String)


7733
7734
7735
7736
7737
7738
7739
7740
7741
# File 'lib/aws-sdk-apigateway/types.rb', line 7733

class UpdateMethodResponseRequest < Struct.new(
  :rest_api_id,
  :resource_id,
  :http_method,
  :status_code,
  :patch_operations)
  SENSITIVE = []
  include Aws::Structure
end

#rest_api_idString

[Required] The string identifier of the associated RestApi.

Returns:

  • (String)


7733
7734
7735
7736
7737
7738
7739
7740
7741
# File 'lib/aws-sdk-apigateway/types.rb', line 7733

class UpdateMethodResponseRequest < Struct.new(
  :rest_api_id,
  :resource_id,
  :http_method,
  :status_code,
  :patch_operations)
  SENSITIVE = []
  include Aws::Structure
end

#status_codeString

[Required] The status code for the MethodResponse resource.

Returns:

  • (String)


7733
7734
7735
7736
7737
7738
7739
7740
7741
# File 'lib/aws-sdk-apigateway/types.rb', line 7733

class UpdateMethodResponseRequest < Struct.new(
  :rest_api_id,
  :resource_id,
  :http_method,
  :status_code,
  :patch_operations)
  SENSITIVE = []
  include Aws::Structure
end