AWS Native is in preview. AWS Classic is fully supported.
aws-native.vpclattice.getRule
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Creates a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions.
Using getRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRule(args: GetRuleArgs, opts?: InvokeOptions): Promise<GetRuleResult>
function getRuleOutput(args: GetRuleOutputArgs, opts?: InvokeOptions): Output<GetRuleResult>
def get_rule(arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRuleResult
def get_rule_output(arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRuleResult]
func LookupRule(ctx *Context, args *LookupRuleArgs, opts ...InvokeOption) (*LookupRuleResult, error)
func LookupRuleOutput(ctx *Context, args *LookupRuleOutputArgs, opts ...InvokeOption) LookupRuleResultOutput
> Note: This function is named LookupRule
in the Go SDK.
public static class GetRule
{
public static Task<GetRuleResult> InvokeAsync(GetRuleArgs args, InvokeOptions? opts = null)
public static Output<GetRuleResult> Invoke(GetRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRuleResult> getRule(GetRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:vpclattice:getRule
arguments:
# arguments dictionary
The following arguments are supported:
- Arn string
- Arn string
- arn String
- arn string
- arn str
- arn String
getRule Result
The following output properties are available:
- action Property Map
- arn String
- id String
- match Property Map
- priority Number
- List<Property Map>
Supporting Types
RuleAction
RuleFixedResponse
- Status
Code int
- Status
Code int
- status
Code Integer
- status
Code number
- status_
code int
- status
Code Number
RuleForward
RuleHeaderMatch
- Match
Rule
Header Match Type - Name string
- Case
Sensitive bool
- match
Rule
Header Match Type - name String
- case
Sensitive Boolean
- match
Rule
Header Match Type - name string
- case
Sensitive boolean
- match Property Map
- name String
- case
Sensitive Boolean
RuleHeaderMatchType
RuleHttpMatch
RuleHttpMatchMethod
RuleMatch
RulePathMatch
- match
Rule
Path Match Type - case
Sensitive Boolean
- match
Rule
Path Match Type - case
Sensitive boolean
- match Property Map
- case
Sensitive Boolean
RulePathMatchType
RuleWeightedTargetGroup
- Target
Group stringIdentifier - Weight int
- Target
Group stringIdentifier - Weight int
- target
Group StringIdentifier - weight Integer
- target
Group stringIdentifier - weight number
- target_
group_ stridentifier - weight int
- target
Group StringIdentifier - weight Number
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.