Class CfnRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule>
- Enclosing class:
CfnRule
CfnRule
.-
Method Summary
Modifier and TypeMethodDescriptionaction
(IResolvable action) Describes the action for a rule.action
(CfnRule.ActionProperty action) Describes the action for a rule.build()
static CfnRule.Builder
listenerIdentifier
(String listenerIdentifier) The ID or Amazon Resource Name (ARN) of the listener.match
(IResolvable match) The rule match.match
(CfnRule.MatchProperty match) The rule match.The name of the rule.The priority assigned to the rule.serviceIdentifier
(String serviceIdentifier) The ID or Amazon Resource Name (ARN) of the service.The tags for the rule.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnRule.Builder
.
-
action
Describes the action for a rule.Each rule must include exactly one of the following types of actions:
forward
orfixed-response
, and it must be the last action to be performed.- Parameters:
action
- Describes the action for a rule. This parameter is required.- Returns:
this
-
action
Describes the action for a rule.Each rule must include exactly one of the following types of actions:
forward
orfixed-response
, and it must be the last action to be performed.- Parameters:
action
- Describes the action for a rule. This parameter is required.- Returns:
this
-
match
The rule match.- Parameters:
match
- The rule match. This parameter is required.- Returns:
this
-
match
The rule match.- Parameters:
match
- The rule match. This parameter is required.- Returns:
this
-
priority
The priority assigned to the rule.Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority.
- Parameters:
priority
- The priority assigned to the rule. This parameter is required.- Returns:
this
-
listenerIdentifier
The ID or Amazon Resource Name (ARN) of the listener.- Parameters:
listenerIdentifier
- The ID or Amazon Resource Name (ARN) of the listener. This parameter is required.- Returns:
this
-
name
The name of the rule.The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
- Parameters:
name
- The name of the rule. This parameter is required.- Returns:
this
-
serviceIdentifier
The ID or Amazon Resource Name (ARN) of the service.- Parameters:
serviceIdentifier
- The ID or Amazon Resource Name (ARN) of the service. This parameter is required.- Returns:
this
-
tags
The tags for the rule.- Parameters:
tags
- The tags for the rule. This parameter is required.- Returns:
this
-
build
-