Class: Aws::ApiGatewayV2::Types::CreateStageRequest

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

Overview

Note:

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

{
  access_log_settings: {
    destination_arn: "Arn",
    format: "StringWithLengthBetween1And1024",
  },
  api_id: "__string", # required
  auto_deploy: false,
  client_certificate_id: "Id",
  default_route_settings: {
    data_trace_enabled: false,
    detailed_metrics_enabled: false,
    logging_level: "ERROR", # accepts ERROR, INFO, OFF
    throttling_burst_limit: 1,
    throttling_rate_limit: 1.0,
  },
  deployment_id: "Id",
  description: "StringWithLengthBetween0And1024",
  route_settings: {
    "__string" => {
      data_trace_enabled: false,
      detailed_metrics_enabled: false,
      logging_level: "ERROR", # accepts ERROR, INFO, OFF
      throttling_burst_limit: 1,
      throttling_rate_limit: 1.0,
    },
  },
  stage_name: "StringWithLengthBetween1And128", # required
  stage_variables: {
    "__string" => "StringWithLengthBetween0And2048",
  },
  tags: {
    "__string" => "StringWithLengthBetween1And1600",
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#access_log_settingsTypes::AccessLogSettings

Settings for logging access in a stage.



2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#api_idString

Returns:

  • (String)


2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#auto_deployBoolean

Returns:

  • (Boolean)


2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#client_certificate_idString

The identifier.

Returns:

  • (String)


2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#default_route_settingsTypes::RouteSettings

Represents a collection of route settings.



2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#deployment_idString

The identifier.

Returns:

  • (String)


2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionString

A string with a length between [0-1024].

Returns:

  • (String)


2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#route_settingsHash<String,Types::RouteSettings>

The route settings map.

Returns:



2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#stage_nameString

A string with a length between [1-128].

Returns:

  • (String)


2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#stage_variablesHash<String,String>

The stage variable map.

Returns:

  • (Hash<String,String>)


2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsHash<String,String>

Represents a collection of tags associated with the resource.

Returns:

  • (Hash<String,String>)


2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2498

class CreateStageRequest < Struct.new(
  :access_log_settings,
  :api_id,
  :auto_deploy,
  :client_certificate_id,
  :default_route_settings,
  :deployment_id,
  :description,
  :route_settings,
  :stage_name,
  :stage_variables,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end