@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
101 lines • 4.41 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.ConnectionGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Creates an Amazon CloudFront Connection Group.
*
* For information about CloudFront Connection Groups, see the [AWS CloudFormation Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-cloudfront-connectiongroup.html).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.cloudfront.ConnectionGroup("example", {
* name: "example",
* enabled: true,
* ipv6Enabled: true,
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import CloudFront Connection Groups using the `id`. For example:
*
* ```sh
* $ pulumi import aws:cloudfront/connectionGroup:ConnectionGroup example CGROUP123EXAMPLE
* ```
*/
class ConnectionGroup extends pulumi.CustomResource {
/**
* Get an existing ConnectionGroup 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 ConnectionGroup(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of ConnectionGroup. 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'] === ConnectionGroup.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["anycastIpListId"] = state?.anycastIpListId;
resourceInputs["arn"] = state?.arn;
resourceInputs["enabled"] = state?.enabled;
resourceInputs["etag"] = state?.etag;
resourceInputs["ipv6Enabled"] = state?.ipv6Enabled;
resourceInputs["isDefault"] = state?.isDefault;
resourceInputs["lastModifiedTime"] = state?.lastModifiedTime;
resourceInputs["name"] = state?.name;
resourceInputs["routingEndpoint"] = state?.routingEndpoint;
resourceInputs["status"] = state?.status;
resourceInputs["tags"] = state?.tags;
resourceInputs["tagsAll"] = state?.tagsAll;
resourceInputs["timeouts"] = state?.timeouts;
resourceInputs["waitForDeployment"] = state?.waitForDeployment;
}
else {
const args = argsOrState;
resourceInputs["anycastIpListId"] = args?.anycastIpListId;
resourceInputs["enabled"] = args?.enabled;
resourceInputs["ipv6Enabled"] = args?.ipv6Enabled;
resourceInputs["name"] = args?.name;
resourceInputs["tags"] = args?.tags;
resourceInputs["timeouts"] = args?.timeouts;
resourceInputs["waitForDeployment"] = args?.waitForDeployment;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["etag"] = undefined /*out*/;
resourceInputs["isDefault"] = undefined /*out*/;
resourceInputs["lastModifiedTime"] = undefined /*out*/;
resourceInputs["routingEndpoint"] = undefined /*out*/;
resourceInputs["status"] = undefined /*out*/;
resourceInputs["tagsAll"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ConnectionGroup.__pulumiType, name, resourceInputs, opts);
}
}
exports.ConnectionGroup = ConnectionGroup;
/** @internal */
ConnectionGroup.__pulumiType = 'aws:cloudfront/connectionGroup:ConnectionGroup';
//# sourceMappingURL=connectionGroup.js.map