Class: Aws::APIGateway::Types::CreateApiKeyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::APIGateway::Types::CreateApiKeyRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-apigateway/types.rb
Overview
When making an API call, you may pass CreateApiKeyRequest data as a hash:
{
name: "String",
description: "String",
enabled: false,
generate_distinct_id: false,
value: "String",
stage_keys: [
{
rest_api_id: "String",
stage_name: "String",
},
],
customer_id: "String",
}
Request to create an ApiKey resource.
Instance Attribute Summary collapse
-
#customer_id ⇒ String
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
-
#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.
-
#name ⇒ String
The name of the ApiKey.
-
#stage_keys ⇒ Array<Types::StageKey>
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
-
#value ⇒ String
Specifies a value of the API key.
Instance Attribute Details
permalink #customer_id ⇒ String
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
601 602 603 604 605 606 607 608 609 610 |
# File 'lib/aws-sdk-apigateway/types.rb', line 601 class CreateApiKeyRequest < Struct.new( :name, :description, :enabled, :generate_distinct_id, :value, :stage_keys, :customer_id) include Aws::Structure end |
permalink #description ⇒ String
The description of the ApiKey.
601 602 603 604 605 606 607 608 609 610 |
# File 'lib/aws-sdk-apigateway/types.rb', line 601 class CreateApiKeyRequest < Struct.new( :name, :description, :enabled, :generate_distinct_id, :value, :stage_keys, :customer_id) include Aws::Structure end |
permalink #enabled ⇒ Boolean
Specifies whether the ApiKey can be used by callers.
601 602 603 604 605 606 607 608 609 610 |
# File 'lib/aws-sdk-apigateway/types.rb', line 601 class CreateApiKeyRequest < Struct.new( :name, :description, :enabled, :generate_distinct_id, :value, :stage_keys, :customer_id) include Aws::Structure end |
permalink #generate_distinct_id ⇒ Boolean
Specifies whether (‘true`) or not (`false`) the key identifier is distinct from the created API key value.
601 602 603 604 605 606 607 608 609 610 |
# File 'lib/aws-sdk-apigateway/types.rb', line 601 class CreateApiKeyRequest < Struct.new( :name, :description, :enabled, :generate_distinct_id, :value, :stage_keys, :customer_id) include Aws::Structure end |
permalink #name ⇒ String
The name of the ApiKey.
601 602 603 604 605 606 607 608 609 610 |
# File 'lib/aws-sdk-apigateway/types.rb', line 601 class CreateApiKeyRequest < Struct.new( :name, :description, :enabled, :generate_distinct_id, :value, :stage_keys, :customer_id) include Aws::Structure end |
permalink #stage_keys ⇒ Array<Types::StageKey>
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
601 602 603 604 605 606 607 608 609 610 |
# File 'lib/aws-sdk-apigateway/types.rb', line 601 class CreateApiKeyRequest < Struct.new( :name, :description, :enabled, :generate_distinct_id, :value, :stage_keys, :customer_id) include Aws::Structure end |
permalink #value ⇒ String
Specifies a value of the API key.
601 602 603 604 605 606 607 608 609 610 |
# File 'lib/aws-sdk-apigateway/types.rb', line 601 class CreateApiKeyRequest < Struct.new( :name, :description, :enabled, :generate_distinct_id, :value, :stage_keys, :customer_id) include Aws::Structure end |