@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
78 lines • 4.59 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.AwsCredentials = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class AwsCredentials extends pulumi.CustomResource {
/**
* Get an existing AwsCredentials 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 state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new AwsCredentials(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of AwsCredentials. 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'] === AwsCredentials.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["authenticationData"] = state ? state.authenticationData : undefined;
resourceInputs["credentialsEnabled"] = state ? state.credentialsEnabled : undefined;
resourceInputs["label"] = state ? state.label : undefined;
resourceInputs["partitionType"] = state ? state.partitionType : undefined;
resourceInputs["removeDefaults"] = state ? state.removeDefaults : undefined;
resourceInputs["runningOnDynatraceInfrastructure"] = state ? state.runningOnDynatraceInfrastructure : undefined;
resourceInputs["supportingServicesManagedInDynatrace"] = state ? state.supportingServicesManagedInDynatrace : undefined;
resourceInputs["supportingServicesToMonitors"] = state ? state.supportingServicesToMonitors : undefined;
resourceInputs["taggedOnly"] = state ? state.taggedOnly : undefined;
resourceInputs["tagsToMonitors"] = state ? state.tagsToMonitors : undefined;
resourceInputs["unknowns"] = state ? state.unknowns : undefined;
}
else {
const args = argsOrState;
if ((!args || args.authenticationData === undefined) && !opts.urn) {
throw new Error("Missing required property 'authenticationData'");
}
if ((!args || args.partitionType === undefined) && !opts.urn) {
throw new Error("Missing required property 'partitionType'");
}
if ((!args || args.taggedOnly === undefined) && !opts.urn) {
throw new Error("Missing required property 'taggedOnly'");
}
resourceInputs["authenticationData"] = args ? args.authenticationData : undefined;
resourceInputs["credentialsEnabled"] = args ? args.credentialsEnabled : undefined;
resourceInputs["label"] = args ? args.label : undefined;
resourceInputs["partitionType"] = args ? args.partitionType : undefined;
resourceInputs["removeDefaults"] = args ? args.removeDefaults : undefined;
resourceInputs["runningOnDynatraceInfrastructure"] = args ? args.runningOnDynatraceInfrastructure : undefined;
resourceInputs["supportingServicesManagedInDynatrace"] = args ? args.supportingServicesManagedInDynatrace : undefined;
resourceInputs["supportingServicesToMonitors"] = args ? args.supportingServicesToMonitors : undefined;
resourceInputs["taggedOnly"] = args ? args.taggedOnly : undefined;
resourceInputs["tagsToMonitors"] = args ? args.tagsToMonitors : undefined;
resourceInputs["unknowns"] = args ? args.unknowns : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(AwsCredentials.__pulumiType, name, resourceInputs, opts);
}
}
exports.AwsCredentials = AwsCredentials;
/** @internal */
AwsCredentials.__pulumiType = 'dynatrace:index/awsCredentials:AwsCredentials';
//# sourceMappingURL=awsCredentials.js.map