Package com.pulumi.aws.alb
Class ListenerRule
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.alb.ListenerRule
-
public class ListenerRule extends com.pulumi.resources.CustomResourceProvides a Load Balancer Listener Rule resource. > **Note:** `aws.alb.ListenerRule` is known as `aws.lb.ListenerRule`. The functionality is identical. #### Required - `arn` (String) ARN of the load balancer listener rule. Using `pulumi import`, import rules using their ARN. For example: ```sh $ pulumi import aws:alb/listenerRule:ListenerRule front_end arn:aws:elasticloadbalancing:us-west-2:187416307283:listener-rule/app/test/8e4497da625e2d8a/9ab28ade35828f96/67b3d2d36dd7c26b ```
-
-
Constructor Summary
Constructors Constructor Description ListenerRule(java.lang.String name)ListenerRule(java.lang.String name, ListenerRuleArgs args)ListenerRule(java.lang.String name, ListenerRuleArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.List<ListenerRuleAction>>actions()com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.util.List<ListenerRuleCondition>>conditions()static ListenerRuleget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ListenerRuleState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>listenerArn()com.pulumi.core.Output<java.lang.Integer>priority()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.util.Optional<java.util.List<ListenerRuleTransform>>>transforms()
-
-
-
Constructor Detail
-
ListenerRule
public ListenerRule(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ListenerRule
public ListenerRule(java.lang.String name, ListenerRuleArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ListenerRule
public ListenerRule(java.lang.String name, ListenerRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
actions
public com.pulumi.core.Output<java.util.List<ListenerRuleAction>> actions()
- Returns:
- An Action block. Action blocks are documented below.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The ARN of the rule (matches `id`)
-
conditions
public com.pulumi.core.Output<java.util.List<ListenerRuleCondition>> conditions()
- Returns:
- A Condition block. Multiple condition blocks of different types can be set and all must be satisfied for the rule to match. Condition blocks are documented below.
-
listenerArn
public com.pulumi.core.Output<java.lang.String> listenerArn()
- Returns:
- The ARN of the listener to which to attach the rule.
-
priority
public com.pulumi.core.Output<java.lang.Integer> priority()
- Returns:
- The priority for the rule between `1` and `50000`. Leaving it unset will automatically set the rule with next available priority after currently existing highest rule. A listener can't have multiple rules with the same priority.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
transforms
public com.pulumi.core.Output<java.util.Optional<java.util.List<ListenerRuleTransform>>> transforms()
- Returns:
- Configuration block that defines the transform to apply to requests matching this rule. See Transform Blocks below for more details. Once specified, to remove the transform from the rule, remove the `transform` block from the configuration.
-
get
public static ListenerRule get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ListenerRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-