Class CfnService.ServiceConnectTestTrafficRulesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.ServiceConnectTestTrafficRulesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.ServiceConnectTestTrafficRulesProperty>
- Enclosing interface:
CfnService.ServiceConnectTestTrafficRulesProperty
@Stability(Stable)
public static final class CfnService.ServiceConnectTestTrafficRulesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.ServiceConnectTestTrafficRulesProperty>
A builder for
CfnService.ServiceConnectTestTrafficRulesProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.header
(IResolvable header) Sets the value ofCfnService.ServiceConnectTestTrafficRulesProperty.getHeader()
Sets the value ofCfnService.ServiceConnectTestTrafficRulesProperty.getHeader()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
header
@Stability(Stable) public CfnService.ServiceConnectTestTrafficRulesProperty.Builder header(IResolvable header) Sets the value ofCfnService.ServiceConnectTestTrafficRulesProperty.getHeader()
- Parameters:
header
- The HTTP header-based routing rules that determine which requests should be routed to the new service version during blue/green deployment testing. This parameter is required. These rules provide fine-grained control over test traffic routing based on request headers.- Returns:
this
-
header
@Stability(Stable) public CfnService.ServiceConnectTestTrafficRulesProperty.Builder header(CfnService.ServiceConnectTestTrafficRulesHeaderProperty header) Sets the value ofCfnService.ServiceConnectTestTrafficRulesProperty.getHeader()
- Parameters:
header
- The HTTP header-based routing rules that determine which requests should be routed to the new service version during blue/green deployment testing. This parameter is required. These rules provide fine-grained control over test traffic routing based on request headers.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.ServiceConnectTestTrafficRulesProperty>
- Returns:
- a new instance of
CfnService.ServiceConnectTestTrafficRulesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-