CfnRuleMixinProps
- class aws_cdk.mixins_preview.aws_vpclattice.mixins.CfnRuleMixinProps(*, action=None, listener_identifier=None, match=None, name=None, priority=None, service_identifier=None, tags=None)
Bases:
objectProperties for CfnRulePropsMixin.
- Parameters:
action (
Union[IResolvable,ActionProperty,Dict[str,Any],None]) – Describes the action for a rule.listener_identifier (
Optional[str]) – The ID or ARN of the listener.match (
Union[IResolvable,MatchProperty,Dict[str,Any],None]) – The rule match.name (
Optional[str]) – 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.priority (
Union[int,float,None]) – 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.service_identifier (
Optional[str]) – The ID or ARN of the service.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – The tags for the rule.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-rule.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_vpclattice import mixins as vpclattice_mixins cfn_rule_mixin_props = vpclattice_mixins.CfnRuleMixinProps( action=vpclattice_mixins.CfnRulePropsMixin.ActionProperty( fixed_response=vpclattice_mixins.CfnRulePropsMixin.FixedResponseProperty( status_code=123 ), forward=vpclattice_mixins.CfnRulePropsMixin.ForwardProperty( target_groups=[vpclattice_mixins.CfnRulePropsMixin.WeightedTargetGroupProperty( target_group_identifier="targetGroupIdentifier", weight=123 )] ) ), listener_identifier="listenerIdentifier", match=vpclattice_mixins.CfnRulePropsMixin.MatchProperty( http_match=vpclattice_mixins.CfnRulePropsMixin.HttpMatchProperty( header_matches=[vpclattice_mixins.CfnRulePropsMixin.HeaderMatchProperty( case_sensitive=False, match=vpclattice_mixins.CfnRulePropsMixin.HeaderMatchTypeProperty( contains="contains", exact="exact", prefix="prefix" ), name="name" )], method="method", path_match=vpclattice_mixins.CfnRulePropsMixin.PathMatchProperty( case_sensitive=False, match=vpclattice_mixins.CfnRulePropsMixin.PathMatchTypeProperty( exact="exact", prefix="prefix" ) ) ) ), name="name", priority=123, service_identifier="serviceIdentifier", tags=[CfnTag( key="key", value="value" )] )
Attributes
- action
Describes the action for a rule.
- listener_identifier
The ID or ARN of the listener.
- match
The rule match.
- 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.
- 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.
- service_identifier
The ID or ARN of the service.
- tags
The tags for the rule.