UNPKG

@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)

100 lines 5.09 kB
"use strict"; // *** 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.FirewallRule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource schema for AWS::Route53GlobalResolver::FirewallRule */ class FirewallRule extends pulumi.CustomResource { /** * Get an existing FirewallRule 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 FirewallRule(name, undefined, { ...opts, id: id }); } /** * Returns true if the given object is an instance of FirewallRule. 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'] === FirewallRule.__pulumiType; } /** * Create a FirewallRule 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?.action === undefined && !opts.urn) { throw new Error("Missing required property 'action'"); } if (args?.dnsViewId === undefined && !opts.urn) { throw new Error("Missing required property 'dnsViewId'"); } resourceInputs["action"] = args?.action; resourceInputs["blockOverrideDnsType"] = args?.blockOverrideDnsType; resourceInputs["blockOverrideDomain"] = args?.blockOverrideDomain; resourceInputs["blockOverrideTtl"] = args?.blockOverrideTtl; resourceInputs["blockResponse"] = args?.blockResponse; resourceInputs["clientToken"] = args?.clientToken; resourceInputs["confidenceThreshold"] = args?.confidenceThreshold; resourceInputs["description"] = args?.description; resourceInputs["dnsAdvancedProtection"] = args?.dnsAdvancedProtection; resourceInputs["dnsViewId"] = args?.dnsViewId; resourceInputs["firewallDomainListId"] = args?.firewallDomainListId; resourceInputs["name"] = args?.name; resourceInputs["priority"] = args?.priority; resourceInputs["qType"] = args?.qType; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["firewallRuleId"] = undefined /*out*/; resourceInputs["queryType"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; } else { resourceInputs["action"] = undefined /*out*/; resourceInputs["blockOverrideDnsType"] = undefined /*out*/; resourceInputs["blockOverrideDomain"] = undefined /*out*/; resourceInputs["blockOverrideTtl"] = undefined /*out*/; resourceInputs["blockResponse"] = undefined /*out*/; resourceInputs["clientToken"] = undefined /*out*/; resourceInputs["confidenceThreshold"] = undefined /*out*/; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["description"] = undefined /*out*/; resourceInputs["dnsAdvancedProtection"] = undefined /*out*/; resourceInputs["dnsViewId"] = undefined /*out*/; resourceInputs["firewallDomainListId"] = undefined /*out*/; resourceInputs["firewallRuleId"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; resourceInputs["priority"] = undefined /*out*/; resourceInputs["qType"] = undefined /*out*/; resourceInputs["queryType"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["clientToken", "dnsViewId", "firewallDomainListId", "qType"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(FirewallRule.__pulumiType, name, resourceInputs, opts); } } exports.FirewallRule = FirewallRule; /** @internal */ FirewallRule.__pulumiType = 'aws-native:route53globalresolver:FirewallRule'; //# sourceMappingURL=firewallRule.js.map