You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::APIGateway::Types::CreateResourceRequest

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

Overview

Note:

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

{
  rest_api_id: "String", # required
  parent_id: "String", # required
  path_part: "String", # required
}

Requests API Gateway to create a Resource resource.

Instance Attribute Summary collapse

Instance Attribute Details

#parent_idString

The parent resource's identifier.

Returns:

  • (String)


1122
1123
1124
1125
1126
1127
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 1122

class CreateResourceRequest < Struct.new(
  :rest_api_id,
  :parent_id,
  :path_part)
  include Aws::Structure
end

#path_partString

The last path segment for this resource.

Returns:

  • (String)


1122
1123
1124
1125
1126
1127
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 1122

class CreateResourceRequest < Struct.new(
  :rest_api_id,
  :parent_id,
  :path_part)
  include Aws::Structure
end

#rest_api_idString

The string identifier of the associated RestApi.

Returns:

  • (String)


1122
1123
1124
1125
1126
1127
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 1122

class CreateResourceRequest < Struct.new(
  :rest_api_id,
  :parent_id,
  :path_part)
  include Aws::Structure
end