@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
82 lines • 2.55 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.getEndpointOutput = exports.getEndpoint = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Returns a unique endpoint specific to the AWS account making the call.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* import * as kubernetes from "@pulumi/kubernetes";
*
* const example = aws.iot.getEndpoint({});
* const agent = new kubernetes.index.Pod("agent", {
* metadata: [{
* name: "my-device",
* }],
* spec: [{
* container: [{
* image: "gcr.io/my-project/image-name",
* name: "image-name",
* env: [{
* name: "IOT_ENDPOINT",
* value: example.endpointAddress,
* }],
* }],
* }],
* });
* ```
*/
function getEndpoint(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:iot/getEndpoint:getEndpoint", {
"endpointType": args.endpointType,
"region": args.region,
}, opts);
}
exports.getEndpoint = getEndpoint;
/**
* Returns a unique endpoint specific to the AWS account making the call.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* import * as kubernetes from "@pulumi/kubernetes";
*
* const example = aws.iot.getEndpoint({});
* const agent = new kubernetes.index.Pod("agent", {
* metadata: [{
* name: "my-device",
* }],
* spec: [{
* container: [{
* image: "gcr.io/my-project/image-name",
* name: "image-name",
* env: [{
* name: "IOT_ENDPOINT",
* value: example.endpointAddress,
* }],
* }],
* }],
* });
* ```
*/
function getEndpointOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:iot/getEndpoint:getEndpoint", {
"endpointType": args.endpointType,
"region": args.region,
}, opts);
}
exports.getEndpointOutput = getEndpointOutput;
//# sourceMappingURL=getEndpoint.js.map