UNPKG

@pulumi/aws

Version:

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

58 lines 1.85 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.getModelOutput = exports.getModel = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Data source for managing an AWS Bedrock Foundation Model. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.bedrockfoundation.getModels({}); * const testGetModel = test.then(test => aws.bedrockfoundation.getModel({ * modelId: test.modelSummaries?.[0]?.modelId, * })); * ``` */ function getModel(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:bedrockfoundation/getModel:getModel", { "modelId": args.modelId, "region": args.region, }, opts); } exports.getModel = getModel; /** * Data source for managing an AWS Bedrock Foundation Model. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.bedrockfoundation.getModels({}); * const testGetModel = test.then(test => aws.bedrockfoundation.getModel({ * modelId: test.modelSummaries?.[0]?.modelId, * })); * ``` */ function getModelOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:bedrockfoundation/getModel:getModel", { "modelId": args.modelId, "region": args.region, }, opts); } exports.getModelOutput = getModelOutput; //# sourceMappingURL=getModel.js.map