@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)
112 lines • 6.1 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.Domain = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* An example resource schema demonstrating some basic constructs and validation rules.
*/
class Domain extends pulumi.CustomResource {
/**
* Get an existing Domain 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 Domain(name, undefined, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Domain. 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'] === Domain.__pulumiType;
}
/**
* Create a Domain 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) {
resourceInputs["accessPolicies"] = args?.accessPolicies;
resourceInputs["advancedOptions"] = args?.advancedOptions;
resourceInputs["advancedSecurityOptions"] = args?.advancedSecurityOptions;
resourceInputs["aimlOptions"] = args?.aimlOptions;
resourceInputs["clusterConfig"] = args?.clusterConfig;
resourceInputs["cognitoOptions"] = args?.cognitoOptions;
resourceInputs["domainEndpointOptions"] = args?.domainEndpointOptions;
resourceInputs["domainName"] = args?.domainName;
resourceInputs["ebsOptions"] = args?.ebsOptions;
resourceInputs["encryptionAtRestOptions"] = args?.encryptionAtRestOptions;
resourceInputs["engineVersion"] = args?.engineVersion;
resourceInputs["identityCenterOptions"] = args?.identityCenterOptions;
resourceInputs["ipAddressType"] = args?.ipAddressType;
resourceInputs["logPublishingOptions"] = args?.logPublishingOptions;
resourceInputs["nodeToNodeEncryptionOptions"] = args?.nodeToNodeEncryptionOptions;
resourceInputs["offPeakWindowOptions"] = args?.offPeakWindowOptions;
resourceInputs["skipShardMigrationWait"] = args?.skipShardMigrationWait;
resourceInputs["snapshotOptions"] = args?.snapshotOptions;
resourceInputs["softwareUpdateOptions"] = args?.softwareUpdateOptions;
resourceInputs["tags"] = args?.tags;
resourceInputs["vpcOptions"] = args?.vpcOptions;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["awsId"] = undefined /*out*/;
resourceInputs["domainArn"] = undefined /*out*/;
resourceInputs["domainEndpoint"] = undefined /*out*/;
resourceInputs["domainEndpointV2"] = undefined /*out*/;
resourceInputs["domainEndpoints"] = undefined /*out*/;
resourceInputs["serviceSoftwareOptions"] = undefined /*out*/;
}
else {
resourceInputs["accessPolicies"] = undefined /*out*/;
resourceInputs["advancedOptions"] = undefined /*out*/;
resourceInputs["advancedSecurityOptions"] = undefined /*out*/;
resourceInputs["aimlOptions"] = undefined /*out*/;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["awsId"] = undefined /*out*/;
resourceInputs["clusterConfig"] = undefined /*out*/;
resourceInputs["cognitoOptions"] = undefined /*out*/;
resourceInputs["domainArn"] = undefined /*out*/;
resourceInputs["domainEndpoint"] = undefined /*out*/;
resourceInputs["domainEndpointOptions"] = undefined /*out*/;
resourceInputs["domainEndpointV2"] = undefined /*out*/;
resourceInputs["domainEndpoints"] = undefined /*out*/;
resourceInputs["domainName"] = undefined /*out*/;
resourceInputs["ebsOptions"] = undefined /*out*/;
resourceInputs["encryptionAtRestOptions"] = undefined /*out*/;
resourceInputs["engineVersion"] = undefined /*out*/;
resourceInputs["identityCenterOptions"] = undefined /*out*/;
resourceInputs["ipAddressType"] = undefined /*out*/;
resourceInputs["logPublishingOptions"] = undefined /*out*/;
resourceInputs["nodeToNodeEncryptionOptions"] = undefined /*out*/;
resourceInputs["offPeakWindowOptions"] = undefined /*out*/;
resourceInputs["serviceSoftwareOptions"] = undefined /*out*/;
resourceInputs["skipShardMigrationWait"] = undefined /*out*/;
resourceInputs["snapshotOptions"] = undefined /*out*/;
resourceInputs["softwareUpdateOptions"] = undefined /*out*/;
resourceInputs["tags"] = undefined /*out*/;
resourceInputs["vpcOptions"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const replaceOnChanges = { replaceOnChanges: ["domainName"] };
opts = pulumi.mergeOptions(opts, replaceOnChanges);
super(Domain.__pulumiType, name, resourceInputs, opts);
}
}
exports.Domain = Domain;
/** @internal */
Domain.__pulumiType = 'aws-native:opensearchservice:Domain';
//# sourceMappingURL=domain.js.map