pulumi/tests/testdata/codegen/enum-reference-python/nodejs/mymodule/iamResource.ts

50 lines
1.8 KiB
TypeScript

// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
import * as pulumiGoogleNative from "@pulumi/google-native";
export class IamResource extends pulumi.ComponentResource {
/** @internal */
public static readonly __pulumiType = 'example:myModule:IamResource';
/**
* Returns true if the given object is an instance of IamResource. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
public static isInstance(obj: any): obj is IamResource {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === IamResource.__pulumiType;
}
/**
* Create a IamResource 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: string, args?: IamResourceArgs, opts?: pulumi.ComponentResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (!opts.id) {
resourceInputs["config"] = args ? args.config : undefined;
} else {
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IamResource.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
/**
* The set of arguments for constructing a IamResource resource.
*/
export interface IamResourceArgs {
config?: pulumi.Input<pulumiGoogleNative.types.input.iam.v1.AuditConfigArgs>;
}