agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk-lib/region-info/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/region-info/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.regioninfo"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.RegionInfo"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.region_info"
|
||||
}
|
||||
}
|
||||
}
|
||||
82
cdk/node_modules/aws-cdk-lib/region-info/README.md
generated
vendored
Normal file
82
cdk/node_modules/aws-cdk-lib/region-info/README.md
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
# AWS Region-Specific Information Directory
|
||||
|
||||
## Usage
|
||||
|
||||
Some information used in CDK Applications differs from one AWS region to
|
||||
another, such as service principals used in IAM policies, S3 static website
|
||||
endpoints, ...
|
||||
|
||||
### The `RegionInfo` class
|
||||
|
||||
The library offers a simple interface to obtain region specific information in
|
||||
the form of the `RegionInfo` class. This is the preferred way to interact with
|
||||
the regional information database:
|
||||
|
||||
```ts
|
||||
// Get the information for "eu-west-1":
|
||||
const region = regionInfo.RegionInfo.get('eu-west-1');
|
||||
|
||||
// Access attributes:
|
||||
region.s3StaticWebsiteEndpoint; // s3-website-eu-west-1.amazonaws.com
|
||||
```
|
||||
|
||||
The `RegionInfo` layer is built on top of the Low-Level API, which is described
|
||||
below and can be used to register additional data, including user-defined facts
|
||||
that are not available through the `RegionInfo` interface.
|
||||
|
||||
### Low-Level API
|
||||
|
||||
This library offers a primitive database of such information so that CDK
|
||||
constructs can easily access regional information. The `FactName` class provides
|
||||
a list of known fact names, which can then be used with the `RegionInfo` to
|
||||
retrieve a particular value:
|
||||
|
||||
```ts
|
||||
const staticWebsite = regionInfo.Fact.find(
|
||||
'ap-northeast-1',
|
||||
regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT
|
||||
);
|
||||
// => s3-website-ap-northeast-1.amazonaws.com
|
||||
```
|
||||
|
||||
## Supplying new or missing information
|
||||
|
||||
As new regions are released, it might happen that a particular fact you need is
|
||||
missing from the library. In such cases, the `Fact.register` method can be used
|
||||
to inject FactName into the database:
|
||||
|
||||
```ts
|
||||
class MyFact implements regionInfo.IFact {
|
||||
public readonly region = 'bermuda-triangle-1';
|
||||
public readonly name = regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT;
|
||||
public readonly value = 's3-website.bermuda-triangle-1.nowhere.com';
|
||||
}
|
||||
|
||||
regionInfo.Fact.register(new MyFact());
|
||||
```
|
||||
|
||||
## Overriding incorrect information
|
||||
|
||||
In the event information provided by the library is incorrect, it can be
|
||||
overridden using the same `Fact.register` method demonstrated above, simply
|
||||
adding an extra boolean argument:
|
||||
|
||||
```ts
|
||||
class MyFact implements regionInfo.IFact {
|
||||
public readonly region = 'us-east-1';
|
||||
public readonly name = regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT;
|
||||
public readonly value = 'the-correct-endpoint.amazonaws.com';
|
||||
}
|
||||
|
||||
regionInfo.Fact.register(new MyFact(), true /* Allow overriding information */);
|
||||
```
|
||||
|
||||
If you happen to have stumbled upon incorrect data built into this library, it
|
||||
is always a good idea to report your findings in a [GitHub issue], so we can fix
|
||||
it for everyone else!
|
||||
|
||||
[GitHub issue]: https://github.com/aws/aws-cdk/issues
|
||||
|
||||
---
|
||||
|
||||
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
||||
1
cdk/node_modules/aws-cdk-lib/region-info/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/region-info/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/region-info/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/region-info/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.Default=void 0,Object.defineProperty(exports,_noFold="Default",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Default;return Object.defineProperty(exports,_noFold="Default",{enumerable:!0,configurable:!0,value}),value}}),exports.Fact=void 0,Object.defineProperty(exports,_noFold="Fact",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Fact;return Object.defineProperty(exports,_noFold="Fact",{enumerable:!0,configurable:!0,value}),value}}),exports.FactName=void 0,Object.defineProperty(exports,_noFold="FactName",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").FactName;return Object.defineProperty(exports,_noFold="FactName",{enumerable:!0,configurable:!0,value}),value}}),exports.RegionInfo=void 0,Object.defineProperty(exports,_noFold="RegionInfo",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").RegionInfo;return Object.defineProperty(exports,_noFold="RegionInfo",{enumerable:!0,configurable:!0,value}),value}});
|
||||
36
cdk/node_modules/aws-cdk-lib/region-info/lib/aws-entities.d.ts
generated
vendored
Normal file
36
cdk/node_modules/aws-cdk-lib/region-info/lib/aws-entities.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* After this point, S3 website domains look like `s3-website.REGION.s3.amazonaws.com`
|
||||
*
|
||||
* Before this point, S3 website domains look like `s3-website-REGION.s3.amazonaws.com`.
|
||||
*/
|
||||
export declare const RULE_S3_WEBSITE_REGIONAL_SUBDOMAIN: unique symbol;
|
||||
/**
|
||||
* After this point, all regions in the 'aws' partition are opt-in.
|
||||
*/
|
||||
export declare const RULE_CLASSIC_PARTITION_BECOMES_OPT_IN: unique symbol;
|
||||
/**
|
||||
* List of AWS region, ordered by launch date (oldest to newest)
|
||||
*
|
||||
* The significance of this is that standards and conventions change over time.
|
||||
* Generally, as rules are changed they only apply to new regions, and old
|
||||
* regions are left as-is.
|
||||
*
|
||||
* We mix the list of regions with a list of rules that were introduced over
|
||||
* time (rules are symbols).
|
||||
*
|
||||
* Therefore, if we want to know if a rule applies to a certain region, we
|
||||
* only need to check its position in the list and compare it to when a
|
||||
* rule was introduced.
|
||||
*/
|
||||
export declare const AWS_REGIONS_AND_RULES: readonly (string | symbol)[];
|
||||
/**
|
||||
* The names of all (known) AWS regions
|
||||
*
|
||||
* Not in the list ==> no built-in data for that region.
|
||||
*/
|
||||
export declare const AWS_REGIONS: readonly string[];
|
||||
export interface Region {
|
||||
readonly partition: string;
|
||||
readonly domainSuffix: string;
|
||||
}
|
||||
export declare function partitionInformation(region: string): Region;
|
||||
1
cdk/node_modules/aws-cdk-lib/region-info/lib/aws-entities.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/region-info/lib/aws-entities.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AWS_REGIONS=exports.AWS_REGIONS_AND_RULES=exports.RULE_CLASSIC_PARTITION_BECOMES_OPT_IN=exports.RULE_S3_WEBSITE_REGIONAL_SUBDOMAIN=void 0,exports.partitionInformation=partitionInformation,exports.RULE_S3_WEBSITE_REGIONAL_SUBDOMAIN=Symbol("S3_WEBSITE_REGIONAL_SUBDOMAIN"),exports.RULE_CLASSIC_PARTITION_BECOMES_OPT_IN=Symbol("CLASSIC_PARTITION_BECOMES_OPT_IN"),exports.AWS_REGIONS_AND_RULES=["us-east-1","eu-west-1","us-west-1","ap-southeast-1","ap-northeast-1","us-gov-west-1","us-west-2","sa-east-1","ap-southeast-2",exports.RULE_S3_WEBSITE_REGIONAL_SUBDOMAIN,"cn-north-1","us-iso-east-1","eu-central-1","ap-northeast-2","ap-south-1","us-east-2","ca-central-1","eu-west-2","us-isob-east-1","cn-northwest-1","eu-west-3","ap-northeast-3","us-gov-east-1","eu-north-1",exports.RULE_CLASSIC_PARTITION_BECOMES_OPT_IN,"ap-east-1","me-south-1","af-south-1","eu-south-1","us-iso-west-1","ap-southeast-3","me-central-1","eu-central-2","eu-south-2","ap-south-2","ap-southeast-4","il-central-1","ca-west-1","ap-southeast-5","ap-southeast-7","mx-central-1","eu-isoe-west-1","us-isob-west-1","ap-east-2","eusc-de-east-1","ap-southeast-6","us-isof-south-1","us-isof-east-1"],exports.AWS_REGIONS=exports.AWS_REGIONS_AND_RULES.filter(x=>typeof x=="string").sort();const PARTITION_MAP={default:{partition:"aws",domainSuffix:"amazonaws.com"},"cn-":{partition:"aws-cn",domainSuffix:"amazonaws.com.cn"},"us-gov-":{partition:"aws-us-gov",domainSuffix:"amazonaws.com"},"us-iso-":{partition:"aws-iso",domainSuffix:"c2s.ic.gov"},"us-isob-":{partition:"aws-iso-b",domainSuffix:"sc2s.sgov.gov"},"us-isof-":{partition:"aws-iso-f",domainSuffix:"csp.hci.ic.gov"},"eu-isoe-":{partition:"aws-iso-e",domainSuffix:"cloud.adc-e.uk"},"eusc-de-":{partition:"aws-eusc",domainSuffix:"amazonaws.eu"}};function partitionInformation(region){for(const[prefix,info]of Object.entries(PARTITION_MAP))if(region.startsWith(prefix))return info;return PARTITION_MAP.default}
|
||||
12
cdk/node_modules/aws-cdk-lib/region-info/lib/built-ins.generated.d.ts
generated
vendored
Normal file
12
cdk/node_modules/aws-cdk-lib/region-info/lib/built-ins.generated.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Built-in regional information, re-generated by `npm run build`.
|
||||
*
|
||||
* @generated 2026-04-29T16:46:19.910Z
|
||||
*/
|
||||
export declare class BuiltIns {
|
||||
/**
|
||||
* Registers all the built in regional data in the RegionInfo database.
|
||||
*/
|
||||
static register(): void;
|
||||
private constructor();
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/region-info/lib/built-ins.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/region-info/lib/built-ins.generated.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
30
cdk/node_modules/aws-cdk-lib/region-info/lib/default.d.ts
generated
vendored
Normal file
30
cdk/node_modules/aws-cdk-lib/region-info/lib/default.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Provides default values for certain regional information points.
|
||||
* This class is no longer needed because service principals are no longer needed except in very specific cases
|
||||
* that are handled in the IAM ServicePrincipal class.
|
||||
* @deprecated - Service principals are now globally `<SERVICE>.amazonaws.com`, use iam.ServicePrincipal instead.
|
||||
*/
|
||||
export declare class Default {
|
||||
/**
|
||||
* The default value for a VPC Endpoint Service name prefix, useful if you do
|
||||
* not have a synthesize-time region literal available (all you have is
|
||||
* `{ "Ref": "AWS::Region" }`)
|
||||
*
|
||||
* @deprecated - Use VpceEndpointService.DEFAULT_PREFIX instead
|
||||
*/
|
||||
static readonly VPC_ENDPOINT_SERVICE_NAME_PREFIX = "com.amazonaws.vpce";
|
||||
/**
|
||||
* Computes a "standard" AWS Service principal for a given service, region and suffix. This is useful for example when
|
||||
* you need to compute a service principal name, but you do not have a synthesize-time region literal available (so
|
||||
* all you have is `{ "Ref": "AWS::Region" }`). This way you get the same defaulting behavior that is normally used
|
||||
* for built-in data.
|
||||
*
|
||||
* @param serviceFqn the name of the service (s3, s3.amazonaws.com, ...)
|
||||
* @param region the region in which the service principal is needed.
|
||||
* @param urlSuffix deprecated and ignored.
|
||||
*
|
||||
* @deprecated - Service principals are now globally `<SERVICE>.amazonaws.com`, use iam.ServicePrincipal instead.
|
||||
*/
|
||||
static servicePrincipal(serviceFqn: string, region: string, urlSuffix: string): string;
|
||||
private constructor();
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/region-info/lib/default.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/region-info/lib/default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Default=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class Default{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.region_info.Default",version:"2.252.0"};static VPC_ENDPOINT_SERVICE_NAME_PREFIX="com.amazonaws.vpce";static servicePrincipal(serviceFqn,region,urlSuffix){try{jsiiDeprecationWarnings().print("aws-cdk-lib.region_info.Default#servicePrincipal","- Service principals are now globally `<SERVICE>.amazonaws.com`, use iam.ServicePrincipal instead.")}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.servicePrincipal),error}const serviceName=extractSimpleName(serviceFqn);if(!serviceName)return serviceFqn;function determineConfiguration(service){function universal(s){return`${s}.amazonaws.com`}function partitional(s,_,u){return`${s}.${u}`}function regional(s,r){return`${s}.${r}.amazonaws.com`}function regionalPartitional(s,r,u){return`${s}.${r}.${u}`}const US_ISO_EXCEPTIONS=new Set(["cloudhsm","config","states","workspaces"]);if(region.startsWith("us-iso-")&&US_ISO_EXCEPTIONS.has(service))return service==="states"?universal:partitional;const US_ISOB_EXCEPTIONS=new Set(["dms","states"]);if(region.startsWith("us-isob-")&&US_ISOB_EXCEPTIONS.has(service))return service==="states"?universal:partitional;switch(service){case"codedeploy":return region.startsWith("cn-")?regionalPartitional:region.startsWith("us-iso")?universal:regional;case"logs":return regionalPartitional;case"states":return regional;case"elasticmapreduce":return region.startsWith("cn-")?partitional:universal;default:return universal}}return determineConfiguration(serviceName)(serviceName,region,urlSuffix)}constructor(){}}exports.Default=Default;function extractSimpleName(serviceFqn){const matches=serviceFqn.match(/^([^.]+)(?:(?:\.amazonaws\.com(?:\.cn)?)|(?:\.c2s\.ic\.gov)|(?:\.sc2s\.sgov\.gov))?$/);return matches?matches[1]:void 0}
|
||||
173
cdk/node_modules/aws-cdk-lib/region-info/lib/fact.d.ts
generated
vendored
Normal file
173
cdk/node_modules/aws-cdk-lib/region-info/lib/fact.d.ts
generated
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
/**
|
||||
* A database of regional information.
|
||||
*/
|
||||
export declare class Fact {
|
||||
/**
|
||||
* @returns the list of names of AWS Regions for which there is at least one registered fact. This
|
||||
* includes Regions defined in AWS_REGIONS plus custom defined regions.
|
||||
*/
|
||||
static get regions(): string[];
|
||||
/**
|
||||
* Returns the list of names of registered facts.
|
||||
*
|
||||
* All facts will be present in at least one region.
|
||||
*/
|
||||
static get names(): string[];
|
||||
/**
|
||||
* Return all pairs of (region, factName) that are defined
|
||||
*/
|
||||
static definedFacts(): Array<string[]>;
|
||||
/**
|
||||
* Retrieves a fact from this Fact database.
|
||||
*
|
||||
* @param region the name of the region (e.g: `us-east-1`)
|
||||
* @param name the name of the fact being looked up (see the `FactName` class for details)
|
||||
*
|
||||
* @returns the fact value if it is known, and `undefined` otherwise.
|
||||
*/
|
||||
static find(region: string, name: string): string | undefined;
|
||||
/**
|
||||
* Retrieve a fact from the Fact database. (retrieval will fail if the specified region or
|
||||
* fact name does not exist.)
|
||||
*
|
||||
* @param region the name of the region (e.g: `us-east-1`)
|
||||
* @param name the name of the fact being looked up (see the `FactName` class for details)
|
||||
*/
|
||||
static requireFact(region: string, name: string): string;
|
||||
/**
|
||||
* Registers a new fact in this Fact database.
|
||||
*
|
||||
* @param fact the new fact to be registered.
|
||||
* @param allowReplacing whether new facts can replace existing facts or not.
|
||||
*/
|
||||
static register(fact: IFact, allowReplacing?: boolean): void;
|
||||
/**
|
||||
* Removes a fact from the database.
|
||||
* @param region the region for which the fact is to be removed.
|
||||
* @param name the name of the fact to remove.
|
||||
* @param value the value that should be removed (removal will fail if the value is specified, but does not match the
|
||||
* current stored value).
|
||||
*/
|
||||
static unregister(region: string, name: string, value?: string): void;
|
||||
private static readonly database;
|
||||
private constructor();
|
||||
}
|
||||
/**
|
||||
* A fact that can be registered about a particular region.
|
||||
*/
|
||||
export interface IFact {
|
||||
/**
|
||||
* The region for which this fact applies.
|
||||
*/
|
||||
readonly region: string;
|
||||
/**
|
||||
* The name of this fact. Standardized values are provided by the `Facts` class.
|
||||
*/
|
||||
readonly name: string;
|
||||
/**
|
||||
* The value of this fact.
|
||||
*/
|
||||
readonly value: string | undefined;
|
||||
}
|
||||
/**
|
||||
* All standardized fact names.
|
||||
*/
|
||||
export declare class FactName {
|
||||
/**
|
||||
* The name of the partition for a region (e.g: 'aws', 'aws-cn', ...)
|
||||
*/
|
||||
static readonly PARTITION = "partition";
|
||||
/**
|
||||
* The domain suffix for a region (e.g: 'amazonaws.com`)
|
||||
*/
|
||||
static readonly DOMAIN_SUFFIX = "domainSuffix";
|
||||
/**
|
||||
* Whether the AWS::CDK::Metadata CloudFormation Resource is available in-region or not. The value is a boolean
|
||||
* modelled as `YES` or `NO`.
|
||||
*/
|
||||
static readonly CDK_METADATA_RESOURCE_AVAILABLE = "cdk:metadata-resource:available";
|
||||
/**
|
||||
* Whether the given region is an opt-in region or not. The value is a boolean
|
||||
* modelled as `YES` or `NO`.
|
||||
*/
|
||||
static readonly IS_OPT_IN_REGION = "aws:is-opt-in-region";
|
||||
/**
|
||||
* The endpoint used for hosting S3 static websites
|
||||
*/
|
||||
static readonly S3_STATIC_WEBSITE_ENDPOINT = "s3-static-website:endpoint";
|
||||
/**
|
||||
* The endpoint used for aliasing S3 static websites in Route 53
|
||||
*/
|
||||
static readonly S3_STATIC_WEBSITE_ZONE_53_HOSTED_ZONE_ID = "s3-static-website:route-53-hosted-zone-id";
|
||||
/**
|
||||
* The hosted zone ID used by Route 53 to alias a EBS environment endpoint in this region (e.g: Z2O1EMRO9K5GLX)
|
||||
*/
|
||||
static readonly EBS_ENV_ENDPOINT_HOSTED_ZONE_ID = "ebs-environment:route-53-hosted-zone-id";
|
||||
/**
|
||||
* The prefix for VPC Endpoint Service names,
|
||||
* cn.com.amazonaws.vpce for China regions,
|
||||
* com.amazonaws.vpce otherwise.
|
||||
*/
|
||||
static readonly VPC_ENDPOINT_SERVICE_NAME_PREFIX = "vpcEndpointServiceNamePrefix";
|
||||
/**
|
||||
* The account for ELBv2 in this region
|
||||
*/
|
||||
static readonly ELBV2_ACCOUNT = "elbv2Account";
|
||||
/**
|
||||
* The ID of the AWS account that owns the public ECR repository that contains the
|
||||
* AWS Deep Learning Containers images in a given region.
|
||||
*/
|
||||
static readonly DLC_REPOSITORY_ACCOUNT = "dlcRepositoryAccount";
|
||||
/**
|
||||
* The ID of the AWS account that owns the public ECR repository that contains the
|
||||
* AWS App Mesh Envoy Proxy images in a given region.
|
||||
*/
|
||||
static readonly APPMESH_ECR_ACCOUNT = "appMeshRepositoryAccount";
|
||||
/**
|
||||
* The CIDR block used by Amazon Data Firehose servers.
|
||||
*/
|
||||
static readonly FIREHOSE_CIDR_BLOCK = "firehoseCidrBlock";
|
||||
/**
|
||||
* The SAML Sign On URL for partition used by IAM SAML Principal
|
||||
*/
|
||||
static readonly SAML_SIGN_ON_URL = "samlSignOnUrl";
|
||||
/**
|
||||
* The latest Lambda NodeJS runtime available in a given region.
|
||||
*/
|
||||
static readonly LATEST_NODE_RUNTIME = "latestNodeRuntime";
|
||||
/**
|
||||
* The ARN of CloudWatch Lambda Insights for a version (e.g. 1.0.98.0)
|
||||
*/
|
||||
static cloudwatchLambdaInsightsVersion(version: string, arch?: string): string;
|
||||
/**
|
||||
* The ARN of AppConfig Lambda Layer for a given version (e.g. 2.0.181)
|
||||
* @param version The layer version.
|
||||
* @param arch The architecture (optional), defaults to x86_64.
|
||||
*/
|
||||
static appConfigLambdaLayerVersion(version: string, arch?: string): string;
|
||||
/**
|
||||
* The name of the regional service principal for a given service.
|
||||
*
|
||||
* @param service the service name, either simple (e.g: `s3`, `codedeploy`) or qualified (e.g: `s3.amazonaws.com`).
|
||||
* The `.amazonaws.com` and `.amazonaws.com.cn` domains are stripped from service names, so they are
|
||||
* canonicalized in that respect.
|
||||
*
|
||||
* @deprecated - Use `iam.ServicePrincipal.servicePrincipalName()` instead.
|
||||
*/
|
||||
static servicePrincipal(service: string): string;
|
||||
/**
|
||||
* The ARN of Amazon Distro for OpenTelemetry (ADOT) Lambda layer for a given lambda type, version and architecture.
|
||||
*
|
||||
* @param type the type of the ADOT lambda layer
|
||||
* @param version the layer version.
|
||||
* @param architecture the Lambda Function architecture (e.g. 'x86_64' or 'arm64')
|
||||
*/
|
||||
static adotLambdaLayer(type: string, version: string, architecture: string): string;
|
||||
/**
|
||||
* The ARN of Parameters and Secrets Lambda layer for a given lambda architecture.
|
||||
*
|
||||
* @param version the layer version
|
||||
* @param architecture the Lambda Function architecture (e.g. 'x86_64' or 'arm64')
|
||||
*/
|
||||
static paramsAndSecretsLambdaLayer(version: string, architecture: string): string;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/region-info/lib/fact.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/region-info/lib/fact.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FactName=exports.Fact=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var aws_entities_1=()=>{var tmp=require("./aws-entities");return aws_entities_1=()=>tmp,tmp};const CONSTRUCT_ERROR_SYMBOL=Symbol.for("@aws-cdk/core.SynthesisError");class RegionFactError extends Error{constructor(msg){super(msg),Object.setPrototypeOf(this,RegionFactError.prototype),Object.defineProperty(this,CONSTRUCT_ERROR_SYMBOL,{value:!0}),this.name="RegionFactError"}}class Fact{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.region_info.Fact",version:"2.252.0"};static get regions(){return[...new Set([...aws_entities_1().AWS_REGIONS,...Object.keys(this.database)])]}static get names(){return[...new Set(Object.values(this.database).flatMap(regionFacts=>Object.keys(regionFacts)))]}static definedFacts(){return Object.entries(this.database).flatMap(([regionName,regionFacts])=>Object.keys(regionFacts).map(factName=>[regionName,factName]))}static find(region,name){const regionFacts=this.database[region];return regionFacts&®ionFacts[name]}static requireFact(region,name){const foundFact=this.find(region,name);if(!foundFact)throw new RegionFactError(`No fact ${name} could be found for region: ${region} and name: ${name}.`);return foundFact}static register(fact,allowReplacing=!1){try{jsiiDeprecationWarnings().aws_cdk_lib_region_info_IFact(fact)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.register),error}const regionFacts=this.database[fact.region]||(this.database[fact.region]=Object.create(null));if(fact.name in regionFacts&®ionFacts[fact.name]!==fact.value&&!allowReplacing)throw new RegionFactError(`Region ${fact.region} already has a fact ${fact.name}, with value ${regionFacts[fact.name]}`);fact.value!==void 0&&(regionFacts[fact.name]=fact.value)}static unregister(region,name,value){const regionFacts=this.database[region]||Object.create(null);if(name in regionFacts&&value&®ionFacts[name]!==value)throw new RegionFactError(`Attempted to remove ${name} from ${region} with value ${value}, but the fact's value is ${regionFacts[name]}`);delete regionFacts[name]}static database=Object.create(null);constructor(){throw new Error("Use the static methods of Fact instead!")}}exports.Fact=Fact;class FactName{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.region_info.FactName",version:"2.252.0"};static PARTITION="partition";static DOMAIN_SUFFIX="domainSuffix";static CDK_METADATA_RESOURCE_AVAILABLE="cdk:metadata-resource:available";static IS_OPT_IN_REGION="aws:is-opt-in-region";static S3_STATIC_WEBSITE_ENDPOINT="s3-static-website:endpoint";static S3_STATIC_WEBSITE_ZONE_53_HOSTED_ZONE_ID="s3-static-website:route-53-hosted-zone-id";static EBS_ENV_ENDPOINT_HOSTED_ZONE_ID="ebs-environment:route-53-hosted-zone-id";static VPC_ENDPOINT_SERVICE_NAME_PREFIX="vpcEndpointServiceNamePrefix";static ELBV2_ACCOUNT="elbv2Account";static DLC_REPOSITORY_ACCOUNT="dlcRepositoryAccount";static APPMESH_ECR_ACCOUNT="appMeshRepositoryAccount";static FIREHOSE_CIDR_BLOCK="firehoseCidrBlock";static SAML_SIGN_ON_URL="samlSignOnUrl";static LATEST_NODE_RUNTIME="latestNodeRuntime";static cloudwatchLambdaInsightsVersion(version,arch){return`cloudwatch-lambda-insights-version:${version.split(".").join("_")+`_${arch??"x86_64"}`}`}static appConfigLambdaLayerVersion(version,arch){return`appconfig-lambda-layer:${version.split(".").join("_")+`_${arch??"x86_64"}`}`}static servicePrincipal(service){try{jsiiDeprecationWarnings().print("aws-cdk-lib.region_info.FactName#servicePrincipal","- Use `iam.ServicePrincipal.servicePrincipalName()` instead.")}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.servicePrincipal),error}return`${service.replace(/\.amazonaws\.com(\.cn)?$/,"")}.amazonaws.com`}static adotLambdaLayer(type,version,architecture){return`adot-lambda-layer:${type+"_"+version.split(".").join("_")+"_"+architecture}`}static paramsAndSecretsLambdaLayer(version,architecture){return`params-and-secrets-layer:${version.split(".").join("_")+`_${architecture}`}`}}exports.FactName=FactName;
|
||||
3
cdk/node_modules/aws-cdk-lib/region-info/lib/index.d.ts
generated
vendored
Normal file
3
cdk/node_modules/aws-cdk-lib/region-info/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './default';
|
||||
export * from './fact';
|
||||
export * from './region-info';
|
||||
1
cdk/node_modules/aws-cdk-lib/region-info/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/region-info/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.Default=void 0,Object.defineProperty(exports,_noFold="Default",{enumerable:!0,configurable:!0,get:()=>{var value=require("./default").Default;return Object.defineProperty(exports,_noFold="Default",{enumerable:!0,configurable:!0,value}),value}}),exports.Fact=void 0,Object.defineProperty(exports,_noFold="Fact",{enumerable:!0,configurable:!0,get:()=>{var value=require("./fact").Fact;return Object.defineProperty(exports,_noFold="Fact",{enumerable:!0,configurable:!0,value}),value}}),exports.FactName=void 0,Object.defineProperty(exports,_noFold="FactName",{enumerable:!0,configurable:!0,get:()=>{var value=require("./fact").FactName;return Object.defineProperty(exports,_noFold="FactName",{enumerable:!0,configurable:!0,value}),value}}),exports.RegionInfo=void 0,Object.defineProperty(exports,_noFold="RegionInfo",{enumerable:!0,configurable:!0,get:()=>{var value=require("./region-info").RegionInfo;return Object.defineProperty(exports,_noFold="RegionInfo",{enumerable:!0,configurable:!0,value}),value}});var built_ins_generated_1=()=>{var tmp=require("./built-ins.generated");return built_ins_generated_1=()=>tmp,tmp};built_ins_generated_1().BuiltIns.register();
|
||||
132
cdk/node_modules/aws-cdk-lib/region-info/lib/region-info.d.ts
generated
vendored
Normal file
132
cdk/node_modules/aws-cdk-lib/region-info/lib/region-info.d.ts
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* Information pertaining to an AWS region.
|
||||
*/
|
||||
export declare class RegionInfo {
|
||||
readonly name: string;
|
||||
/**
|
||||
* @returns the list of names of AWS regions for which there is at least one registered fact. This
|
||||
* may not be an exaustive list of all available AWS regions.
|
||||
*/
|
||||
static get regions(): RegionInfo[];
|
||||
/**
|
||||
* Retrieves a collection of all fact values for all regions that fact is defined in.
|
||||
*
|
||||
* @param factName the name of the fact to retrieve values for.
|
||||
* For a list of common fact names, see the FactName class
|
||||
* @returns a mapping with AWS region codes as the keys,
|
||||
* and the fact in the given region as the value for that key
|
||||
*/
|
||||
static regionMap(factName: string): {
|
||||
[region: string]: string;
|
||||
};
|
||||
/**
|
||||
* Retrieves a collection of all fact values for all regions, limited to some partitions
|
||||
*
|
||||
* @param factName the name of the fact to retrieve values for.
|
||||
* For a list of common fact names, see the FactName class
|
||||
* @param partitions list of partitions to retrieve facts for. Defaults
|
||||
* to `['aws', 'aws-cn']`.
|
||||
* @returns a mapping with AWS region codes as the keys,
|
||||
* and the fact in the given region as the value for that key
|
||||
*/
|
||||
static limitedRegionMap(factName: string, partitions: string[]): {
|
||||
[region: string]: string;
|
||||
};
|
||||
/**
|
||||
* Obtain region info for a given region name.
|
||||
*
|
||||
* @param name the name of the region (e.g: us-east-1)
|
||||
*/
|
||||
static get(name: string): RegionInfo;
|
||||
private constructor();
|
||||
/**
|
||||
* Whether the `AWS::CDK::Metadata` CloudFormation Resource is available in this region or not.
|
||||
*/
|
||||
get cdkMetadataResourceAvailable(): boolean;
|
||||
/**
|
||||
* Whether the given region is an opt-in region
|
||||
*/
|
||||
get isOptInRegion(): boolean;
|
||||
/**
|
||||
* The domain name suffix (e.g: amazonaws.com) for this region.
|
||||
*/
|
||||
get domainSuffix(): string | undefined;
|
||||
/**
|
||||
* The name of the ARN partition for this region (e.g: aws).
|
||||
*/
|
||||
get partition(): string | undefined;
|
||||
/**
|
||||
* The endpoint used by S3 static website hosting in this region (e.g: s3-static-website-us-east-1.amazonaws.com)
|
||||
*/
|
||||
get s3StaticWebsiteEndpoint(): string | undefined;
|
||||
/**
|
||||
* The hosted zone ID used by Route 53 to alias a S3 static website in this region (e.g: Z2O1EMRO9K5GLX)
|
||||
*/
|
||||
get s3StaticWebsiteHostedZoneId(): string | undefined;
|
||||
/**
|
||||
* The hosted zone ID used by Route 53 to alias a EBS environment endpoint in this region (e.g: Z2O1EMRO9K5GLX)
|
||||
*/
|
||||
get ebsEnvEndpointHostedZoneId(): string | undefined;
|
||||
/**
|
||||
* The prefix for VPC Endpoint Service names,
|
||||
* cn.com.amazonaws.vpce for China regions,
|
||||
* com.amazonaws.vpce otherwise.
|
||||
*/
|
||||
get vpcEndpointServiceNamePrefix(): string | undefined;
|
||||
/**
|
||||
* The name of the service principal for a given service in this region.
|
||||
* @param service the service name (e.g: s3.amazonaws.com)
|
||||
*
|
||||
* @deprecated - Use `iam.ServicePrincipal.servicePrincipalName()` instead.
|
||||
*/
|
||||
servicePrincipal(service: string): string | undefined;
|
||||
/**
|
||||
* The account ID for ELBv2 in this region
|
||||
*/
|
||||
get elbv2Account(): string | undefined;
|
||||
/**
|
||||
* The ID of the AWS account that owns the public ECR repository containing the
|
||||
* AWS Deep Learning Containers images in this region.
|
||||
*/
|
||||
get dlcRepositoryAccount(): string | undefined;
|
||||
/**
|
||||
* The ARN of the CloudWatch Lambda Insights extension, for the given version.
|
||||
* @param insightsVersion the version (e.g. 1.0.98.0)
|
||||
* @param architecture the Lambda Function architecture (e.g. 'x86_64' or 'arm64')
|
||||
*/
|
||||
cloudwatchLambdaInsightsArn(insightsVersion: string, architecture?: string): string | undefined;
|
||||
/**
|
||||
* The ARN of the AppConfig Lambda Layer, for the given version.
|
||||
* @param layerVersion The layer version (e.g. 2.0.181)
|
||||
* @param architecture The Lambda Function architecture (e.g. 'x86_64' or 'arm64'), defaults to x86_64
|
||||
*/
|
||||
appConfigLambdaArn(layerVersion: string, architecture?: string): string | undefined;
|
||||
/**
|
||||
* The ID of the AWS account that owns the public ECR repository that contains the
|
||||
* AWS App Mesh Envoy Proxy images in a given region.
|
||||
*/
|
||||
get appMeshRepositoryAccount(): string | undefined;
|
||||
/**
|
||||
* The CIDR block used by Amazon Data Firehose servers.
|
||||
*/
|
||||
get firehoseCidrBlock(): string | undefined;
|
||||
/**
|
||||
* The ARN of the ADOT Lambda layer, for the given layer type, version and architecture.
|
||||
*
|
||||
* @param type the type of the ADOT lambda layer
|
||||
* @param version the layer version.
|
||||
* @param architecture the Lambda Function architecture (e.g. 'x86_64' or 'arm64')
|
||||
*/
|
||||
adotLambdaLayerArn(type: string, version: string, architecture: string): string | undefined;
|
||||
/**
|
||||
* The ARN of the Parameters and Secrets Lambda layer for the given lambda architecture.
|
||||
*
|
||||
* @param version the layer version
|
||||
* @param architecture the Lambda Function architecture (e.g. 'x86_64' or 'arm64')
|
||||
*/
|
||||
paramsAndSecretsLambdaLayerArn(version: string, architecture: string): string | undefined;
|
||||
/**
|
||||
* SAML Sign On URL used by IAM SAML Principals.
|
||||
*/
|
||||
get samlSignOnUrl(): string | undefined;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/region-info/lib/region-info.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/region-info/lib/region-info.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RegionInfo=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var aws_entities_1=()=>{var tmp=require("./aws-entities");return aws_entities_1=()=>tmp,tmp},fact_1=()=>{var tmp=require("./fact");return fact_1=()=>tmp,tmp};class RegionInfo{name;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.region_info.RegionInfo",version:"2.252.0"};static get regions(){return fact_1().Fact.regions.map(x=>RegionInfo.get(x))}static regionMap(factName){const ret={};for(const regionInfo of RegionInfo.regions){const fact=fact_1().Fact.find(regionInfo.name,factName);fact&&(ret[regionInfo.name]=fact)}return ret}static limitedRegionMap(factName,partitions){const ret={};for(const[region,value]of Object.entries(RegionInfo.regionMap(factName)))partitions.includes((0,aws_entities_1().partitionInformation)(region).partition)&&(ret[region]=value);return ret}static get(name){return new RegionInfo(name)}constructor(name){this.name=name}get cdkMetadataResourceAvailable(){return fact_1().Fact.find(this.name,fact_1().FactName.CDK_METADATA_RESOURCE_AVAILABLE)==="YES"}get isOptInRegion(){return fact_1().Fact.find(this.name,fact_1().FactName.IS_OPT_IN_REGION)==="YES"}get domainSuffix(){return fact_1().Fact.find(this.name,fact_1().FactName.DOMAIN_SUFFIX)}get partition(){return fact_1().Fact.find(this.name,fact_1().FactName.PARTITION)}get s3StaticWebsiteEndpoint(){return fact_1().Fact.find(this.name,fact_1().FactName.S3_STATIC_WEBSITE_ENDPOINT)}get s3StaticWebsiteHostedZoneId(){return fact_1().Fact.find(this.name,fact_1().FactName.S3_STATIC_WEBSITE_ZONE_53_HOSTED_ZONE_ID)}get ebsEnvEndpointHostedZoneId(){return fact_1().Fact.find(this.name,fact_1().FactName.EBS_ENV_ENDPOINT_HOSTED_ZONE_ID)}get vpcEndpointServiceNamePrefix(){return fact_1().Fact.find(this.name,fact_1().FactName.VPC_ENDPOINT_SERVICE_NAME_PREFIX)}servicePrincipal(service){try{jsiiDeprecationWarnings().print("aws-cdk-lib.region_info.RegionInfo#servicePrincipal","- Use `iam.ServicePrincipal.servicePrincipalName()` instead.")}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.servicePrincipal),error}return`${service.replace(/\.amazonaws\.com(\.cn)?$/,"")}.amazonaws.com`}get elbv2Account(){return fact_1().Fact.find(this.name,fact_1().FactName.ELBV2_ACCOUNT)}get dlcRepositoryAccount(){return fact_1().Fact.find(this.name,fact_1().FactName.DLC_REPOSITORY_ACCOUNT)}cloudwatchLambdaInsightsArn(insightsVersion,architecture){return fact_1().Fact.find(this.name,fact_1().FactName.cloudwatchLambdaInsightsVersion(insightsVersion,architecture))}appConfigLambdaArn(layerVersion,architecture){return fact_1().Fact.find(this.name,fact_1().FactName.appConfigLambdaLayerVersion(layerVersion,architecture))}get appMeshRepositoryAccount(){return fact_1().Fact.find(this.name,fact_1().FactName.APPMESH_ECR_ACCOUNT)}get firehoseCidrBlock(){return fact_1().Fact.find(this.name,fact_1().FactName.FIREHOSE_CIDR_BLOCK)}adotLambdaLayerArn(type,version,architecture){return fact_1().Fact.find(this.name,fact_1().FactName.adotLambdaLayer(type,version,architecture))}paramsAndSecretsLambdaLayerArn(version,architecture){return fact_1().Fact.find(this.name,fact_1().FactName.paramsAndSecretsLambdaLayer(version,architecture))}get samlSignOnUrl(){return fact_1().Fact.find(this.name,fact_1().FactName.SAML_SIGN_ON_URL)}}exports.RegionInfo=RegionInfo;
|
||||
Reference in New Issue
Block a user