UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

94 lines 2.92 kB
"use strict"; // *** 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.getPatchBaselineOutput = exports.getPatchBaseline = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides an SSM Patch Baseline data source. Useful if you wish to reuse the default baselines provided. * * ## Example Usage * * To retrieve a baseline provided by AWS: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const centos = aws.ssm.getPatchBaseline({ * owner: "AWS", * namePrefix: "AWS-", * operatingSystem: "CENTOS", * }); * ``` * * To retrieve a baseline on your account: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const defaultCustom = aws.ssm.getPatchBaseline({ * owner: "Self", * namePrefix: "MyCustomBaseline", * defaultBaseline: true, * operatingSystem: "WINDOWS", * }); * ``` */ function getPatchBaseline(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ssm/getPatchBaseline:getPatchBaseline", { "defaultBaseline": args.defaultBaseline, "namePrefix": args.namePrefix, "operatingSystem": args.operatingSystem, "owner": args.owner, "region": args.region, }, opts); } exports.getPatchBaseline = getPatchBaseline; /** * Provides an SSM Patch Baseline data source. Useful if you wish to reuse the default baselines provided. * * ## Example Usage * * To retrieve a baseline provided by AWS: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const centos = aws.ssm.getPatchBaseline({ * owner: "AWS", * namePrefix: "AWS-", * operatingSystem: "CENTOS", * }); * ``` * * To retrieve a baseline on your account: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const defaultCustom = aws.ssm.getPatchBaseline({ * owner: "Self", * namePrefix: "MyCustomBaseline", * defaultBaseline: true, * operatingSystem: "WINDOWS", * }); * ``` */ function getPatchBaselineOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ssm/getPatchBaseline:getPatchBaseline", { "defaultBaseline": args.defaultBaseline, "namePrefix": args.namePrefix, "operatingSystem": args.operatingSystem, "owner": args.owner, "region": args.region, }, opts); } exports.getPatchBaselineOutput = getPatchBaselineOutput; //# sourceMappingURL=getPatchBaseline.js.map