@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
84 lines • 3.8 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.DomainIdentityVerification = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Represents a successful verification of an SES domain identity.
*
* Most commonly, this resource is used together with `aws.route53.Record` and
* `aws.ses.DomainIdentity` to request an SES domain identity,
* deploy the required DNS verification records, and wait for verification to complete.
*
* > **WARNING:** This resource implements a part of the verification workflow. It does not represent a real-world entity in AWS, therefore changing or deleting this resource on its own has no immediate effect.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.ses.DomainIdentity("example", {domain: "example.com"});
* const exampleAmazonsesVerificationRecord = new aws.route53.Record("example_amazonses_verification_record", {
* zoneId: exampleAwsRoute53Zone.zoneId,
* name: pulumi.interpolate`_amazonses.${example.domain}`,
* type: aws.route53.RecordType.TXT,
* ttl: 600,
* records: [example.verificationToken],
* });
* const exampleVerification = new aws.ses.DomainIdentityVerification("example_verification", {domain: example.domain}, {
* dependsOn: [exampleAmazonsesVerificationRecord],
* });
* ```
*/
class DomainIdentityVerification extends pulumi.CustomResource {
/**
* Get an existing DomainIdentityVerification 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 DomainIdentityVerification(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of DomainIdentityVerification. 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'] === DomainIdentityVerification.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["arn"] = state?.arn;
resourceInputs["domain"] = state?.domain;
resourceInputs["region"] = state?.region;
}
else {
const args = argsOrState;
if (args?.domain === undefined && !opts.urn) {
throw new Error("Missing required property 'domain'");
}
resourceInputs["domain"] = args?.domain;
resourceInputs["region"] = args?.region;
resourceInputs["arn"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(DomainIdentityVerification.__pulumiType, name, resourceInputs, opts);
}
}
exports.DomainIdentityVerification = DomainIdentityVerification;
/** @internal */
DomainIdentityVerification.__pulumiType = 'aws:ses/domainIdentityVerification:DomainIdentityVerification';
//# sourceMappingURL=domainIdentityVerification.js.map
;