Class: AWSCDK::ECS::CfnService::ServiceConnectTestTrafficRulesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnService::ServiceConnectTestTrafficRulesProperty
- Defined in:
- ecs/cfn_service.rb
Overview
The test traffic routing configuration for Amazon ECS blue/green deployments.
This configuration allows you to define rules for routing specific traffic to the new service revision during the deployment process, allowing for safe testing before full production traffic shift.
For more information, see Service Connect for Amazon ECS blue/green deployments in the Amazon Elastic Container Service Developer Guide .
Instance Attribute Summary collapse
-
#header ⇒ AWSCDK::IResolvable, AWSCDK::ECS::CfnService::ServiceConnectTestTrafficRulesHeaderProperty
readonly
The HTTP header-based routing rules that determine which requests should be routed to the new service version during blue/green deployment testing.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(header:) ⇒ ServiceConnectTestTrafficRulesProperty
constructor
A new instance of ServiceConnectTestTrafficRulesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(header:) ⇒ ServiceConnectTestTrafficRulesProperty
Returns a new instance of ServiceConnectTestTrafficRulesProperty.
2800 2801 2802 2803 |
# File 'ecs/cfn_service.rb', line 2800 def initialize(header:) @header = header.is_a?(Hash) ? ::AWSCDK::ECS::CfnService::ServiceConnectTestTrafficRulesHeaderProperty.new(**header.transform_keys(&:to_sym)) : header Jsii::Type.check_type(@header, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuQ2ZuU2VydmljZS5TZXJ2aWNlQ29ubmVjdFRlc3RUcmFmZmljUnVsZXNIZWFkZXJQcm9wZXJ0eSJ9XX19")), "header") end |
Instance Attribute Details
#header ⇒ AWSCDK::IResolvable, AWSCDK::ECS::CfnService::ServiceConnectTestTrafficRulesHeaderProperty (readonly)
The HTTP header-based routing rules that determine which requests should be routed to the new service version during blue/green deployment testing.
These rules provide fine-grained control over test traffic routing based on request headers.
2811 2812 2813 |
# File 'ecs/cfn_service.rb', line 2811 def header @header end |
Class Method Details
.jsii_properties ⇒ Object
2813 2814 2815 2816 2817 |
# File 'ecs/cfn_service.rb', line 2813 def self.jsii_properties { :header => "header", } end |
Instance Method Details
#to_jsii ⇒ Object
2819 2820 2821 2822 2823 2824 2825 |
# File 'ecs/cfn_service.rb', line 2819 def to_jsii result = {} result.merge!({ "header" => @header, }) result.compact end |