@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
60 lines • 2.34 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.getServicePrincipalOutput = exports.getServicePrincipal = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to create a Service Principal Name for a service in a given region. Service Principal Names should always end in the standard global format: `{servicename}.amazonaws.com`. However, in some AWS partitions, AWS may expect a different format.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const current = aws.getServicePrincipal({
* serviceName: "s3",
* });
* const test = aws.getServicePrincipal({
* serviceName: "s3",
* region: "us-iso-east-1",
* });
* ```
*/
function getServicePrincipal(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:index/getServicePrincipal:getServicePrincipal", {
"region": args.region,
"serviceName": args.serviceName,
}, opts);
}
exports.getServicePrincipal = getServicePrincipal;
/**
* Use this data source to create a Service Principal Name for a service in a given region. Service Principal Names should always end in the standard global format: `{servicename}.amazonaws.com`. However, in some AWS partitions, AWS may expect a different format.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const current = aws.getServicePrincipal({
* serviceName: "s3",
* });
* const test = aws.getServicePrincipal({
* serviceName: "s3",
* region: "us-iso-east-1",
* });
* ```
*/
function getServicePrincipalOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:index/getServicePrincipal:getServicePrincipal", {
"region": args.region,
"serviceName": args.serviceName,
}, opts);
}
exports.getServicePrincipalOutput = getServicePrincipalOutput;
//# sourceMappingURL=getServicePrincipal.js.map