Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/aws-globalaccelerator

Package Overview
Dependencies
Maintainers
5
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-globalaccelerator - npm Package Compare versions

Comparing version 1.45.0 to 1.46.0

lib/accelerator.d.ts

3

lib/index.d.ts
export * from './globalaccelerator.generated';
export * from './accelerator';
export * from './listener';
export * from './endpoint-group';

20

lib/index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
// AWS::GlobalAccelerator CloudFormation Resources:
__export(require("./globalaccelerator.generated"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLG1EQUFtRDtBQUNuRCxtREFBOEMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBBV1M6Okdsb2JhbEFjY2VsZXJhdG9yIENsb3VkRm9ybWF0aW9uIFJlc291cmNlczpcbmV4cG9ydCAqIGZyb20gJy4vZ2xvYmFsYWNjZWxlcmF0b3IuZ2VuZXJhdGVkJztcbiJdfQ==
__exportStar(require("./globalaccelerator.generated"), exports);
__exportStar(require("./accelerator"), exports);
__exportStar(require("./listener"), exports);
__exportStar(require("./endpoint-group"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxtREFBbUQ7QUFDbkQsZ0VBQThDO0FBQzlDLGdEQUE4QjtBQUM5Qiw2Q0FBMkI7QUFDM0IsbURBQWlDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQVdTOjpHbG9iYWxBY2NlbGVyYXRvciBDbG91ZEZvcm1hdGlvbiBSZXNvdXJjZXM6XG5leHBvcnQgKiBmcm9tICcuL2dsb2JhbGFjY2VsZXJhdG9yLmdlbmVyYXRlZCc7XG5leHBvcnQgKiBmcm9tICcuL2FjY2VsZXJhdG9yJztcbmV4cG9ydCAqIGZyb20gJy4vbGlzdGVuZXInO1xuZXhwb3J0ICogZnJvbSAnLi9lbmRwb2ludC1ncm91cCc7XG4iXX0=
{
"name": "@aws-cdk/aws-globalaccelerator",
"version": "1.45.0",
"version": "1.46.0",
"description": "The CDK Construct Library for AWS::GlobalAccelerator",

@@ -68,12 +68,17 @@ "main": "lib/index.js",

"devDependencies": {
"@aws-cdk/assert": "1.45.0",
"cdk-build-tools": "1.45.0",
"cfn2ts": "1.45.0",
"pkglint": "1.45.0"
"@aws-cdk/assert": "1.46.0",
"@aws-cdk/aws-ec2": "1.46.0",
"@aws-cdk/aws-elasticloadbalancingv2": "1.46.0",
"cdk-integ-tools": "1.46.0",
"cdk-build-tools": "1.46.0",
"cfn2ts": "1.46.0",
"pkglint": "1.46.0"
},
"dependencies": {
"@aws-cdk/core": "1.45.0"
"@aws-cdk/core": "1.46.0",
"constructs": "^3.0.2"
},
"peerDependencies": {
"@aws-cdk/core": "1.45.0"
"@aws-cdk/core": "1.46.0",
"constructs": "^3.0.2"
},

@@ -84,3 +89,3 @@ "engines": {

"stability": "experimental",
"maturity": "cfn-only",
"maturity": "experimental",
"awscdkio": {

@@ -87,0 +92,0 @@ "announce": false

@@ -9,9 +9,88 @@ ## AWS::GlobalAccelerator Construct Library

![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)
> The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
---
<!--END STABILITY BANNER-->
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
## Introduction
AWS Global Accelerator is a service that improves the availability and performance of your applications with local or global users. It provides static IP addresses that act as a fixed entry point to your application endpoints in a single or multiple AWS Regions, such as your Application Load Balancers, Network Load Balancers or Amazon EC2 instances.
This module supports features under [AWS Global Accelerator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_GlobalAccelerator.html) that allows users set up resources using the `@aws-cdk/aws-globalaccelerator` module.
## Accelerator
The `Accelerator` resource is a Global Accelerator resource type that contains information about how you create an accelerator. An accelerator includes one or more listeners that process inbound connections and direct traffic to one or more endpoint groups, each of which includes endpoints, such as Application Load Balancers, Network Load Balancers, and Amazon EC2 instances.
To create the `Accelerator`:
```ts
import globalaccelerator = require('@aws-cdk/aws-globalaccelerator');
new globalaccelerator.Accelerator(stack, 'Accelerator');
```
## Listener
The `Listener` resource is a Global Accelerator resource type that contains information about how you create a listener to process inbound connections from clients to an accelerator. Connections arrive to assigned static IP addresses on a port, port range, or list of port ranges that you specify.
To create the `Listener` listening on TCP 80:
```ts
new globalaccelerator.Listener(stack, 'Listener', {
accelerator,
portRanges: [
{
fromPort: 80,
toPort: 80,
},
],
});
```
## EndpointGroup
The `EndpointGroup` resource is a Global Accelerator resource type that contains information about how you create an endpoint group for the specified listener. An endpoint group is a collection of endpoints in one AWS Region.
To create the `EndpointGroup`:
```ts
new globalaccelerator.EndpointGroup(stack, 'Group', { listener });
```
## Add Endpoint into EndpointGroup
You may use the following methods to add endpoints into the `EndpointGroup`:
- `addEndpoint` to add a generic `endpoint` into the `EndpointGroup`.
- `addLoadBalancer` to add an Application Load Balancer or Network Load Balancer.
- `addEc2Instance` to add an EC2 Instance.
- `addElasticIpAddress` to add an Elastic IP Address.
```ts
const endpointGroup = new globalaccelerator.EndpointGroup(stack, 'Group', { listener });
const alb = new elbv2.ApplicationLoadBalancer(stack, 'ALB', { vpc, internetFacing: true });
const nlb = new elbv2.NetworkLoadBalancer(stack, 'NLB', { vpc, internetFacing: true });
const eip = new ec2.CfnEIP(stack, 'ElasticIpAddress');
const instances = new Array<ec2.Instance>();
for ( let i = 0; i < 2; i++) {
instances.push(new ec2.Instance(stack, `Instance${i}`, {
vpc,
machineImage: new ec2.AmazonLinuxImage(),
instanceType: new ec2.InstanceType('t3.small'),
}));
}
endpointGroup.addLoadBalancer('AlbEndpoint', alb);
endpointGroup.addLoadBalancer('NlbEndpoint', nlb);
endpointGroup.addElasticIpAddress('EipEndpoint', eip);
endpointGroup.addEc2Instance('InstanceEndpoint', instances[0]);
endpointGroup.addEndpoint('InstanceEndpoint2', instances[1].instanceId);
```

@@ -1,1 +0,1 @@

import '@aws-cdk/assert/jest';
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("@aws-cdk/assert/jest");
test('No tests are specified for this package', () => {
expect(true).toBe(true);
const assert_1 = require("@aws-cdk/assert");
const ec2 = require("@aws-cdk/aws-ec2");
const elbv2 = require("@aws-cdk/aws-elasticloadbalancingv2");
const ga = require("../lib");
const util_1 = require("./util");
test('create accelerator', () => {
// GIVEN
const { stack } = util_1.testFixture();
// WHEN
new ga.Accelerator(stack, 'Accelerator');
// THEN
assert_1.expect(stack).to(assert_1.haveResourceLike('AWS::GlobalAccelerator::Accelerator', {
Enabled: true,
}));
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFsYWNjZWxlcmF0b3IudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImdsb2JhbGFjY2VsZXJhdG9yLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnQ0FBOEI7QUFHOUIsSUFBSSxDQUFDLHlDQUF5QyxFQUFFLEdBQUcsRUFBRTtJQUNuRCxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQzFCLENBQUMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICdAYXdzLWNkay9hc3NlcnQvamVzdCc7XG5pbXBvcnQge30gZnJvbSAnLi4vbGliJztcblxudGVzdCgnTm8gdGVzdHMgYXJlIHNwZWNpZmllZCBmb3IgdGhpcyBwYWNrYWdlJywgKCkgPT4ge1xuICBleHBlY3QodHJ1ZSkudG9CZSh0cnVlKTtcbn0pO1xuIl19
test('create listener', () => {
// GIVEN
const { stack } = util_1.testFixture();
// WHEN
const accelerator = new ga.Accelerator(stack, 'Accelerator');
new ga.Listener(stack, 'Listener', {
accelerator,
portRanges: [
{
fromPort: 80,
toPort: 80,
},
],
});
// THEN
assert_1.expect(stack).to(assert_1.haveResourceLike('AWS::GlobalAccelerator::Listener', {
AcceleratorArn: {
'Fn::GetAtt': [
'Accelerator8EB0B6B1',
'AcceleratorArn',
],
},
PortRanges: [
{
FromPort: 80,
ToPort: 80,
},
],
Protocol: 'TCP',
ClientAffinity: 'NONE',
}));
});
test('create endpointgroup', () => {
// GIVEN
const { stack } = util_1.testFixture();
// WHEN
const accelerator = new ga.Accelerator(stack, 'Accelerator');
const listener = new ga.Listener(stack, 'Listener', {
accelerator,
portRanges: [
{
fromPort: 80,
toPort: 80,
},
],
});
new ga.EndpointGroup(stack, 'Group', { listener });
// THEN
assert_1.expect(stack).to(assert_1.haveResourceLike('AWS::GlobalAccelerator::EndpointGroup', {
EndpointGroupRegion: {
Ref: 'AWS::Region',
},
ListenerArn: {
'Fn::GetAtt': [
'Listener828B0E81',
'ListenerArn',
],
},
}));
});
test('addEndpoint', () => {
// GIVEN
const { stack, vpc } = util_1.testFixture();
// WHEN
const accelerator = new ga.Accelerator(stack, 'Accelerator');
const listener = new ga.Listener(stack, 'Listener', {
accelerator,
portRanges: [
{
fromPort: 80,
toPort: 80,
},
],
});
const endpointGroup = new ga.EndpointGroup(stack, 'Group', { listener });
const instance = new ec2.Instance(stack, 'Instance', {
vpc,
machineImage: new ec2.AmazonLinuxImage(),
instanceType: new ec2.InstanceType('t3.small'),
});
endpointGroup.addEndpoint('endpoint', instance.instanceId);
// THEN
assert_1.expect(stack).to(assert_1.haveResourceLike('AWS::GlobalAccelerator::EndpointGroup', {
EndpointConfigurations: [
{
EndpointId: {
Ref: 'InstanceC1063A87',
},
},
],
}));
});
test('addLoadBalancer', () => {
// GIVEN
const { stack, vpc } = util_1.testFixture();
// WHEN
const accelerator = new ga.Accelerator(stack, 'Accelerator');
const listener = new ga.Listener(stack, 'Listener', {
accelerator,
portRanges: [
{
fromPort: 80,
toPort: 80,
},
],
});
const endpointGroup = new ga.EndpointGroup(stack, 'Group', { listener });
const alb = new elbv2.ApplicationLoadBalancer(stack, 'ALB', { vpc, internetFacing: true });
endpointGroup.addLoadBalancer('endpoint', alb);
// THEN
assert_1.expect(stack).to(assert_1.haveResourceLike('AWS::GlobalAccelerator::EndpointGroup', {
EndpointConfigurations: [
{
EndpointId: {
Ref: 'ALBAEE750D2',
},
},
],
}));
});
test('addElasticIpAddress', () => {
// GIVEN
const { stack } = util_1.testFixture();
// WHEN
const accelerator = new ga.Accelerator(stack, 'Accelerator');
const listener = new ga.Listener(stack, 'Listener', {
accelerator,
portRanges: [
{
fromPort: 80,
toPort: 80,
},
],
});
const endpointGroup = new ga.EndpointGroup(stack, 'Group', { listener });
const eip = new ec2.CfnEIP(stack, 'ElasticIpAddress');
endpointGroup.addElasticIpAddress('endpoint', eip);
// THEN
assert_1.expect(stack).to(assert_1.haveResourceLike('AWS::GlobalAccelerator::EndpointGroup', {
EndpointConfigurations: [
{
EndpointId: {
'Fn::GetAtt': [
'ElasticIpAddress',
'AllocationId',
],
},
},
],
}));
});
test('addEc2Instance', () => {
// GIVEN
const { stack, vpc } = util_1.testFixture();
// WHEN
const accelerator = new ga.Accelerator(stack, 'Accelerator');
const listener = new ga.Listener(stack, 'Listener', {
accelerator,
portRanges: [
{
fromPort: 80,
toPort: 80,
},
],
});
const endpointGroup = new ga.EndpointGroup(stack, 'Group', { listener });
const instance = new ec2.Instance(stack, 'Instance', {
vpc,
machineImage: new ec2.AmazonLinuxImage(),
instanceType: new ec2.InstanceType('t3.small'),
});
endpointGroup.addEc2Instance('endpoint', instance);
// THEN
assert_1.expect(stack).to(assert_1.haveResourceLike('AWS::GlobalAccelerator::EndpointGroup', {
EndpointConfigurations: [
{
EndpointId: {
Ref: 'InstanceC1063A87',
},
},
],
}));
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFsYWNjZWxlcmF0b3IudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImdsb2JhbGFjY2VsZXJhdG9yLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw0Q0FBMkQ7QUFDM0Qsd0NBQXdDO0FBQ3hDLDZEQUE2RDtBQUM3RCw2QkFBNkI7QUFDN0IsaUNBQXFDO0FBRXJDLElBQUksQ0FBQyxvQkFBb0IsRUFBRSxHQUFHLEVBQUU7SUFDOUIsUUFBUTtJQUNSLE1BQU0sRUFBRSxLQUFLLEVBQUUsR0FBRyxrQkFBVyxFQUFFLENBQUM7SUFFaEMsT0FBTztJQUNQLElBQUksRUFBRSxDQUFDLFdBQVcsQ0FBQyxLQUFLLEVBQUUsYUFBYSxDQUFDLENBQUM7SUFFekMsT0FBTztJQUNQLGVBQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFF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zdGFuY2UnLCB7XG4gICAgdnBjLFxuICAgIG1hY2hpbmVJbWFnZTogbmV3IGVjMi5BbWF6b25MaW51eEltYWdlKCksXG4gICAgaW5zdGFuY2VUeXBlOiBuZXcgZWMyLkluc3RhbmNlVHlwZSgndDMuc21hbGwnKSxcbiAgfSk7XG4gIGVuZHBvaW50R3JvdXAuYWRkRWMySW5zdGFuY2UoJ2VuZHBvaW50JywgaW5zdGFuY2UpO1xuXG4gIC8vIFRIRU5cbiAgZXhwZWN0KHN0YWNrKS50byhoYXZlUmVzb3VyY2VMaWtlKCdBV1M6Okdsb2JhbEFjY2VsZXJhdG9yOjpFbmRwb2ludEdyb3VwJywge1xuICAgIEVuZHBvaW50Q29uZmlndXJhdGlvbnM6IFtcbiAgICAgIHtcbiAgICAgICAgRW5kcG9pbnRJZDoge1xuICAgICAgICAgIFJlZjogJ0luc3RhbmNlQzEwNjNBODcnLFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICBdLFxuICB9KSk7XG59KTtcbiJdfQ==

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc