UNPKG

@pulumi/aws

Version:

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

108 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.getAssetsOutput = exports.getAssets = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Information about hardware assets in an Outpost. * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.outposts.getAssets({ * arn: exampleAwsOutpostsOutpost.arn, * }); * ``` * * ### With Host ID Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.outposts.getAssets({ * arn: exampleAwsOutpostsOutpost.arn, * hostIdFilters: ["h-x38g5n0yd2a0ueb61"], * }); * ``` * * ### With Status ID Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.outposts.getAssets({ * arn: exampleAwsOutpostsOutpost.arn, * statusIdFilters: ["ACTIVE"], * }); * ``` */ function getAssets(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:outposts/getAssets:getAssets", { "arn": args.arn, "hostIdFilters": args.hostIdFilters, "region": args.region, "statusIdFilters": args.statusIdFilters, }, opts); } exports.getAssets = getAssets; /** * Information about hardware assets in an Outpost. * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.outposts.getAssets({ * arn: exampleAwsOutpostsOutpost.arn, * }); * ``` * * ### With Host ID Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.outposts.getAssets({ * arn: exampleAwsOutpostsOutpost.arn, * hostIdFilters: ["h-x38g5n0yd2a0ueb61"], * }); * ``` * * ### With Status ID Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.outposts.getAssets({ * arn: exampleAwsOutpostsOutpost.arn, * statusIdFilters: ["ACTIVE"], * }); * ``` */ function getAssetsOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:outposts/getAssets:getAssets", { "arn": args.arn, "hostIdFilters": args.hostIdFilters, "region": args.region, "statusIdFilters": args.statusIdFilters, }, opts); } exports.getAssetsOutput = getAssetsOutput; //# sourceMappingURL=getAssets.js.map