agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.services.globalaccelerator"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.AWS.GlobalAccelerator"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.aws_globalaccelerator"
|
||||
}
|
||||
}
|
||||
}
|
||||
195
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/README.md
generated
vendored
Normal file
195
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/README.md
generated
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
# AWS::GlobalAccelerator Construct Library
|
||||
|
||||
|
||||
## Introduction
|
||||
|
||||
AWS Global Accelerator (AGA) is a service that improves the availability and
|
||||
performance of your applications with local or global users.
|
||||
|
||||
It intercepts your user's network connection at an edge location close to
|
||||
them, and routes it to one of potentially multiple, redundant backends across
|
||||
the more reliable and less congested AWS global network.
|
||||
|
||||
AGA can be used to route traffic to Application Load Balancers, Network Load
|
||||
Balancers, EC2 Instances and Elastic IP Addresses.
|
||||
|
||||
For more information, see the [AWS Global
|
||||
Accelerator Developer Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_GlobalAccelerator.html).
|
||||
|
||||
## Example
|
||||
|
||||
Here's an example that sets up a Global Accelerator for two Application Load
|
||||
Balancers in two different AWS Regions:
|
||||
|
||||
```ts
|
||||
// Create an Accelerator
|
||||
const accelerator = new globalaccelerator.Accelerator(this, 'Accelerator');
|
||||
|
||||
// Create a Listener
|
||||
const listener = accelerator.addListener('Listener', {
|
||||
portRanges: [
|
||||
{ fromPort: 80 },
|
||||
{ fromPort: 443 },
|
||||
],
|
||||
});
|
||||
|
||||
// Import the Load Balancers
|
||||
const nlb1 = elbv2.NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(this, 'NLB1', {
|
||||
loadBalancerArn: 'arn:aws:elasticloadbalancing:us-west-2:111111111111:loadbalancer/app/my-load-balancer1/e16bef66805b',
|
||||
});
|
||||
const nlb2 = elbv2.NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(this, 'NLB2', {
|
||||
loadBalancerArn: 'arn:aws:elasticloadbalancing:ap-south-1:111111111111:loadbalancer/app/my-load-balancer2/5513dc2ea8a1',
|
||||
});
|
||||
|
||||
// Add one EndpointGroup for each Region we are targeting
|
||||
listener.addEndpointGroup('Group1', {
|
||||
endpoints: [new ga_endpoints.NetworkLoadBalancerEndpoint(nlb1)],
|
||||
});
|
||||
listener.addEndpointGroup('Group2', {
|
||||
// Imported load balancers automatically calculate their Region from the ARN.
|
||||
// If you are load balancing to other resources, you must also pass a `region`
|
||||
// parameter here.
|
||||
endpoints: [new ga_endpoints.NetworkLoadBalancerEndpoint(nlb2)],
|
||||
});
|
||||
```
|
||||
|
||||
### Create an Accelerator with IP addresses and IP address type
|
||||
|
||||
```ts
|
||||
const accelerator = new globalaccelerator.Accelerator(this, 'Accelerator', {
|
||||
ipAddresses: [
|
||||
'1.1.1.1',
|
||||
'2.2.2.2',
|
||||
],
|
||||
ipAddressType: globalaccelerator.IpAddressType.IPV4,
|
||||
});
|
||||
```
|
||||
|
||||
## Concepts
|
||||
|
||||
The **Accelerator** construct defines a Global Accelerator resource.
|
||||
|
||||
An Accelerator includes one or more **Listeners** that accepts inbound
|
||||
connections on one or more ports.
|
||||
|
||||
Each Listener has one or more **Endpoint Groups**, representing multiple
|
||||
geographically distributed copies of your application. There is one Endpoint
|
||||
Group per Region, and user traffic is routed to the closest Region by default.
|
||||
|
||||
An Endpoint Group consists of one or more **Endpoints**, which is where the
|
||||
user traffic coming in on the Listener is ultimately sent. The Endpoint port
|
||||
used is the same as the traffic came in on at the Listener, unless overridden.
|
||||
|
||||
## Types of Endpoints
|
||||
|
||||
There are 4 types of Endpoints, and they can be found in the
|
||||
`aws-cdk-lib/aws-globalaccelerator-endpoints` package:
|
||||
|
||||
* Application Load Balancers
|
||||
* Network Load Balancers
|
||||
* EC2 Instances
|
||||
* Elastic IP Addresses
|
||||
|
||||
### Application Load Balancers
|
||||
|
||||
```ts
|
||||
declare const alb: elbv2.ApplicationLoadBalancer;
|
||||
declare const listener: globalaccelerator.Listener;
|
||||
|
||||
listener.addEndpointGroup('Group', {
|
||||
endpoints: [
|
||||
new ga_endpoints.ApplicationLoadBalancerEndpoint(alb, {
|
||||
weight: 128,
|
||||
preserveClientIp: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
```
|
||||
|
||||
### Network Load Balancers
|
||||
|
||||
```ts
|
||||
declare const nlb: elbv2.NetworkLoadBalancer;
|
||||
declare const listener: globalaccelerator.Listener;
|
||||
|
||||
listener.addEndpointGroup('Group', {
|
||||
endpoints: [
|
||||
new ga_endpoints.NetworkLoadBalancerEndpoint(nlb, {
|
||||
weight: 128,
|
||||
preserveClientIp: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
```
|
||||
|
||||
### EC2 Instances
|
||||
|
||||
```ts
|
||||
declare const listener: globalaccelerator.Listener;
|
||||
declare const instance: ec2.Instance;
|
||||
|
||||
listener.addEndpointGroup('Group', {
|
||||
endpoints: [
|
||||
new ga_endpoints.InstanceEndpoint(instance, {
|
||||
weight: 128,
|
||||
preserveClientIp: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
```
|
||||
|
||||
### Elastic IP Addresses
|
||||
|
||||
```ts
|
||||
declare const listener: globalaccelerator.Listener;
|
||||
declare const eip: ec2.CfnEIP;
|
||||
|
||||
listener.addEndpointGroup('Group', {
|
||||
endpoints: [
|
||||
new ga_endpoints.CfnEipEndpoint(eip, {
|
||||
weight: 128,
|
||||
}),
|
||||
],
|
||||
});
|
||||
```
|
||||
|
||||
## Client IP Address Preservation and Security Groups
|
||||
|
||||
When using the `preserveClientIp` feature, AGA creates
|
||||
**Elastic Network Interfaces** (ENIs) in your AWS account, that are
|
||||
associated with a Security Group AGA creates for you. You can use the
|
||||
security group created by AGA as a source group in other security groups
|
||||
(such as those for EC2 instances or Elastic Load Balancers), if you want to
|
||||
restrict incoming traffic to the AGA security group rules.
|
||||
|
||||
AGA creates a specific security group called `GlobalAccelerator` for each VPC
|
||||
it has an ENI in (this behavior can not be changed). CloudFormation doesn't
|
||||
support referencing the security group created by AGA, but this construct
|
||||
library comes with a custom resource that enables you to reference the AGA
|
||||
security group.
|
||||
|
||||
Call `endpointGroup.connectionsPeer()` to obtain a reference to the Security Group
|
||||
which you can use in connection rules. You must pass a reference to the VPC in whose
|
||||
context the security group will be looked up. Example:
|
||||
|
||||
```ts
|
||||
declare const listener: globalaccelerator.Listener;
|
||||
|
||||
// Non-open ALB
|
||||
declare const alb: elbv2.ApplicationLoadBalancer;
|
||||
|
||||
const endpointGroup = listener.addEndpointGroup('Group', {
|
||||
endpoints: [
|
||||
new ga_endpoints.ApplicationLoadBalancerEndpoint(alb, {
|
||||
preserveClientIp: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
// Remember that there is only one AGA security group per VPC.
|
||||
declare const vpc: ec2.Vpc;
|
||||
const agaSg = endpointGroup.connectionsPeer('GlobalAcceleratorSG', vpc);
|
||||
|
||||
// Allow connections from the AGA to the ALB
|
||||
alb.connections.allowFrom(agaSg, ec2.Port.tcp(443));
|
||||
```
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnAccelerator=void 0,Object.defineProperty(exports,_noFold="CfnAccelerator",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnAccelerator;return Object.defineProperty(exports,_noFold="CfnAccelerator",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnEndpointGroup=void 0,Object.defineProperty(exports,_noFold="CfnEndpointGroup",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnEndpointGroup;return Object.defineProperty(exports,_noFold="CfnEndpointGroup",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnListener=void 0,Object.defineProperty(exports,_noFold="CfnListener",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnListener;return Object.defineProperty(exports,_noFold="CfnListener",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnCrossAccountAttachment=void 0,Object.defineProperty(exports,_noFold="CfnCrossAccountAttachment",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnCrossAccountAttachment;return Object.defineProperty(exports,_noFold="CfnCrossAccountAttachment",{enumerable:!0,configurable:!0,value}),value}}),exports.IpAddressType=void 0,Object.defineProperty(exports,_noFold="IpAddressType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").IpAddressType;return Object.defineProperty(exports,_noFold="IpAddressType",{enumerable:!0,configurable:!0,value}),value}}),exports.Accelerator=void 0,Object.defineProperty(exports,_noFold="Accelerator",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Accelerator;return Object.defineProperty(exports,_noFold="Accelerator",{enumerable:!0,configurable:!0,value}),value}}),exports.ConnectionProtocol=void 0,Object.defineProperty(exports,_noFold="ConnectionProtocol",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").ConnectionProtocol;return Object.defineProperty(exports,_noFold="ConnectionProtocol",{enumerable:!0,configurable:!0,value}),value}}),exports.ClientAffinity=void 0,Object.defineProperty(exports,_noFold="ClientAffinity",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").ClientAffinity;return Object.defineProperty(exports,_noFold="ClientAffinity",{enumerable:!0,configurable:!0,value}),value}}),exports.Listener=void 0,Object.defineProperty(exports,_noFold="Listener",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Listener;return Object.defineProperty(exports,_noFold="Listener",{enumerable:!0,configurable:!0,value}),value}}),exports.HealthCheckProtocol=void 0,Object.defineProperty(exports,_noFold="HealthCheckProtocol",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").HealthCheckProtocol;return Object.defineProperty(exports,_noFold="HealthCheckProtocol",{enumerable:!0,configurable:!0,value}),value}}),exports.EndpointGroup=void 0,Object.defineProperty(exports,_noFold="EndpointGroup",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").EndpointGroup;return Object.defineProperty(exports,_noFold="EndpointGroup",{enumerable:!0,configurable:!0,value}),value}}),exports.RawEndpoint=void 0,Object.defineProperty(exports,_noFold="RawEndpoint",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").RawEndpoint;return Object.defineProperty(exports,_noFold="RawEndpoint",{enumerable:!0,configurable:!0,value}),value}});
|
||||
26
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/_accelerator-security-group.d.ts
generated
vendored
Normal file
26
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/_accelerator-security-group.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as ec2 from '../../aws-ec2';
|
||||
import type { EndpointGroup } from '../lib';
|
||||
/**
|
||||
* The security group used by a Global Accelerator to send traffic to resources in a VPC.
|
||||
*/
|
||||
export declare class AcceleratorSecurityGroupPeer implements ec2.IPeer {
|
||||
private readonly securityGroupId;
|
||||
/**
|
||||
* Lookup the Global Accelerator security group at CloudFormation deployment time.
|
||||
*
|
||||
* As of this writing, Global Accelerators (AGA) create a single security group per VPC. AGA security groups are shared
|
||||
* by all AGAs in an account. Additionally, there is no CloudFormation mechanism to reference the AGA security groups.
|
||||
*
|
||||
* This makes creating security group rules which allow traffic from an AGA complicated in CDK. This lookup will identify
|
||||
* the AGA security group for a given VPC at CloudFormation deployment time, and lets you create rules for traffic from AGA
|
||||
* to other resources created by CDK.
|
||||
*/
|
||||
static fromVpc(scope: Construct, id: string, vpc: ec2.IVpc, endpointGroup: EndpointGroup): AcceleratorSecurityGroupPeer;
|
||||
readonly canInlineRule = false;
|
||||
readonly connections: ec2.Connections;
|
||||
readonly uniqueId: string;
|
||||
private constructor();
|
||||
toIngressRuleConfig(): any;
|
||||
toEgressRuleConfig(): any;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/_accelerator-security-group.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/_accelerator-security-group.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AcceleratorSecurityGroupPeer=void 0;var ec2=()=>{var tmp=require("../../aws-ec2");return ec2=()=>tmp,tmp},custom_resources_1=()=>{var tmp=require("../../custom-resources");return custom_resources_1=()=>tmp,tmp};class AcceleratorSecurityGroupPeer{securityGroupId;static fromVpc(scope,id,vpc,endpointGroup){const globalAcceleratorSGName="GlobalAccelerator",ec2ResponseSGIdField="SecurityGroups.0.GroupId",lookupAcceleratorSGCustomResource=new(custom_resources_1()).AwsCustomResource(scope,id+"CustomResource",{onUpdate:{service:"EC2",action:"describeSecurityGroups",parameters:{Filters:[{Name:"group-name",Values:[globalAcceleratorSGName]},{Name:"vpc-id",Values:[vpc.vpcId]}]},physicalResourceId:custom_resources_1().PhysicalResourceId.fromResponse(ec2ResponseSGIdField)},policy:custom_resources_1().AwsCustomResourcePolicy.fromSdkCalls({resources:custom_resources_1().AwsCustomResourcePolicy.ANY_RESOURCE}),installLatestAwsSdk:!1});return lookupAcceleratorSGCustomResource.node.addDependency(endpointGroup.node.defaultChild),new AcceleratorSecurityGroupPeer(lookupAcceleratorSGCustomResource.getResponseField(ec2ResponseSGIdField))}canInlineRule=!1;connections=new(ec2()).Connections({peer:this});uniqueId="GlobalAcceleratorGroup";constructor(securityGroupId){this.securityGroupId=securityGroupId}toIngressRuleConfig(){return{sourceSecurityGroupId:this.securityGroupId}}toEgressRuleConfig(){return{destinationSecurityGroupId:this.securityGroupId}}}exports.AcceleratorSecurityGroupPeer=AcceleratorSecurityGroupPeer;
|
||||
170
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/accelerator.d.ts
generated
vendored
Normal file
170
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/accelerator.d.ts
generated
vendored
Normal file
@@ -0,0 +1,170 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as ga from './globalaccelerator.generated';
|
||||
import type { ListenerOptions } from './listener';
|
||||
import { Listener } from './listener';
|
||||
import * as cdk from '../../core';
|
||||
import type { IAcceleratorRef } from '../../interfaces/generated/aws-globalaccelerator-interfaces.generated';
|
||||
/**
|
||||
* The interface of the Accelerator
|
||||
*/
|
||||
export interface IAccelerator extends cdk.IResource, IAcceleratorRef {
|
||||
/**
|
||||
* The ARN of the accelerator.
|
||||
*
|
||||
* @attribute
|
||||
*/
|
||||
readonly acceleratorArn: string;
|
||||
/**
|
||||
* The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static
|
||||
* IP addresses.
|
||||
*
|
||||
* @attribute
|
||||
*/
|
||||
readonly dnsName: string;
|
||||
/**
|
||||
* The DNS name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses:
|
||||
* two IPv4 addresses and two IPv6 addresses.
|
||||
*
|
||||
* @attribute
|
||||
*/
|
||||
readonly dualStackDnsName?: string;
|
||||
/**
|
||||
* The array of IPv4 addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
|
||||
*
|
||||
* @attribute
|
||||
*/
|
||||
readonly ipv4Addresses?: string[];
|
||||
/**
|
||||
* The array of IPv6 addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
|
||||
*
|
||||
* @attribute
|
||||
*/
|
||||
readonly ipv6Addresses?: string[];
|
||||
}
|
||||
/**
|
||||
* Construct properties of the Accelerator
|
||||
*/
|
||||
export interface AcceleratorProps {
|
||||
/**
|
||||
* The name of the accelerator
|
||||
*
|
||||
* @default - resource ID
|
||||
*/
|
||||
readonly acceleratorName?: string;
|
||||
/**
|
||||
* Indicates whether the accelerator is enabled.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly enabled?: boolean;
|
||||
/**
|
||||
* IP addresses associated with the accelerator.
|
||||
*
|
||||
* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose IP
|
||||
* addresses from your own pool to use for the accelerator's static IP addresses when you create an accelerator.
|
||||
* You can specify one or two addresses, separated by a comma. Do not include the /32 suffix.
|
||||
*
|
||||
* Only one IP address from each of your IP address ranges can be used for each accelerator. If you specify
|
||||
* only one IP address from your IP address range, Global Accelerator assigns a second static IP address for
|
||||
* the accelerator from the AWS IP address pool.
|
||||
*
|
||||
* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a
|
||||
* new accelerator with the new addresses.
|
||||
*
|
||||
* @default - undefined. IP addresses will be from Amazon's pool of IP addresses.
|
||||
*/
|
||||
readonly ipAddresses?: string[];
|
||||
/**
|
||||
* The IP address type that an accelerator supports.
|
||||
*
|
||||
* For a standard accelerator, the value can be IPV4 or DUAL_STACK.
|
||||
*
|
||||
* @default - "IPV4"
|
||||
*/
|
||||
readonly ipAddressType?: IpAddressType;
|
||||
}
|
||||
/**
|
||||
* Attributes required to import an existing accelerator to the stack
|
||||
*/
|
||||
export interface AcceleratorAttributes {
|
||||
/**
|
||||
* The ARN of the accelerator
|
||||
*/
|
||||
readonly acceleratorArn: string;
|
||||
/**
|
||||
* The DNS name of the accelerator
|
||||
*/
|
||||
readonly dnsName: string;
|
||||
/**
|
||||
* The DNS name that points to the dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
|
||||
*
|
||||
* @default - undefined
|
||||
*/
|
||||
readonly dualStackDnsName?: string;
|
||||
/**
|
||||
* The array of IPv4 addresses in the IP address set
|
||||
*
|
||||
* @default - undefined
|
||||
*/
|
||||
readonly ipv4Addresses?: string[];
|
||||
/**
|
||||
* The array of IPv6 addresses in the IP address set
|
||||
*
|
||||
* @default - undefined
|
||||
*/
|
||||
readonly ipv6Addresses?: string[];
|
||||
}
|
||||
/**
|
||||
* The IP address type that an accelerator supports.
|
||||
*/
|
||||
export declare enum IpAddressType {
|
||||
/**
|
||||
* IPV4
|
||||
*/
|
||||
IPV4 = "IPV4",
|
||||
/**
|
||||
* DUAL_STACK
|
||||
*/
|
||||
DUAL_STACK = "DUAL_STACK"
|
||||
}
|
||||
/**
|
||||
* The Accelerator construct
|
||||
*/
|
||||
export declare class Accelerator extends cdk.Resource implements IAccelerator {
|
||||
/** Uniquely identifies this class. */
|
||||
static readonly PROPERTY_INJECTION_ID: string;
|
||||
/**
|
||||
* import from attributes
|
||||
*/
|
||||
static fromAcceleratorAttributes(scope: Construct, id: string, attrs: AcceleratorAttributes): IAccelerator;
|
||||
/**
|
||||
* The ARN of the accelerator.
|
||||
*/
|
||||
readonly acceleratorArn: string;
|
||||
/**
|
||||
* The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static
|
||||
* IP addresses.
|
||||
*/
|
||||
readonly dnsName: string;
|
||||
/**
|
||||
* The DNS name that points to the dual-stack accelerator's four static IP addresses:
|
||||
* two IPv4 addresses and two IPv6 addresses.
|
||||
*/
|
||||
readonly dualStackDnsName?: string;
|
||||
/**
|
||||
* The array of IPv4 addresses in the IP address set
|
||||
*/
|
||||
readonly ipv4Addresses?: string[];
|
||||
/**
|
||||
* The array of IPv6 addresses in the IP address set
|
||||
*/
|
||||
readonly ipv6Addresses?: string[];
|
||||
get acceleratorRef(): ga.AcceleratorReference;
|
||||
constructor(scope: Construct, id: string, props?: AcceleratorProps);
|
||||
/**
|
||||
* Add a listener to the accelerator
|
||||
*/
|
||||
addListener(id: string, options: ListenerOptions): Listener;
|
||||
private validateAcceleratorName;
|
||||
private validateIpAddresses;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/accelerator.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/accelerator.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
182
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/endpoint-group.d.ts
generated
vendored
Normal file
182
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/endpoint-group.d.ts
generated
vendored
Normal file
@@ -0,0 +1,182 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type { IEndpoint } from './endpoint';
|
||||
import * as ga from './globalaccelerator.generated';
|
||||
import type * as ec2 from '../../aws-ec2';
|
||||
import * as cdk from '../../core';
|
||||
import type { IEndpointGroupRef, IListenerRef } from '../../interfaces/generated/aws-globalaccelerator-interfaces.generated';
|
||||
/**
|
||||
* The interface of the EndpointGroup
|
||||
*/
|
||||
export interface IEndpointGroup extends cdk.IResource, IEndpointGroupRef {
|
||||
/**
|
||||
* EndpointGroup ARN
|
||||
* @attribute
|
||||
*/
|
||||
readonly endpointGroupArn: string;
|
||||
}
|
||||
/**
|
||||
* Basic options for creating a new EndpointGroup
|
||||
*/
|
||||
export interface EndpointGroupOptions {
|
||||
/**
|
||||
* Name of the endpoint group
|
||||
*
|
||||
* @default - logical ID of the resource
|
||||
*/
|
||||
readonly endpointGroupName?: string;
|
||||
/**
|
||||
* The AWS Region where the endpoint group is located.
|
||||
*
|
||||
* @default - region of the first endpoint in this group, or the stack region if that region can't be determined
|
||||
*/
|
||||
readonly region?: string;
|
||||
/**
|
||||
* The time between health checks for each endpoint
|
||||
*
|
||||
* Must be either 10 or 30 seconds.
|
||||
*
|
||||
* @default Duration.seconds(30)
|
||||
*/
|
||||
readonly healthCheckInterval?: cdk.Duration;
|
||||
/**
|
||||
* The ping path for health checks (if the protocol is HTTP(S)).
|
||||
*
|
||||
* @default '/'
|
||||
*/
|
||||
readonly healthCheckPath?: string;
|
||||
/**
|
||||
* The port used to perform health checks
|
||||
*
|
||||
* @default - The listener's port
|
||||
*/
|
||||
readonly healthCheckPort?: number;
|
||||
/**
|
||||
* The protocol used to perform health checks
|
||||
*
|
||||
* @default HealthCheckProtocol.TCP
|
||||
*/
|
||||
readonly healthCheckProtocol?: HealthCheckProtocol;
|
||||
/**
|
||||
* The number of consecutive health checks required to set the state of a
|
||||
* healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.
|
||||
*
|
||||
* @default 3
|
||||
*/
|
||||
readonly healthCheckThreshold?: number;
|
||||
/**
|
||||
* The percentage of traffic to send to this AWS Region.
|
||||
*
|
||||
* The percentage is applied to the traffic that would otherwise have been
|
||||
* routed to the Region based on optimal routing. Additional traffic is
|
||||
* distributed to other endpoint groups for this listener.
|
||||
*
|
||||
* @default 100
|
||||
*/
|
||||
readonly trafficDialPercentage?: number;
|
||||
/**
|
||||
* Override the destination ports used to route traffic to an endpoint.
|
||||
*
|
||||
* Unless overridden, the port used to hit the endpoint will be the same as the port
|
||||
* that traffic arrives on at the listener.
|
||||
*
|
||||
* @default - No overrides
|
||||
*/
|
||||
readonly portOverrides?: PortOverride[];
|
||||
/**
|
||||
* Initial list of endpoints for this group
|
||||
*
|
||||
* @default - Group is initially empty
|
||||
*/
|
||||
readonly endpoints?: IEndpoint[];
|
||||
}
|
||||
/**
|
||||
* Override specific listener ports used to route traffic to endpoints that are part of an endpoint group.
|
||||
*/
|
||||
export interface PortOverride {
|
||||
/**
|
||||
* The listener port that you want to map to a specific endpoint port.
|
||||
*
|
||||
* This is the port that user traffic arrives to the Global Accelerator on.
|
||||
*/
|
||||
readonly listenerPort: number;
|
||||
/**
|
||||
* The endpoint port that you want a listener port to be mapped to.
|
||||
*
|
||||
* This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
|
||||
*/
|
||||
readonly endpointPort: number;
|
||||
}
|
||||
/**
|
||||
* The protocol for the connections from clients to the accelerator.
|
||||
*/
|
||||
export declare enum HealthCheckProtocol {
|
||||
/**
|
||||
* TCP
|
||||
*/
|
||||
TCP = "TCP",
|
||||
/**
|
||||
* HTTP
|
||||
*/
|
||||
HTTP = "HTTP",
|
||||
/**
|
||||
* HTTPS
|
||||
*/
|
||||
HTTPS = "HTTPS"
|
||||
}
|
||||
/**
|
||||
* Property of the EndpointGroup
|
||||
*/
|
||||
export interface EndpointGroupProps extends EndpointGroupOptions {
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of the listener.
|
||||
*/
|
||||
readonly listener: IListenerRef;
|
||||
}
|
||||
/**
|
||||
* EndpointGroup construct
|
||||
*/
|
||||
export declare class EndpointGroup extends cdk.Resource implements IEndpointGroup {
|
||||
/** Uniquely identifies this class. */
|
||||
static readonly PROPERTY_INJECTION_ID: string;
|
||||
/**
|
||||
* import from ARN
|
||||
*/
|
||||
static fromEndpointGroupArn(scope: Construct, id: string, endpointGroupArn: string): IEndpointGroup;
|
||||
readonly endpointGroupArn: string;
|
||||
/**
|
||||
*
|
||||
* The name of the endpoint group
|
||||
*
|
||||
* @attribute
|
||||
*/
|
||||
readonly endpointGroupName: string;
|
||||
/**
|
||||
* The array of the endpoints in this endpoint group
|
||||
*/
|
||||
protected readonly endpoints: IEndpoint[];
|
||||
get endpointGroupRef(): ga.EndpointGroupReference;
|
||||
constructor(scope: Construct, id: string, props: EndpointGroupProps);
|
||||
/**
|
||||
* Add an endpoint
|
||||
*/
|
||||
addEndpoint(endpoint: IEndpoint): void;
|
||||
/**
|
||||
* Return an object that represents the Accelerator's Security Group
|
||||
*
|
||||
* Uses a Custom Resource to look up the Security Group that Accelerator
|
||||
* creates at deploy time. Requires your VPC ID to perform the lookup.
|
||||
*
|
||||
* The Security Group will only be created if you enable **Client IP
|
||||
* Preservation** on any of the endpoints.
|
||||
*
|
||||
* You cannot manipulate the rules inside this security group, but you can
|
||||
* use this security group as a Peer in Connections rules on other
|
||||
* constructs.
|
||||
*/
|
||||
connectionsPeer(id: string, vpc: ec2.IVpc): ec2.IPeer;
|
||||
private renderEndpoints;
|
||||
/**
|
||||
* Return the first (readable) region of the endpoints in this group
|
||||
*/
|
||||
private firstEndpointRegion;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/endpoint-group.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/endpoint-group.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
69
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/endpoint.d.ts
generated
vendored
Normal file
69
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/endpoint.d.ts
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* An endpoint for the endpoint group
|
||||
*
|
||||
* Implementations of `IEndpoint` can be found in the `aws-globalaccelerator-endpoints` package.
|
||||
*/
|
||||
export interface IEndpoint {
|
||||
/**
|
||||
* The region where the endpoint is located
|
||||
*
|
||||
* If the region cannot be determined, `undefined` is returned
|
||||
*/
|
||||
readonly region?: string;
|
||||
/**
|
||||
* Render the endpoint to an endpoint configuration
|
||||
*/
|
||||
renderEndpointConfiguration(): any;
|
||||
}
|
||||
/**
|
||||
* Properties for RawEndpoint
|
||||
*/
|
||||
export interface RawEndpointProps {
|
||||
/**
|
||||
* Identifier of the endpoint
|
||||
*
|
||||
* Load balancer ARN, instance ID or EIP allocation ID.
|
||||
*/
|
||||
readonly endpointId: string;
|
||||
/**
|
||||
* Endpoint weight across all endpoints in the group
|
||||
*
|
||||
* Must be a value between 0 and 255.
|
||||
*
|
||||
* @default 128
|
||||
*/
|
||||
readonly weight?: number;
|
||||
/**
|
||||
* Forward the client IP address
|
||||
*
|
||||
* GlobalAccelerator will create Network Interfaces in your VPC in order
|
||||
* to preserve the client IP address.
|
||||
*
|
||||
* Only applies to Application Load Balancers and EC2 instances.
|
||||
*
|
||||
* Client IP address preservation is supported only in specific AWS Regions.
|
||||
* See the GlobalAccelerator Developer Guide for a list.
|
||||
*
|
||||
* @default true if possible and available
|
||||
*/
|
||||
readonly preserveClientIp?: boolean;
|
||||
/**
|
||||
* The region where this endpoint is located
|
||||
*
|
||||
* @default - Unknown what region this endpoint is located
|
||||
*/
|
||||
readonly region?: string;
|
||||
}
|
||||
/**
|
||||
* Untyped endpoint implementation
|
||||
*
|
||||
* Prefer using the classes in the `aws-globalaccelerator-endpoints` package instead,
|
||||
* as they accept typed constructs. You can use this class if you want to use an
|
||||
* endpoint type that does not have an appropriate class in that package yet.
|
||||
*/
|
||||
export declare class RawEndpoint implements IEndpoint {
|
||||
private readonly props;
|
||||
readonly region?: string;
|
||||
constructor(props: RawEndpointProps);
|
||||
renderEndpointConfiguration(): any;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/endpoint.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/endpoint.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RawEndpoint=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class RawEndpoint{props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_globalaccelerator.RawEndpoint",version:"2.252.0"};region;constructor(props){this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_globalaccelerator_RawEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,RawEndpoint),error}this.region=props.region}renderEndpointConfiguration(){return{endpointId:this.props.endpointId,weight:this.props.weight,clientIpPreservationEnabled:this.props.preserveClientIp}}}exports.RawEndpoint=RawEndpoint;
|
||||
961
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/globalaccelerator.generated.d.ts
generated
vendored
Normal file
961
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/globalaccelerator.generated.d.ts
generated
vendored
Normal file
@@ -0,0 +1,961 @@
|
||||
import * as cdk from "../../core/lib";
|
||||
import * as constructs from "constructs";
|
||||
import * as cfn_parse from "../../core/lib/helpers-internal";
|
||||
import { AcceleratorReference, CrossAccountAttachmentReference, EndpointGroupReference, IAcceleratorRef, ICrossAccountAttachmentRef, IEndpointGroupRef, IListenerRef, ListenerReference } from "../../interfaces/generated/aws-globalaccelerator-interfaces.generated";
|
||||
import { aws_globalaccelerator as globalAcceleratorRefs } from "../../interfaces";
|
||||
/**
|
||||
* The `AWS::GlobalAccelerator::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.
|
||||
*
|
||||
* @cloudformationResource AWS::GlobalAccelerator::Accelerator
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html
|
||||
*/
|
||||
export declare class CfnAccelerator extends cdk.CfnResource implements cdk.IInspectable, IAcceleratorRef, cdk.ITaggable {
|
||||
/**
|
||||
* The CloudFormation resource type name for this resource class.
|
||||
*/
|
||||
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
||||
/**
|
||||
* Build a CfnAccelerator from CloudFormation properties
|
||||
*
|
||||
* A factory method that creates a new instance of this class from an object
|
||||
* containing the CloudFormation properties of this resource.
|
||||
* Used in the @aws-cdk/cloudformation-include module.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnAccelerator;
|
||||
/**
|
||||
* Checks whether the given object is a CfnAccelerator
|
||||
*/
|
||||
static isCfnAccelerator(x: any): x is CfnAccelerator;
|
||||
static arnForAccelerator(resource: IAcceleratorRef): string;
|
||||
/**
|
||||
* Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
|
||||
*/
|
||||
private _enabled?;
|
||||
/**
|
||||
* Indicates whether flow logs are enabled for the accelerator.
|
||||
*/
|
||||
private _flowLogsEnabled?;
|
||||
/**
|
||||
* The name of the Amazon S3 bucket for the flow logs.
|
||||
*/
|
||||
private _flowLogsS3Bucket?;
|
||||
/**
|
||||
* The prefix for the location in the Amazon S3 bucket for the flow logs.
|
||||
*/
|
||||
private _flowLogsS3Prefix?;
|
||||
/**
|
||||
* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose IP addresses from your own pool to use for the accelerator's static IP addresses when you create an accelerator.
|
||||
*/
|
||||
private _ipAddresses?;
|
||||
/**
|
||||
* The IP address type that an accelerator supports.
|
||||
*/
|
||||
private _ipAddressType?;
|
||||
/**
|
||||
* The name of the accelerator.
|
||||
*/
|
||||
private _name;
|
||||
/**
|
||||
* Tag Manager which manages the tags for this resource
|
||||
*/
|
||||
readonly tags: cdk.TagManager;
|
||||
/**
|
||||
* Create tags for an accelerator.
|
||||
*/
|
||||
private _tagsRaw?;
|
||||
protected readonly cfnPropertyNames: Record<string, string>;
|
||||
/**
|
||||
* Create a new `AWS::GlobalAccelerator::Accelerator`.
|
||||
*
|
||||
* @param scope Scope in which this resource is defined
|
||||
* @param id Construct identifier for this resource (unique in its scope)
|
||||
* @param props Resource properties
|
||||
*/
|
||||
constructor(scope: constructs.Construct, id: string, props: CfnAcceleratorProps);
|
||||
get acceleratorRef(): AcceleratorReference;
|
||||
/**
|
||||
* Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
|
||||
*/
|
||||
get enabled(): boolean | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
|
||||
*/
|
||||
set enabled(value: boolean | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* Indicates whether flow logs are enabled for the accelerator.
|
||||
*/
|
||||
get flowLogsEnabled(): boolean | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* Indicates whether flow logs are enabled for the accelerator.
|
||||
*/
|
||||
set flowLogsEnabled(value: boolean | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* The name of the Amazon S3 bucket for the flow logs.
|
||||
*/
|
||||
get flowLogsS3Bucket(): string | undefined;
|
||||
/**
|
||||
* The name of the Amazon S3 bucket for the flow logs.
|
||||
*/
|
||||
set flowLogsS3Bucket(value: string | undefined);
|
||||
/**
|
||||
* The prefix for the location in the Amazon S3 bucket for the flow logs.
|
||||
*/
|
||||
get flowLogsS3Prefix(): string | undefined;
|
||||
/**
|
||||
* The prefix for the location in the Amazon S3 bucket for the flow logs.
|
||||
*/
|
||||
set flowLogsS3Prefix(value: string | undefined);
|
||||
/**
|
||||
* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose IP addresses from your own pool to use for the accelerator's static IP addresses when you create an accelerator.
|
||||
*/
|
||||
get ipAddresses(): Array<string> | undefined;
|
||||
/**
|
||||
* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose IP addresses from your own pool to use for the accelerator's static IP addresses when you create an accelerator.
|
||||
*/
|
||||
set ipAddresses(value: Array<string> | undefined);
|
||||
/**
|
||||
* The IP address type that an accelerator supports.
|
||||
*/
|
||||
get ipAddressType(): string | undefined;
|
||||
/**
|
||||
* The IP address type that an accelerator supports.
|
||||
*/
|
||||
set ipAddressType(value: string | undefined);
|
||||
/**
|
||||
* The name of the accelerator.
|
||||
*/
|
||||
get name(): string;
|
||||
/**
|
||||
* The name of the accelerator.
|
||||
*/
|
||||
set name(value: string);
|
||||
/**
|
||||
* Create tags for an accelerator.
|
||||
*/
|
||||
get tagsRaw(): Array<cdk.CfnTag> | undefined;
|
||||
/**
|
||||
* Create tags for an accelerator.
|
||||
*/
|
||||
set tagsRaw(value: Array<cdk.CfnTag> | undefined);
|
||||
/**
|
||||
* The ARN of the accelerator, such as `arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh` .
|
||||
*
|
||||
* @cloudformationAttribute AcceleratorArn
|
||||
*/
|
||||
get attrAcceleratorArn(): string;
|
||||
/**
|
||||
* The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
|
||||
*
|
||||
* @cloudformationAttribute DnsName
|
||||
*/
|
||||
get attrDnsName(): string;
|
||||
/**
|
||||
* The DNS name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
|
||||
*
|
||||
* @cloudformationAttribute DualStackDnsName
|
||||
*/
|
||||
get attrDualStackDnsName(): string;
|
||||
/**
|
||||
* The array of IPv4 addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
|
||||
*
|
||||
* @cloudformationAttribute Ipv4Addresses
|
||||
*/
|
||||
get attrIpv4Addresses(): Array<string>;
|
||||
/**
|
||||
* The array of IPv6 addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
|
||||
*
|
||||
* @cloudformationAttribute Ipv6Addresses
|
||||
*/
|
||||
get attrIpv6Addresses(): Array<string>;
|
||||
protected get cfnProperties(): Record<string, any>;
|
||||
/**
|
||||
* Examines the CloudFormation resource and discloses attributes
|
||||
*
|
||||
* @param inspector tree inspector to collect and process attributes
|
||||
*/
|
||||
inspect(inspector: cdk.TreeInspector): void;
|
||||
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
||||
}
|
||||
/**
|
||||
* Properties for defining a `CfnAccelerator`
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html
|
||||
*/
|
||||
export interface CfnAcceleratorProps {
|
||||
/**
|
||||
* Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
|
||||
*
|
||||
* If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
|
||||
*
|
||||
* @default - true
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-enabled
|
||||
*/
|
||||
readonly enabled?: boolean | cdk.IResolvable;
|
||||
/**
|
||||
* Indicates whether flow logs are enabled for the accelerator.
|
||||
*
|
||||
* @default - false
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-flowlogsenabled
|
||||
*/
|
||||
readonly flowLogsEnabled?: boolean | cdk.IResolvable;
|
||||
/**
|
||||
* The name of the Amazon S3 bucket for the flow logs.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-flowlogss3bucket
|
||||
*/
|
||||
readonly flowLogsS3Bucket?: string;
|
||||
/**
|
||||
* The prefix for the location in the Amazon S3 bucket for the flow logs.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-flowlogss3prefix
|
||||
*/
|
||||
readonly flowLogsS3Prefix?: string;
|
||||
/**
|
||||
* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose IP addresses from your own pool to use for the accelerator's static IP addresses when you create an accelerator.
|
||||
*
|
||||
* You can specify one or two addresses, separated by a comma. Do not include the /32 suffix.
|
||||
*
|
||||
* Only one IP address from each of your IP address ranges can be used for each accelerator. If you specify only one IP address from your IP address range, Global Accelerator assigns a second static IP address for the accelerator from the AWS IP address pool.
|
||||
*
|
||||
* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new accelerator with the new addresses.
|
||||
*
|
||||
* For more information, see [Bring Your Own IP Addresses (BYOIP)](https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html) in the *AWS Global Accelerator Developer Guide* .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-ipaddresses
|
||||
*/
|
||||
readonly ipAddresses?: Array<string>;
|
||||
/**
|
||||
* The IP address type that an accelerator supports.
|
||||
*
|
||||
* For a standard accelerator, the value can be IPV4 or DUAL_STACK.
|
||||
*
|
||||
* @default - "IPV4"
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-ipaddresstype
|
||||
*/
|
||||
readonly ipAddressType?: string;
|
||||
/**
|
||||
* The name of the accelerator.
|
||||
*
|
||||
* The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-name
|
||||
*/
|
||||
readonly name: string;
|
||||
/**
|
||||
* Create tags for an accelerator.
|
||||
*
|
||||
* For more information, see [Tagging](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-tags
|
||||
*/
|
||||
readonly tags?: Array<cdk.CfnTag>;
|
||||
}
|
||||
/**
|
||||
* The `AWS::GlobalAccelerator::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 .
|
||||
*
|
||||
* @cloudformationResource AWS::GlobalAccelerator::EndpointGroup
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html
|
||||
*/
|
||||
export declare class CfnEndpointGroup extends cdk.CfnResource implements cdk.IInspectable, IEndpointGroupRef {
|
||||
/**
|
||||
* The CloudFormation resource type name for this resource class.
|
||||
*/
|
||||
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
||||
/**
|
||||
* Build a CfnEndpointGroup from CloudFormation properties
|
||||
*
|
||||
* A factory method that creates a new instance of this class from an object
|
||||
* containing the CloudFormation properties of this resource.
|
||||
* Used in the @aws-cdk/cloudformation-include module.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnEndpointGroup;
|
||||
/**
|
||||
* Checks whether the given object is a CfnEndpointGroup
|
||||
*/
|
||||
static isCfnEndpointGroup(x: any): x is CfnEndpointGroup;
|
||||
static arnForEndpointGroup(resource: IEndpointGroupRef): string;
|
||||
/**
|
||||
* The list of endpoint objects.
|
||||
*/
|
||||
private _endpointConfigurations?;
|
||||
/**
|
||||
* The AWS Regions where the endpoint group is located.
|
||||
*/
|
||||
private _endpointGroupRegion;
|
||||
/**
|
||||
* The time—10 seconds or 30 seconds—between health checks for each endpoint.
|
||||
*/
|
||||
private _healthCheckIntervalSeconds?;
|
||||
/**
|
||||
* If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks.
|
||||
*/
|
||||
private _healthCheckPath?;
|
||||
/**
|
||||
* The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
||||
*/
|
||||
private _healthCheckPort?;
|
||||
/**
|
||||
* The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
||||
*/
|
||||
private _healthCheckProtocol?;
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of the listener.
|
||||
*/
|
||||
private _listenerArn;
|
||||
/**
|
||||
* Allows you to override the destination ports used to route traffic to an endpoint.
|
||||
*/
|
||||
private _portOverrides?;
|
||||
/**
|
||||
* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.
|
||||
*/
|
||||
private _thresholdCount?;
|
||||
/**
|
||||
* The percentage of traffic to send to an AWS Regions .
|
||||
*/
|
||||
private _trafficDialPercentage?;
|
||||
protected readonly cfnPropertyNames: Record<string, string>;
|
||||
/**
|
||||
* Create a new `AWS::GlobalAccelerator::EndpointGroup`.
|
||||
*
|
||||
* @param scope Scope in which this resource is defined
|
||||
* @param id Construct identifier for this resource (unique in its scope)
|
||||
* @param props Resource properties
|
||||
*/
|
||||
constructor(scope: constructs.Construct, id: string, props: CfnEndpointGroupProps);
|
||||
get endpointGroupRef(): EndpointGroupReference;
|
||||
/**
|
||||
* The list of endpoint objects.
|
||||
*/
|
||||
get endpointConfigurations(): Array<CfnEndpointGroup.EndpointConfigurationProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* The list of endpoint objects.
|
||||
*/
|
||||
set endpointConfigurations(value: Array<CfnEndpointGroup.EndpointConfigurationProperty | cdk.IResolvable> | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* The AWS Regions where the endpoint group is located.
|
||||
*/
|
||||
get endpointGroupRegion(): string;
|
||||
/**
|
||||
* The AWS Regions where the endpoint group is located.
|
||||
*/
|
||||
set endpointGroupRegion(value: string);
|
||||
/**
|
||||
* The time—10 seconds or 30 seconds—between health checks for each endpoint.
|
||||
*/
|
||||
get healthCheckIntervalSeconds(): number | undefined;
|
||||
/**
|
||||
* The time—10 seconds or 30 seconds—between health checks for each endpoint.
|
||||
*/
|
||||
set healthCheckIntervalSeconds(value: number | undefined);
|
||||
/**
|
||||
* If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks.
|
||||
*/
|
||||
get healthCheckPath(): string | undefined;
|
||||
/**
|
||||
* If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks.
|
||||
*/
|
||||
set healthCheckPath(value: string | undefined);
|
||||
/**
|
||||
* The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
||||
*/
|
||||
get healthCheckPort(): number | undefined;
|
||||
/**
|
||||
* The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
||||
*/
|
||||
set healthCheckPort(value: number | undefined);
|
||||
/**
|
||||
* The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
||||
*/
|
||||
get healthCheckProtocol(): string | undefined;
|
||||
/**
|
||||
* The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
||||
*/
|
||||
set healthCheckProtocol(value: string | undefined);
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of the listener.
|
||||
*/
|
||||
get listenerArn(): string;
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of the listener.
|
||||
*/
|
||||
set listenerArn(value: string);
|
||||
/**
|
||||
* Allows you to override the destination ports used to route traffic to an endpoint.
|
||||
*/
|
||||
get portOverrides(): Array<cdk.IResolvable | CfnEndpointGroup.PortOverrideProperty> | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* Allows you to override the destination ports used to route traffic to an endpoint.
|
||||
*/
|
||||
set portOverrides(value: Array<cdk.IResolvable | CfnEndpointGroup.PortOverrideProperty> | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.
|
||||
*/
|
||||
get thresholdCount(): number | undefined;
|
||||
/**
|
||||
* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.
|
||||
*/
|
||||
set thresholdCount(value: number | undefined);
|
||||
/**
|
||||
* The percentage of traffic to send to an AWS Regions .
|
||||
*/
|
||||
get trafficDialPercentage(): number | undefined;
|
||||
/**
|
||||
* The percentage of traffic to send to an AWS Regions .
|
||||
*/
|
||||
set trafficDialPercentage(value: number | undefined);
|
||||
/**
|
||||
* The ARN of the endpoint group, such as `arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh/listener/0123vxyz/endpoint-group/098765zyxwvu` .
|
||||
*
|
||||
* @cloudformationAttribute EndpointGroupArn
|
||||
*/
|
||||
get attrEndpointGroupArn(): string;
|
||||
protected get cfnProperties(): Record<string, any>;
|
||||
/**
|
||||
* Examines the CloudFormation resource and discloses attributes
|
||||
*
|
||||
* @param inspector tree inspector to collect and process attributes
|
||||
*/
|
||||
inspect(inspector: cdk.TreeInspector): void;
|
||||
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
||||
}
|
||||
export declare namespace CfnEndpointGroup {
|
||||
/**
|
||||
* Override specific listener ports used to route traffic to endpoints that are part of an endpoint group.
|
||||
*
|
||||
* For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
|
||||
*
|
||||
* For more information, see [Port overrides](https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoint-groups-port-override.html) in the *AWS Global Accelerator Developer Guide* .
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-portoverride.html
|
||||
*/
|
||||
interface PortOverrideProperty {
|
||||
/**
|
||||
* The endpoint port that you want a listener port to be mapped to.
|
||||
*
|
||||
* This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-portoverride.html#cfn-globalaccelerator-endpointgroup-portoverride-endpointport
|
||||
*/
|
||||
readonly endpointPort: number;
|
||||
/**
|
||||
* The listener port that you want to map to a specific endpoint port.
|
||||
*
|
||||
* This is the port that user traffic arrives to the Global Accelerator on.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-portoverride.html#cfn-globalaccelerator-endpointgroup-portoverride-listenerport
|
||||
*/
|
||||
readonly listenerPort: number;
|
||||
}
|
||||
/**
|
||||
* A complex type for endpoints.
|
||||
*
|
||||
* A resource must be valid and active when you add it as an endpoint.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-endpointconfiguration.html
|
||||
*/
|
||||
interface EndpointConfigurationProperty {
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints (resources) that can be added to accelerators and principals that have permission to add the endpoints.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-endpointconfiguration.html#cfn-globalaccelerator-endpointgroup-endpointconfiguration-attachmentarn
|
||||
*/
|
||||
readonly attachmentArn?: string;
|
||||
/**
|
||||
* Indicates whether client IP address preservation is enabled for an Application Load Balancer endpoint.
|
||||
*
|
||||
* The value is true or false. The default value is true for new accelerators.
|
||||
*
|
||||
* If the value is set to true, the client's IP address is preserved in the `X-Forwarded-For` request header as traffic travels to applications on the Application Load Balancer endpoint fronted by the accelerator.
|
||||
*
|
||||
* For more information, see [Preserve Client IP Addresses](https://docs.aws.amazon.com/global-accelerator/latest/dg/preserve-client-ip-address.html) in the *AWS Global Accelerator Developer Guide* .
|
||||
*
|
||||
* @default - true
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-endpointconfiguration.html#cfn-globalaccelerator-endpointgroup-endpointconfiguration-clientippreservationenabled
|
||||
*/
|
||||
readonly clientIpPreservationEnabled?: boolean | cdk.IResolvable;
|
||||
/**
|
||||
* An ID for the endpoint.
|
||||
*
|
||||
* If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID. A resource must be valid and active when you add it as an endpoint.
|
||||
*
|
||||
* For cross-account endpoints, this must be the ARN of the resource.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-endpointconfiguration.html#cfn-globalaccelerator-endpointgroup-endpointconfiguration-endpointid
|
||||
*/
|
||||
readonly endpointId: string;
|
||||
/**
|
||||
* The weight associated with the endpoint.
|
||||
*
|
||||
* When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see [Endpoint Weights](https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoints-endpoint-weights.html) in the *AWS Global Accelerator Developer Guide* .
|
||||
*
|
||||
* @default - 100
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-endpointconfiguration.html#cfn-globalaccelerator-endpointgroup-endpointconfiguration-weight
|
||||
*/
|
||||
readonly weight?: number;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Properties for defining a `CfnEndpointGroup`
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html
|
||||
*/
|
||||
export interface CfnEndpointGroupProps {
|
||||
/**
|
||||
* The list of endpoint objects.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-endpointconfigurations
|
||||
*/
|
||||
readonly endpointConfigurations?: Array<CfnEndpointGroup.EndpointConfigurationProperty | cdk.IResolvable> | cdk.IResolvable;
|
||||
/**
|
||||
* The AWS Regions where the endpoint group is located.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-endpointgroupregion
|
||||
*/
|
||||
readonly endpointGroupRegion: string;
|
||||
/**
|
||||
* The time—10 seconds or 30 seconds—between health checks for each endpoint.
|
||||
*
|
||||
* The default value is 30.
|
||||
*
|
||||
* @default - 30
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckintervalseconds
|
||||
*/
|
||||
readonly healthCheckIntervalSeconds?: number;
|
||||
/**
|
||||
* If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks.
|
||||
*
|
||||
* The default is slash (/).
|
||||
*
|
||||
* @default - "/"
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckpath
|
||||
*/
|
||||
readonly healthCheckPath?: string;
|
||||
/**
|
||||
* The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
||||
*
|
||||
* The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.
|
||||
*
|
||||
* @default - -1
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckport
|
||||
*/
|
||||
readonly healthCheckPort?: number;
|
||||
/**
|
||||
* The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
|
||||
*
|
||||
* The default value is TCP.
|
||||
*
|
||||
* @default - "TCP"
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckprotocol
|
||||
*/
|
||||
readonly healthCheckProtocol?: string;
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of the listener.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-listenerarn
|
||||
*/
|
||||
readonly listenerArn: globalAcceleratorRefs.IListenerRef | string;
|
||||
/**
|
||||
* Allows you to override the destination ports used to route traffic to an endpoint.
|
||||
*
|
||||
* Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-portoverrides
|
||||
*/
|
||||
readonly portOverrides?: Array<cdk.IResolvable | CfnEndpointGroup.PortOverrideProperty> | cdk.IResolvable;
|
||||
/**
|
||||
* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy.
|
||||
*
|
||||
* The default value is 3.
|
||||
*
|
||||
* @default - 3
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-thresholdcount
|
||||
*/
|
||||
readonly thresholdCount?: number;
|
||||
/**
|
||||
* The percentage of traffic to send to an AWS Regions .
|
||||
*
|
||||
* Additional traffic is distributed to other endpoint groups for this listener.
|
||||
*
|
||||
* Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
|
||||
*
|
||||
* The default value is 100.
|
||||
*
|
||||
* @default - 100
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-trafficdialpercentage
|
||||
*/
|
||||
readonly trafficDialPercentage?: number;
|
||||
}
|
||||
/**
|
||||
* The `AWS::GlobalAccelerator::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.
|
||||
*
|
||||
* @cloudformationResource AWS::GlobalAccelerator::Listener
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html
|
||||
*/
|
||||
export declare class CfnListener extends cdk.CfnResource implements cdk.IInspectable, IListenerRef {
|
||||
/**
|
||||
* The CloudFormation resource type name for this resource class.
|
||||
*/
|
||||
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
||||
/**
|
||||
* Build a CfnListener from CloudFormation properties
|
||||
*
|
||||
* A factory method that creates a new instance of this class from an object
|
||||
* containing the CloudFormation properties of this resource.
|
||||
* Used in the @aws-cdk/cloudformation-include module.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnListener;
|
||||
/**
|
||||
* Checks whether the given object is a CfnListener
|
||||
*/
|
||||
static isCfnListener(x: any): x is CfnListener;
|
||||
static arnForListener(resource: IListenerRef): string;
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of your accelerator.
|
||||
*/
|
||||
private _acceleratorArn;
|
||||
/**
|
||||
* Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request.
|
||||
*/
|
||||
private _clientAffinity?;
|
||||
/**
|
||||
* The list of port ranges for the connections from clients to the accelerator.
|
||||
*/
|
||||
private _portRanges;
|
||||
/**
|
||||
* The protocol for the connections from clients to the accelerator.
|
||||
*/
|
||||
private _protocol;
|
||||
protected readonly cfnPropertyNames: Record<string, string>;
|
||||
/**
|
||||
* Create a new `AWS::GlobalAccelerator::Listener`.
|
||||
*
|
||||
* @param scope Scope in which this resource is defined
|
||||
* @param id Construct identifier for this resource (unique in its scope)
|
||||
* @param props Resource properties
|
||||
*/
|
||||
constructor(scope: constructs.Construct, id: string, props: CfnListenerProps);
|
||||
get listenerRef(): ListenerReference;
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of your accelerator.
|
||||
*/
|
||||
get acceleratorArn(): string;
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of your accelerator.
|
||||
*/
|
||||
set acceleratorArn(value: string);
|
||||
/**
|
||||
* Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request.
|
||||
*/
|
||||
get clientAffinity(): string | undefined;
|
||||
/**
|
||||
* Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request.
|
||||
*/
|
||||
set clientAffinity(value: string | undefined);
|
||||
/**
|
||||
* The list of port ranges for the connections from clients to the accelerator.
|
||||
*/
|
||||
get portRanges(): Array<cdk.IResolvable | CfnListener.PortRangeProperty> | cdk.IResolvable;
|
||||
/**
|
||||
* The list of port ranges for the connections from clients to the accelerator.
|
||||
*/
|
||||
set portRanges(value: Array<cdk.IResolvable | CfnListener.PortRangeProperty> | cdk.IResolvable);
|
||||
/**
|
||||
* The protocol for the connections from clients to the accelerator.
|
||||
*/
|
||||
get protocol(): string;
|
||||
/**
|
||||
* The protocol for the connections from clients to the accelerator.
|
||||
*/
|
||||
set protocol(value: string);
|
||||
/**
|
||||
* The ARN of the listener, such as `arn:aws:globalaccelerator::012345678901:accelerator/1234abcd-abcd-1234-abcd-1234abcdefgh/listener/0123vxyz` .
|
||||
*
|
||||
* @cloudformationAttribute ListenerArn
|
||||
*/
|
||||
get attrListenerArn(): string;
|
||||
protected get cfnProperties(): Record<string, any>;
|
||||
/**
|
||||
* Examines the CloudFormation resource and discloses attributes
|
||||
*
|
||||
* @param inspector tree inspector to collect and process attributes
|
||||
*/
|
||||
inspect(inspector: cdk.TreeInspector): void;
|
||||
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
||||
}
|
||||
export declare namespace CfnListener {
|
||||
/**
|
||||
* A complex type for a range of ports for a listener.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-listener-portrange.html
|
||||
*/
|
||||
interface PortRangeProperty {
|
||||
/**
|
||||
* The first port in the range of ports, inclusive.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-listener-portrange.html#cfn-globalaccelerator-listener-portrange-fromport
|
||||
*/
|
||||
readonly fromPort: number;
|
||||
/**
|
||||
* The last port in the range of ports, inclusive.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-listener-portrange.html#cfn-globalaccelerator-listener-portrange-toport
|
||||
*/
|
||||
readonly toPort: number;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Properties for defining a `CfnListener`
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html
|
||||
*/
|
||||
export interface CfnListenerProps {
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of your accelerator.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-acceleratorarn
|
||||
*/
|
||||
readonly acceleratorArn: globalAcceleratorRefs.IAcceleratorRef | string;
|
||||
/**
|
||||
* Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request.
|
||||
*
|
||||
* Client affinity gives you control over whether to always route each client to the same specific endpoint.
|
||||
*
|
||||
* AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is `NONE` , Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
|
||||
*
|
||||
* If you want a given client to always be routed to the same endpoint, set client affinity to `SOURCE_IP` instead. When you use the `SOURCE_IP` setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
|
||||
*
|
||||
* The default value is `NONE` .
|
||||
*
|
||||
* @default - "NONE"
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-clientaffinity
|
||||
*/
|
||||
readonly clientAffinity?: string;
|
||||
/**
|
||||
* The list of port ranges for the connections from clients to the accelerator.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-portranges
|
||||
*/
|
||||
readonly portRanges: Array<cdk.IResolvable | CfnListener.PortRangeProperty> | cdk.IResolvable;
|
||||
/**
|
||||
* The protocol for the connections from clients to the accelerator.
|
||||
*
|
||||
* @default - "TCP"
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-protocol
|
||||
*/
|
||||
readonly protocol: string;
|
||||
}
|
||||
/**
|
||||
* Create a cross-account attachment in AWS Global Accelerator .
|
||||
*
|
||||
* You create a cross-account attachment to specify the *principals* who have permission to work with *resources* in accelerators in their own account. You specify, in the same attachment, the resources that are shared.
|
||||
*
|
||||
* A principal can be an AWS account number or the Amazon Resource Name (ARN) for an accelerator. For account numbers that are listed as principals, to work with a resource listed in the attachment, you must sign in to an account specified as a principal. Then, you can work with resources that are listed, with any of your accelerators. If an accelerator ARN is listed in the cross-account attachment as a principal, anyone with permission to make updates to the accelerator can work with resources that are listed in the attachment.
|
||||
*
|
||||
* Specify each principal and resource separately. To specify two CIDR address pools, list them individually under `Resources` , and so on. For a command line operation, for example, you might use a statement like the following:
|
||||
*
|
||||
* `"Resources": [{"Cidr": "169.254.60.0/24"},{"Cidr": "169.254.59.0/24"}]`
|
||||
*
|
||||
* For more information, see [Working with cross-account attachments and resources in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/cross-account-resources.html) in the *AWS Global Accelerator Developer Guide* .
|
||||
*
|
||||
* @cloudformationResource AWS::GlobalAccelerator::CrossAccountAttachment
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html
|
||||
*/
|
||||
export declare class CfnCrossAccountAttachment extends cdk.CfnResource implements cdk.IInspectable, ICrossAccountAttachmentRef, cdk.ITaggableV2 {
|
||||
/**
|
||||
* The CloudFormation resource type name for this resource class.
|
||||
*/
|
||||
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
||||
/**
|
||||
* Build a CfnCrossAccountAttachment from CloudFormation properties
|
||||
*
|
||||
* A factory method that creates a new instance of this class from an object
|
||||
* containing the CloudFormation properties of this resource.
|
||||
* Used in the @aws-cdk/cloudformation-include module.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnCrossAccountAttachment;
|
||||
/**
|
||||
* Checks whether the given object is a CfnCrossAccountAttachment
|
||||
*/
|
||||
static isCfnCrossAccountAttachment(x: any): x is CfnCrossAccountAttachment;
|
||||
/**
|
||||
* Tag Manager which manages the tags for this resource
|
||||
*/
|
||||
readonly cdkTagManager: cdk.TagManager;
|
||||
/**
|
||||
* The name of the cross-account attachment.
|
||||
*/
|
||||
private _name;
|
||||
/**
|
||||
* The principals included in the cross-account attachment.
|
||||
*/
|
||||
private _principals?;
|
||||
/**
|
||||
* The resources included in the cross-account attachment.
|
||||
*/
|
||||
private _resources?;
|
||||
/**
|
||||
* Add tags for a cross-account attachment.
|
||||
*/
|
||||
private _tags?;
|
||||
protected readonly cfnPropertyNames: Record<string, string>;
|
||||
/**
|
||||
* Create a new `AWS::GlobalAccelerator::CrossAccountAttachment`.
|
||||
*
|
||||
* @param scope Scope in which this resource is defined
|
||||
* @param id Construct identifier for this resource (unique in its scope)
|
||||
* @param props Resource properties
|
||||
*/
|
||||
constructor(scope: constructs.Construct, id: string, props: CfnCrossAccountAttachmentProps);
|
||||
get crossAccountAttachmentRef(): CrossAccountAttachmentReference;
|
||||
/**
|
||||
* The name of the cross-account attachment.
|
||||
*/
|
||||
get name(): string;
|
||||
/**
|
||||
* The name of the cross-account attachment.
|
||||
*/
|
||||
set name(value: string);
|
||||
/**
|
||||
* The principals included in the cross-account attachment.
|
||||
*/
|
||||
get principals(): Array<string> | undefined;
|
||||
/**
|
||||
* The principals included in the cross-account attachment.
|
||||
*/
|
||||
set principals(value: Array<string> | undefined);
|
||||
/**
|
||||
* The resources included in the cross-account attachment.
|
||||
*/
|
||||
get resources(): Array<cdk.IResolvable | CfnCrossAccountAttachment.ResourceProperty> | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* The resources included in the cross-account attachment.
|
||||
*/
|
||||
set resources(value: Array<cdk.IResolvable | CfnCrossAccountAttachment.ResourceProperty> | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* Add tags for a cross-account attachment.
|
||||
*/
|
||||
get tags(): Array<cdk.CfnTag> | undefined;
|
||||
/**
|
||||
* Add tags for a cross-account attachment.
|
||||
*/
|
||||
set tags(value: Array<cdk.CfnTag> | undefined);
|
||||
/**
|
||||
* The Amazon Resource Name (ARN) of the cross-account attachment.
|
||||
*
|
||||
* @cloudformationAttribute AttachmentArn
|
||||
*/
|
||||
get attrAttachmentArn(): string;
|
||||
protected get cfnProperties(): Record<string, any>;
|
||||
/**
|
||||
* Examines the CloudFormation resource and discloses attributes
|
||||
*
|
||||
* @param inspector tree inspector to collect and process attributes
|
||||
*/
|
||||
inspect(inspector: cdk.TreeInspector): void;
|
||||
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
||||
}
|
||||
export declare namespace CfnCrossAccountAttachment {
|
||||
/**
|
||||
* A resource is one of the following: the ARN for an AWS resource that is supported by AWS Global Accelerator to be added as an endpoint, or a CIDR range that specifies a bring your own IP (BYOIP) address pool.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html
|
||||
*/
|
||||
interface ResourceProperty {
|
||||
/**
|
||||
* An IP address range, in CIDR format, that is specified as resource.
|
||||
*
|
||||
* The address must be provisioned and advertised in AWS Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator
|
||||
*
|
||||
* For more information, see [Bring your own IP addresses (BYOIP)](https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html) in the AWS Global Accelerator Developer Guide.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html#cfn-globalaccelerator-crossaccountattachment-resource-cidr
|
||||
*/
|
||||
readonly cidr?: string;
|
||||
/**
|
||||
* The endpoint ID for the endpoint that is specified as a AWS resource.
|
||||
*
|
||||
* An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html#cfn-globalaccelerator-crossaccountattachment-resource-endpointid
|
||||
*/
|
||||
readonly endpointId?: string;
|
||||
/**
|
||||
* The AWS Region where a shared endpoint resource is located.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html#cfn-globalaccelerator-crossaccountattachment-resource-region
|
||||
*/
|
||||
readonly region?: string;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Properties for defining a `CfnCrossAccountAttachment`
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html
|
||||
*/
|
||||
export interface CfnCrossAccountAttachmentProps {
|
||||
/**
|
||||
* The name of the cross-account attachment.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html#cfn-globalaccelerator-crossaccountattachment-name
|
||||
*/
|
||||
readonly name: string;
|
||||
/**
|
||||
* The principals included in the cross-account attachment.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html#cfn-globalaccelerator-crossaccountattachment-principals
|
||||
*/
|
||||
readonly principals?: Array<string>;
|
||||
/**
|
||||
* The resources included in the cross-account attachment.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html#cfn-globalaccelerator-crossaccountattachment-resources
|
||||
*/
|
||||
readonly resources?: Array<cdk.IResolvable | CfnCrossAccountAttachment.ResourceProperty> | cdk.IResolvable;
|
||||
/**
|
||||
* Add tags for a cross-account attachment.
|
||||
*
|
||||
* For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html#cfn-globalaccelerator-crossaccountattachment-tags
|
||||
*/
|
||||
readonly tags?: Array<cdk.CfnTag>;
|
||||
}
|
||||
export type { IAcceleratorRef, AcceleratorReference };
|
||||
export type { IEndpointGroupRef, EndpointGroupReference };
|
||||
export type { IListenerRef, ListenerReference };
|
||||
export type { ICrossAccountAttachmentRef, CrossAccountAttachmentReference };
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/globalaccelerator.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/globalaccelerator.generated.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/index.d.ts
generated
vendored
Normal file
5
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export * from './globalaccelerator.generated';
|
||||
export * from './accelerator';
|
||||
export * from './listener';
|
||||
export * from './endpoint-group';
|
||||
export * from './endpoint';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnAccelerator=void 0,Object.defineProperty(exports,_noFold="CfnAccelerator",{enumerable:!0,configurable:!0,get:()=>{var value=require("./globalaccelerator.generated").CfnAccelerator;return Object.defineProperty(exports,_noFold="CfnAccelerator",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnEndpointGroup=void 0,Object.defineProperty(exports,_noFold="CfnEndpointGroup",{enumerable:!0,configurable:!0,get:()=>{var value=require("./globalaccelerator.generated").CfnEndpointGroup;return Object.defineProperty(exports,_noFold="CfnEndpointGroup",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnListener=void 0,Object.defineProperty(exports,_noFold="CfnListener",{enumerable:!0,configurable:!0,get:()=>{var value=require("./globalaccelerator.generated").CfnListener;return Object.defineProperty(exports,_noFold="CfnListener",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnCrossAccountAttachment=void 0,Object.defineProperty(exports,_noFold="CfnCrossAccountAttachment",{enumerable:!0,configurable:!0,get:()=>{var value=require("./globalaccelerator.generated").CfnCrossAccountAttachment;return Object.defineProperty(exports,_noFold="CfnCrossAccountAttachment",{enumerable:!0,configurable:!0,value}),value}}),exports.IpAddressType=void 0,Object.defineProperty(exports,_noFold="IpAddressType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./accelerator").IpAddressType;return Object.defineProperty(exports,_noFold="IpAddressType",{enumerable:!0,configurable:!0,value}),value}}),exports.Accelerator=void 0,Object.defineProperty(exports,_noFold="Accelerator",{enumerable:!0,configurable:!0,get:()=>{var value=require("./accelerator").Accelerator;return Object.defineProperty(exports,_noFold="Accelerator",{enumerable:!0,configurable:!0,value}),value}}),exports.ConnectionProtocol=void 0,Object.defineProperty(exports,_noFold="ConnectionProtocol",{enumerable:!0,configurable:!0,get:()=>{var value=require("./listener").ConnectionProtocol;return Object.defineProperty(exports,_noFold="ConnectionProtocol",{enumerable:!0,configurable:!0,value}),value}}),exports.ClientAffinity=void 0,Object.defineProperty(exports,_noFold="ClientAffinity",{enumerable:!0,configurable:!0,get:()=>{var value=require("./listener").ClientAffinity;return Object.defineProperty(exports,_noFold="ClientAffinity",{enumerable:!0,configurable:!0,value}),value}}),exports.Listener=void 0,Object.defineProperty(exports,_noFold="Listener",{enumerable:!0,configurable:!0,get:()=>{var value=require("./listener").Listener;return Object.defineProperty(exports,_noFold="Listener",{enumerable:!0,configurable:!0,value}),value}}),exports.HealthCheckProtocol=void 0,Object.defineProperty(exports,_noFold="HealthCheckProtocol",{enumerable:!0,configurable:!0,get:()=>{var value=require("./endpoint-group").HealthCheckProtocol;return Object.defineProperty(exports,_noFold="HealthCheckProtocol",{enumerable:!0,configurable:!0,value}),value}}),exports.EndpointGroup=void 0,Object.defineProperty(exports,_noFold="EndpointGroup",{enumerable:!0,configurable:!0,get:()=>{var value=require("./endpoint-group").EndpointGroup;return Object.defineProperty(exports,_noFold="EndpointGroup",{enumerable:!0,configurable:!0,value}),value}}),exports.RawEndpoint=void 0,Object.defineProperty(exports,_noFold="RawEndpoint",{enumerable:!0,configurable:!0,get:()=>{var value=require("./endpoint").RawEndpoint;return Object.defineProperty(exports,_noFold="RawEndpoint",{enumerable:!0,configurable:!0,value}),value}});
|
||||
129
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/listener.d.ts
generated
vendored
Normal file
129
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/listener.d.ts
generated
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type { EndpointGroupOptions } from './endpoint-group';
|
||||
import { EndpointGroup } from './endpoint-group';
|
||||
import * as ga from './globalaccelerator.generated';
|
||||
import * as cdk from '../../core';
|
||||
import type { IAcceleratorRef, IListenerRef } from '../../interfaces/generated/aws-globalaccelerator-interfaces.generated';
|
||||
/**
|
||||
* Interface of the Listener
|
||||
*/
|
||||
export interface IListener extends cdk.IResource, IListenerRef {
|
||||
/**
|
||||
* The ARN of the listener
|
||||
*
|
||||
* @attribute
|
||||
*/
|
||||
readonly listenerArn: string;
|
||||
}
|
||||
/**
|
||||
* Construct options for Listener
|
||||
*/
|
||||
export interface ListenerOptions {
|
||||
/**
|
||||
* Name of the listener
|
||||
*
|
||||
* @default - logical ID of the resource
|
||||
*/
|
||||
readonly listenerName?: string;
|
||||
/**
|
||||
* The list of port ranges for the connections from clients to the accelerator
|
||||
*/
|
||||
readonly portRanges: PortRange[];
|
||||
/**
|
||||
* The protocol for the connections from clients to the accelerator
|
||||
*
|
||||
* @default ConnectionProtocol.TCP
|
||||
*/
|
||||
readonly protocol?: ConnectionProtocol;
|
||||
/**
|
||||
* Client affinity to direct all requests from a user to the same endpoint
|
||||
*
|
||||
* If you have stateful applications, client affinity lets you direct all
|
||||
* requests from a user to the same endpoint.
|
||||
*
|
||||
* By default, each connection from each client is routed to separate
|
||||
* endpoints. Set client affinity to SOURCE_IP to route all connections from
|
||||
* a single client to the same endpoint.
|
||||
*
|
||||
* @default ClientAffinity.NONE
|
||||
*/
|
||||
readonly clientAffinity?: ClientAffinity;
|
||||
}
|
||||
/**
|
||||
* Construct properties for Listener
|
||||
*/
|
||||
export interface ListenerProps extends ListenerOptions {
|
||||
/**
|
||||
* The accelerator for this listener
|
||||
*/
|
||||
readonly accelerator: IAcceleratorRef;
|
||||
}
|
||||
/**
|
||||
* The list of port ranges for the connections from clients to the accelerator.
|
||||
*/
|
||||
export interface PortRange {
|
||||
/**
|
||||
* The first port in the range of ports, inclusive.
|
||||
*/
|
||||
readonly fromPort: number;
|
||||
/**
|
||||
* The last port in the range of ports, inclusive.
|
||||
*
|
||||
* @default - same as `fromPort`
|
||||
*/
|
||||
readonly toPort?: number;
|
||||
}
|
||||
/**
|
||||
* The protocol for the connections from clients to the accelerator.
|
||||
*/
|
||||
export declare enum ConnectionProtocol {
|
||||
/**
|
||||
* TCP
|
||||
*/
|
||||
TCP = "TCP",
|
||||
/**
|
||||
* UDP
|
||||
*/
|
||||
UDP = "UDP"
|
||||
}
|
||||
/**
|
||||
* Client affinity gives you control over whether to always route each client to the same specific endpoint.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/global-accelerator/latest/dg/about-listeners.html#about-listeners-client-affinity
|
||||
*/
|
||||
export declare enum ClientAffinity {
|
||||
/**
|
||||
* Route traffic based on the 5-tuple `(source IP, source port, destination IP, destination port, protocol)`
|
||||
*/
|
||||
NONE = "NONE",
|
||||
/**
|
||||
* Route traffic based on the 2-tuple `(source IP, destination IP)`
|
||||
*
|
||||
* The result is that multiple connections from the same client will be routed the same.
|
||||
*/
|
||||
SOURCE_IP = "SOURCE_IP"
|
||||
}
|
||||
/**
|
||||
* The construct for the Listener
|
||||
*/
|
||||
export declare class Listener extends cdk.Resource implements IListener {
|
||||
/** Uniquely identifies this class. */
|
||||
static readonly PROPERTY_INJECTION_ID: string;
|
||||
/**
|
||||
* import from ARN
|
||||
*/
|
||||
static fromListenerArn(scope: Construct, id: string, listenerArn: string): IListener;
|
||||
readonly listenerArn: string;
|
||||
/**
|
||||
* The name of the listener
|
||||
*
|
||||
* @attribute
|
||||
*/
|
||||
readonly listenerName: string;
|
||||
get listenerRef(): ga.ListenerReference;
|
||||
constructor(scope: Construct, id: string, props: ListenerProps);
|
||||
/**
|
||||
* Add a new endpoint group to this listener
|
||||
*/
|
||||
addEndpointGroup(id: string, options?: EndpointGroupOptions): EndpointGroup;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/listener.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-globalaccelerator/lib/listener.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user