@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
89 lines • 4.17 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.Partnership = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Definition of AWS::B2BI::Partnership Resource Type
*/
class Partnership extends pulumi.CustomResource {
/**
* Get an existing Partnership resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, opts) {
return new Partnership(name, undefined, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Partnership. 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'] === Partnership.__pulumiType;
}
/**
* Create a Partnership 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?.capabilities === undefined && !opts.urn) {
throw new Error("Missing required property 'capabilities'");
}
if (args?.email === undefined && !opts.urn) {
throw new Error("Missing required property 'email'");
}
if (args?.profileId === undefined && !opts.urn) {
throw new Error("Missing required property 'profileId'");
}
resourceInputs["capabilities"] = args?.capabilities;
resourceInputs["capabilityOptions"] = args?.capabilityOptions;
resourceInputs["email"] = args?.email;
resourceInputs["name"] = args?.name;
resourceInputs["phone"] = args?.phone;
resourceInputs["profileId"] = args?.profileId;
resourceInputs["tags"] = args?.tags;
resourceInputs["createdAt"] = undefined /*out*/;
resourceInputs["modifiedAt"] = undefined /*out*/;
resourceInputs["partnershipArn"] = undefined /*out*/;
resourceInputs["partnershipId"] = undefined /*out*/;
resourceInputs["tradingPartnerId"] = undefined /*out*/;
}
else {
resourceInputs["capabilities"] = undefined /*out*/;
resourceInputs["capabilityOptions"] = undefined /*out*/;
resourceInputs["createdAt"] = undefined /*out*/;
resourceInputs["email"] = undefined /*out*/;
resourceInputs["modifiedAt"] = undefined /*out*/;
resourceInputs["name"] = undefined /*out*/;
resourceInputs["partnershipArn"] = undefined /*out*/;
resourceInputs["partnershipId"] = undefined /*out*/;
resourceInputs["phone"] = undefined /*out*/;
resourceInputs["profileId"] = undefined /*out*/;
resourceInputs["tags"] = undefined /*out*/;
resourceInputs["tradingPartnerId"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const replaceOnChanges = { replaceOnChanges: ["email", "phone", "profileId"] };
opts = pulumi.mergeOptions(opts, replaceOnChanges);
super(Partnership.__pulumiType, name, resourceInputs, opts);
}
}
exports.Partnership = Partnership;
/** @internal */
Partnership.__pulumiType = 'aws-native:b2bi:Partnership';
//# sourceMappingURL=partnership.js.map