Class: Aws::APIGateway::Types::CreateUsagePlanRequest

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 CreateUsagePlanRequest data as a hash:

{
  name: "String", # required
  description: "String",
  api_stages: [
    {
      api_id: "String",
      stage: "String",
    },
  ],
  throttle: {
    burst_limit: 1,
    rate_limit: 1.0,
  },
  quota: {
    limit: 1,
    offset: 1,
    period: "DAY", # accepts DAY, WEEK, MONTH
  },
}

The POST request to create a usage plan with the name, description, throttle limits and quota limits, as well as the associated API stages, specified in the payload.

Instance Attribute Summary collapse

Instance Attribute Details

#api_stagesArray<Types::ApiStage>

The associated API stages of the usage plan.

Returns:



1211
1212
1213
1214
1215
1216
1217
1218
# File 'lib/aws-sdk-apigateway/types.rb', line 1211

class CreateUsagePlanRequest < Struct.new(
  :name,
  :description,
  :api_stages,
  :throttle,
  :quota)
  include Aws::Structure
end

#descriptionString

The description of the usage plan.

Returns:

  • (String)


1211
1212
1213
1214
1215
1216
1217
1218
# File 'lib/aws-sdk-apigateway/types.rb', line 1211

class CreateUsagePlanRequest < Struct.new(
  :name,
  :description,
  :api_stages,
  :throttle,
  :quota)
  include Aws::Structure
end

#nameString

The name of the usage plan.

Returns:

  • (String)


1211
1212
1213
1214
1215
1216
1217
1218
# File 'lib/aws-sdk-apigateway/types.rb', line 1211

class CreateUsagePlanRequest < Struct.new(
  :name,
  :description,
  :api_stages,
  :throttle,
  :quota)
  include Aws::Structure
end

#quotaTypes::QuotaSettings

The quota of the usage plan.



1211
1212
1213
1214
1215
1216
1217
1218
# File 'lib/aws-sdk-apigateway/types.rb', line 1211

class CreateUsagePlanRequest < Struct.new(
  :name,
  :description,
  :api_stages,
  :throttle,
  :quota)
  include Aws::Structure
end

#throttleTypes::ThrottleSettings

The throttling limits of the usage plan.



1211
1212
1213
1214
1215
1216
1217
1218
# File 'lib/aws-sdk-apigateway/types.rb', line 1211

class CreateUsagePlanRequest < Struct.new(
  :name,
  :description,
  :api_stages,
  :throttle,
  :quota)
  include Aws::Structure
end