@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
70 lines • 2.28 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.getAmiIdsOutput = exports.getAmiIds = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get a list of AMI IDs matching the specified criteria.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const ubuntu = aws.ec2.getAmiIds({
* owners: ["099720109477"],
* filters: [{
* name: "name",
* values: ["ubuntu/images/ubuntu-*-*-amd64-server-*"],
* }],
* });
* ```
*/
function getAmiIds(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2/getAmiIds:getAmiIds", {
"executableUsers": args.executableUsers,
"filters": args.filters,
"includeDeprecated": args.includeDeprecated,
"nameRegex": args.nameRegex,
"owners": args.owners,
"region": args.region,
"sortAscending": args.sortAscending,
}, opts);
}
exports.getAmiIds = getAmiIds;
/**
* Use this data source to get a list of AMI IDs matching the specified criteria.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const ubuntu = aws.ec2.getAmiIds({
* owners: ["099720109477"],
* filters: [{
* name: "name",
* values: ["ubuntu/images/ubuntu-*-*-amd64-server-*"],
* }],
* });
* ```
*/
function getAmiIdsOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2/getAmiIds:getAmiIds", {
"executableUsers": args.executableUsers,
"filters": args.filters,
"includeDeprecated": args.includeDeprecated,
"nameRegex": args.nameRegex,
"owners": args.owners,
"region": args.region,
"sortAscending": args.sortAscending,
}, opts);
}
exports.getAmiIdsOutput = getAmiIdsOutput;
//# sourceMappingURL=getAmiIds.js.map