@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
102 lines • 3.19 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getListenerRuleOutput = exports.getListenerRule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides information about an AWS Elastic Load Balancing Listener Rule.
*
* ## Example Usage
*
* ### Match by Rule ARN
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const lbRuleArn = config.require("lbRuleArn");
* const example = aws.lb.getListenerRule({
* arn: lbRuleArn,
* });
* ```
*
* ### Match by Listener ARN and Priority
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const lbListenerArn = config.require("lbListenerArn");
* const lbRulePriority = config.requireNumber("lbRulePriority");
* const example = aws.lb.getListenerRule({
* listenerArn: lbListenerArn,
* priority: lbRulePriority,
* });
* ```
*/
function getListenerRule(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:lb/getListenerRule:getListenerRule", {
"actions": args.actions,
"arn": args.arn,
"conditions": args.conditions,
"listenerArn": args.listenerArn,
"priority": args.priority,
"region": args.region,
"transforms": args.transforms,
}, opts);
}
exports.getListenerRule = getListenerRule;
/**
* Provides information about an AWS Elastic Load Balancing Listener Rule.
*
* ## Example Usage
*
* ### Match by Rule ARN
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const lbRuleArn = config.require("lbRuleArn");
* const example = aws.lb.getListenerRule({
* arn: lbRuleArn,
* });
* ```
*
* ### Match by Listener ARN and Priority
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const lbListenerArn = config.require("lbListenerArn");
* const lbRulePriority = config.requireNumber("lbRulePriority");
* const example = aws.lb.getListenerRule({
* listenerArn: lbListenerArn,
* priority: lbRulePriority,
* });
* ```
*/
function getListenerRuleOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:lb/getListenerRule:getListenerRule", {
"actions": args.actions,
"arn": args.arn,
"conditions": args.conditions,
"listenerArn": args.listenerArn,
"priority": args.priority,
"region": args.region,
"transforms": args.transforms,
}, opts);
}
exports.getListenerRuleOutput = getListenerRuleOutput;
//# sourceMappingURL=getListenerRule.js.map