public static interface CreateRuleRequest.Builder extends ElasticLoadBalancingV2Request.Builder, SdkPojo, CopyableBuilder<CreateRuleRequest.Builder,CreateRuleRequest>
buildoverrideConfigurationcopyapplyMutation, buildCreateRuleRequest.Builder listenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
listenerArn - The Amazon Resource Name (ARN) of the listener.CreateRuleRequest.Builder conditions(Collection<RuleCondition> conditions)
The conditions. Each condition specifies a field name and a single value.
If the field name is host-header, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any
of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern. A path pattern is
case-sensitive, can be up to 128 characters in length, and can contain any of the following characters. You
can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
conditions - The conditions. Each condition specifies a field name and a single value.
If the field name is host-header, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can
contain any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern. A path pattern
is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
CreateRuleRequest.Builder conditions(RuleCondition... conditions)
The conditions. Each condition specifies a field name and a single value.
If the field name is host-header, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any
of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern. A path pattern is
case-sensitive, can be up to 128 characters in length, and can contain any of the following characters. You
can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
conditions - The conditions. Each condition specifies a field name and a single value.
If the field name is host-header, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can
contain any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern. A path pattern
is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
CreateRuleRequest.Builder conditions(Consumer<RuleCondition.Builder>... conditions)
The conditions. Each condition specifies a field name and a single value.
If the field name is host-header, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any
of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern. A path pattern is
case-sensitive, can be up to 128 characters in length, and can contain any of the following characters. You
can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
List.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #conditions(List) .conditions - a consumer that will call methods on List.Builder #conditions(List) CreateRuleRequest.Builder priority(Integer priority)
The rule priority. A listener can't have multiple rules with the same priority.
priority - The rule priority. A listener can't have multiple rules with the same priority.CreateRuleRequest.Builder actions(Collection<Action> actions)
The actions. Each rule must include exactly one of the following types of actions: forward,
fixed-response, or redirect.
If the action type is forward, you specify a target group. The protocol of the target group must
be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.
[HTTPS listener] If the action type is authenticate-oidc, you authenticate users through an
identity provider that is OpenID Connect (OIDC) compliant.
[HTTPS listener] If the action type is authenticate-cognito, you authenticate users through the
user pools supported by Amazon Cognito.
[Application Load Balancer] If the action type is redirect, you redirect specified client
requests from one URL to another.
[Application Load Balancer] If the action type is fixed-response, you drop specified client
requests and return a custom HTTP response.
actions - The actions. Each rule must include exactly one of the following types of actions:
forward, fixed-response, or redirect.
If the action type is forward, you specify a target group. The protocol of the target
group must be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.
[HTTPS listener] If the action type is authenticate-oidc, you authenticate users through
an identity provider that is OpenID Connect (OIDC) compliant.
[HTTPS listener] If the action type is authenticate-cognito, you authenticate users
through the user pools supported by Amazon Cognito.
[Application Load Balancer] If the action type is redirect, you redirect specified client
requests from one URL to another.
[Application Load Balancer] If the action type is fixed-response, you drop specified
client requests and return a custom HTTP response.
CreateRuleRequest.Builder actions(Action... actions)
The actions. Each rule must include exactly one of the following types of actions: forward,
fixed-response, or redirect.
If the action type is forward, you specify a target group. The protocol of the target group must
be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.
[HTTPS listener] If the action type is authenticate-oidc, you authenticate users through an
identity provider that is OpenID Connect (OIDC) compliant.
[HTTPS listener] If the action type is authenticate-cognito, you authenticate users through the
user pools supported by Amazon Cognito.
[Application Load Balancer] If the action type is redirect, you redirect specified client
requests from one URL to another.
[Application Load Balancer] If the action type is fixed-response, you drop specified client
requests and return a custom HTTP response.
actions - The actions. Each rule must include exactly one of the following types of actions:
forward, fixed-response, or redirect.
If the action type is forward, you specify a target group. The protocol of the target
group must be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.
[HTTPS listener] If the action type is authenticate-oidc, you authenticate users through
an identity provider that is OpenID Connect (OIDC) compliant.
[HTTPS listener] If the action type is authenticate-cognito, you authenticate users
through the user pools supported by Amazon Cognito.
[Application Load Balancer] If the action type is redirect, you redirect specified client
requests from one URL to another.
[Application Load Balancer] If the action type is fixed-response, you drop specified
client requests and return a custom HTTP response.
CreateRuleRequest.Builder actions(Consumer<Action.Builder>... actions)
The actions. Each rule must include exactly one of the following types of actions: forward,
fixed-response, or redirect.
If the action type is forward, you specify a target group. The protocol of the target group must
be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.
[HTTPS listener] If the action type is authenticate-oidc, you authenticate users through an
identity provider that is OpenID Connect (OIDC) compliant.
[HTTPS listener] If the action type is authenticate-cognito, you authenticate users through the
user pools supported by Amazon Cognito.
[Application Load Balancer] If the action type is redirect, you redirect specified client
requests from one URL to another.
[Application Load Balancer] If the action type is fixed-response, you drop specified client
requests and return a custom HTTP response.
List.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #actions(List) .actions - a consumer that will call methods on List.Builder #actions(List) CreateRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderoverrideConfiguration - The override configuration.CreateRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.