@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)
113 lines • 5.99 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.Workspace = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Definition of AWS::Grafana::Workspace Resource Type
*/
class Workspace extends pulumi.CustomResource {
/**
* Get an existing Workspace 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 Workspace(name, undefined, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Workspace. 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'] === Workspace.__pulumiType;
}
/**
* Create a Workspace 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?.accountAccessType === undefined && !opts.urn) {
throw new Error("Missing required property 'accountAccessType'");
}
if (args?.authenticationProviders === undefined && !opts.urn) {
throw new Error("Missing required property 'authenticationProviders'");
}
if (args?.permissionType === undefined && !opts.urn) {
throw new Error("Missing required property 'permissionType'");
}
resourceInputs["accountAccessType"] = args?.accountAccessType;
resourceInputs["authenticationProviders"] = args?.authenticationProviders;
resourceInputs["clientToken"] = args?.clientToken;
resourceInputs["dataSources"] = args?.dataSources;
resourceInputs["description"] = args?.description;
resourceInputs["grafanaVersion"] = args?.grafanaVersion;
resourceInputs["name"] = args?.name;
resourceInputs["networkAccessControl"] = args?.networkAccessControl;
resourceInputs["notificationDestinations"] = args?.notificationDestinations;
resourceInputs["organizationRoleName"] = args?.organizationRoleName;
resourceInputs["organizationalUnits"] = args?.organizationalUnits;
resourceInputs["permissionType"] = args?.permissionType;
resourceInputs["pluginAdminEnabled"] = args?.pluginAdminEnabled;
resourceInputs["roleArn"] = args?.roleArn;
resourceInputs["samlConfiguration"] = args?.samlConfiguration;
resourceInputs["stackSetName"] = args?.stackSetName;
resourceInputs["vpcConfiguration"] = args?.vpcConfiguration;
resourceInputs["awsId"] = undefined /*out*/;
resourceInputs["creationTimestamp"] = undefined /*out*/;
resourceInputs["endpoint"] = undefined /*out*/;
resourceInputs["modificationTimestamp"] = undefined /*out*/;
resourceInputs["samlConfigurationStatus"] = undefined /*out*/;
resourceInputs["ssoClientId"] = undefined /*out*/;
resourceInputs["status"] = undefined /*out*/;
}
else {
resourceInputs["accountAccessType"] = undefined /*out*/;
resourceInputs["authenticationProviders"] = undefined /*out*/;
resourceInputs["awsId"] = undefined /*out*/;
resourceInputs["clientToken"] = undefined /*out*/;
resourceInputs["creationTimestamp"] = undefined /*out*/;
resourceInputs["dataSources"] = undefined /*out*/;
resourceInputs["description"] = undefined /*out*/;
resourceInputs["endpoint"] = undefined /*out*/;
resourceInputs["grafanaVersion"] = undefined /*out*/;
resourceInputs["modificationTimestamp"] = undefined /*out*/;
resourceInputs["name"] = undefined /*out*/;
resourceInputs["networkAccessControl"] = undefined /*out*/;
resourceInputs["notificationDestinations"] = undefined /*out*/;
resourceInputs["organizationRoleName"] = undefined /*out*/;
resourceInputs["organizationalUnits"] = undefined /*out*/;
resourceInputs["permissionType"] = undefined /*out*/;
resourceInputs["pluginAdminEnabled"] = undefined /*out*/;
resourceInputs["roleArn"] = undefined /*out*/;
resourceInputs["samlConfiguration"] = undefined /*out*/;
resourceInputs["samlConfigurationStatus"] = undefined /*out*/;
resourceInputs["ssoClientId"] = undefined /*out*/;
resourceInputs["stackSetName"] = undefined /*out*/;
resourceInputs["status"] = undefined /*out*/;
resourceInputs["vpcConfiguration"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const replaceOnChanges = { replaceOnChanges: ["clientToken"] };
opts = pulumi.mergeOptions(opts, replaceOnChanges);
super(Workspace.__pulumiType, name, resourceInputs, opts);
}
}
exports.Workspace = Workspace;
/** @internal */
Workspace.__pulumiType = 'aws-native:grafana:Workspace';
//# sourceMappingURL=workspace.js.map