@cloudtoolkit/aws
Version:
The Cloud Toolkit AWS provider for Pulumi provision well-architected solutions in [AWS](https://aws.amazon.com/). With Cloud Toolkit AWS you can use your preferred programming language to manage your platform with Infrastructure as Code.
56 lines • 2.69 kB
JavaScript
;
// *** WARNING: this file was generated by Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.IamTrustedAccount = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
class IamTrustedAccount extends pulumi.ComponentResource {
/**
* Returns true if the given object is an instance of IamTrustedAccount. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === IamTrustedAccount.__pulumiType;
}
/**
* Create a IamTrustedAccount resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name, args, opts) {
let resourceInputs = {};
opts = opts || {};
if (!opts.id) {
if ((!args || args.roles === undefined) && !opts.urn) {
throw new Error("Missing required property 'roles'");
}
if ((!args || args.trustingAccountId === undefined) && !opts.urn) {
throw new Error("Missing required property 'trustingAccountId'");
}
if ((!args || args.trustingAccountName === undefined) && !opts.urn) {
throw new Error("Missing required property 'trustingAccountName'");
}
resourceInputs["roles"] = args ? args.roles : undefined;
resourceInputs["trustingAccountId"] = args ? args.trustingAccountId : undefined;
resourceInputs["trustingAccountName"] = args ? args.trustingAccountName : undefined;
resourceInputs["roleGroupPolicies"] = undefined /*out*/;
resourceInputs["roleGroups"] = undefined /*out*/;
}
else {
resourceInputs["roleGroupPolicies"] = undefined /*out*/;
resourceInputs["roleGroups"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IamTrustedAccount.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.IamTrustedAccount = IamTrustedAccount;
/** @internal */
IamTrustedAccount.__pulumiType = 'cloud-toolkit-aws:landingzone:IamTrustedAccount';
//# sourceMappingURL=iamTrustedAccount.js.map