UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

99 lines 4.23 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.CustomRoutingAccelerator = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Creates a Global Accelerator custom routing accelerator. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.globalaccelerator.CustomRoutingAccelerator("example", { * name: "Example", * ipAddressType: "IPV4", * ipAddresses: ["1.2.3.4"], * enabled: true, * attributes: { * flowLogsEnabled: true, * flowLogsS3Bucket: "example-bucket", * flowLogsS3Prefix: "flow-logs/", * }, * }); * ``` * * ## Import * * Using `pulumi import`, import Global Accelerator custom routing accelerators using the `arn`. For example: * * ```sh * $ pulumi import aws:globalaccelerator/customRoutingAccelerator:CustomRoutingAccelerator example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx * ``` */ class CustomRoutingAccelerator extends pulumi.CustomResource { /** * Get an existing CustomRoutingAccelerator 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 CustomRoutingAccelerator(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of CustomRoutingAccelerator. 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'] === CustomRoutingAccelerator.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state?.arn; resourceInputs["attributes"] = state?.attributes; resourceInputs["dnsName"] = state?.dnsName; resourceInputs["enabled"] = state?.enabled; resourceInputs["hostedZoneId"] = state?.hostedZoneId; resourceInputs["ipAddressType"] = state?.ipAddressType; resourceInputs["ipAddresses"] = state?.ipAddresses; resourceInputs["ipSets"] = state?.ipSets; resourceInputs["name"] = state?.name; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; } else { const args = argsOrState; resourceInputs["attributes"] = args?.attributes; resourceInputs["enabled"] = args?.enabled; resourceInputs["ipAddressType"] = args?.ipAddressType; resourceInputs["ipAddresses"] = args?.ipAddresses; resourceInputs["name"] = args?.name; resourceInputs["tags"] = args?.tags; resourceInputs["arn"] = undefined /*out*/; resourceInputs["dnsName"] = undefined /*out*/; resourceInputs["hostedZoneId"] = undefined /*out*/; resourceInputs["ipSets"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CustomRoutingAccelerator.__pulumiType, name, resourceInputs, opts); } } exports.CustomRoutingAccelerator = CustomRoutingAccelerator; /** @internal */ CustomRoutingAccelerator.__pulumiType = 'aws:globalaccelerator/customRoutingAccelerator:CustomRoutingAccelerator'; //# sourceMappingURL=customRoutingAccelerator.js.map