@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
60 lines • 1.94 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.getMaintenanceWindowsOutput = exports.getMaintenanceWindows = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the window IDs of SSM maintenance windows.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ssm.getMaintenanceWindows({
* filters: [{
* name: "Enabled",
* values: ["true"],
* }],
* });
* ```
*/
function getMaintenanceWindows(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ssm/getMaintenanceWindows:getMaintenanceWindows", {
"filters": args.filters,
"region": args.region,
}, opts);
}
exports.getMaintenanceWindows = getMaintenanceWindows;
/**
* Use this data source to get the window IDs of SSM maintenance windows.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ssm.getMaintenanceWindows({
* filters: [{
* name: "Enabled",
* values: ["true"],
* }],
* });
* ```
*/
function getMaintenanceWindowsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ssm/getMaintenanceWindows:getMaintenanceWindows", {
"filters": args.filters,
"region": args.region,
}, opts);
}
exports.getMaintenanceWindowsOutput = getMaintenanceWindowsOutput;
//# sourceMappingURL=getMaintenanceWindows.js.map