agent-claw: automated task changes

This commit is contained in:
daniel
2026-05-06 18:55:16 -05:00
parent 38905bb1e9
commit 732b00fb66
8494 changed files with 2018127 additions and 4 deletions

46
cdk/node_modules/aws-cdk-lib/cx-api/lib/app.d.ts generated vendored Normal file
View File

@@ -0,0 +1,46 @@
/**
* Enables the embedding of the "aws:cdk:path" in CloudFormation template metadata.
*/
export declare const PATH_METADATA_ENABLE_CONTEXT = "aws:cdk:enable-path-metadata";
/**
* Enable the collection and reporting of version information.
*/
export declare const ANALYTICS_REPORTING_ENABLED_CONTEXT = "aws:cdk:version-reporting";
/**
* Disable asset staging (for use with SAM CLI).
*
* Disabling asset staging means that copyable assets will not be copied to the
* output directory and will be referenced with absolute paths.
*
* Not copied to the output directory: this is so users can iterate on the
* Lambda source and run SAM CLI without having to re-run CDK (note: we
* cannot achieve this for bundled assets, if assets are bundled they
* will have to re-run CDK CLI to re-bundle updated versions).
*
* Absolute path: SAM CLI expects `cwd`-relative paths in a resource's
* `aws:asset:path` metadata. In order to be predictable, we will always output
* absolute paths.
*/
export declare const DISABLE_ASSET_STAGING_CONTEXT = "aws:cdk:disable-asset-staging";
/**
* If this context key is set, the CDK will stage assets under the specified
* directory. Otherwise, assets will not be staged.
* Omits stack traces from construct metadata entries.
*/
export declare const DISABLE_METADATA_STACK_TRACE = "aws:cdk:disable-stack-trace";
/**
* If this context key is set, the CDK will not store logical ID
* metadata in the manifest.
*/
export declare const DISABLE_LOGICAL_ID_METADATA = "aws:cdk:disable-logicalId-metadata";
/**
* If this context key is set, construct stack traces will not be captured upon creation
*
* You should only need to set this for performance reasons, and `--debug` mode will
* turn it this back on unconditionally
*/
export declare const DISABLE_CREATION_STACK_TRACES = "aws:cdk:disable-creation-stack-traces";
/**
* Run bundling for stacks specified in this context key
*/
export declare const BUNDLING_STACKS = "aws:cdk:bundling-stacks";

1
cdk/node_modules/aws-cdk-lib/cx-api/lib/app.js generated vendored Normal file
View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BUNDLING_STACKS=exports.DISABLE_CREATION_STACK_TRACES=exports.DISABLE_LOGICAL_ID_METADATA=exports.DISABLE_METADATA_STACK_TRACE=exports.DISABLE_ASSET_STAGING_CONTEXT=exports.ANALYTICS_REPORTING_ENABLED_CONTEXT=exports.PATH_METADATA_ENABLE_CONTEXT=void 0,exports.PATH_METADATA_ENABLE_CONTEXT="aws:cdk:enable-path-metadata",exports.ANALYTICS_REPORTING_ENABLED_CONTEXT="aws:cdk:version-reporting",exports.DISABLE_ASSET_STAGING_CONTEXT="aws:cdk:disable-asset-staging",exports.DISABLE_METADATA_STACK_TRACE="aws:cdk:disable-stack-trace",exports.DISABLE_LOGICAL_ID_METADATA="aws:cdk:disable-logicalId-metadata",exports.DISABLE_CREATION_STACK_TRACES="aws:cdk:disable-creation-stack-traces",exports.BUNDLING_STACKS="aws:cdk:bundling-stacks";

39
cdk/node_modules/aws-cdk-lib/cx-api/lib/cxapi.d.ts generated vendored Normal file
View File

@@ -0,0 +1,39 @@
export declare const OUTDIR_ENV = "CDK_OUTDIR";
export declare const CONTEXT_ENV = "CDK_CONTEXT_JSON";
/**
* If this environment variable is set, error codes of CDK-specific errors will be written to it.
*/
export declare const ERRORFILE_ENV = "CDK_ERROR_FILE";
/**
* The name of the temporary file where the context is stored.
*/
export declare const CONTEXT_OVERFLOW_LOCATION_ENV = "CONTEXT_OVERFLOW_LOCATION_ENV";
/**
* Environment variable set by the CDK CLI with the default AWS account ID.
*/
export declare const DEFAULT_ACCOUNT_ENV = "CDK_DEFAULT_ACCOUNT";
/**
* Environment variable set by the CDK CLI with the default AWS region.
*/
export declare const DEFAULT_REGION_ENV = "CDK_DEFAULT_REGION";
/**
* Version of Cloud Assembly expected by CDK Toolkit.
*
* Despite its name, this value applies to all version of the CDK Toolkit, not just the CLI.
*
* CLI started emitting this at 1.10.1
*/
export declare const CLI_ASM_VERSION_ENV = "CDK_CLI_ASM_VERSION";
/**
* Version of the CLI currently running.
*
* CLI started emitting this at 1.10.1
* Will not be present if the CDK app is run by any Toolkit variation other than the CLI.
*/
export declare const CLI_VERSION_ENV = "CDK_CLI_VERSION";
/**
* Package & version of the CDK Toolkit running the app.
*
* In the format "<package>@x.y.z", e.g "aws-cdk@2.1006.0" or "@aws-cdk/toolkit-lib@1.0.0"
*/
export declare const TOOLKIT_VERSION_ENV = "CDK_TOOLKIT_VERSION";

1
cdk/node_modules/aws-cdk-lib/cx-api/lib/cxapi.js generated vendored Normal file
View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TOOLKIT_VERSION_ENV=exports.CLI_VERSION_ENV=exports.CLI_ASM_VERSION_ENV=exports.DEFAULT_REGION_ENV=exports.DEFAULT_ACCOUNT_ENV=exports.CONTEXT_OVERFLOW_LOCATION_ENV=exports.ERRORFILE_ENV=exports.CONTEXT_ENV=exports.OUTDIR_ENV=void 0,exports.OUTDIR_ENV="CDK_OUTDIR",exports.CONTEXT_ENV="CDK_CONTEXT_JSON",exports.ERRORFILE_ENV="CDK_ERROR_FILE",exports.CONTEXT_OVERFLOW_LOCATION_ENV="CONTEXT_OVERFLOW_LOCATION_ENV",exports.DEFAULT_ACCOUNT_ENV="CDK_DEFAULT_ACCOUNT",exports.DEFAULT_REGION_ENV="CDK_DEFAULT_REGION",exports.CLI_ASM_VERSION_ENV="CDK_CLI_ASM_VERSION",exports.CLI_VERSION_ENV="CDK_CLI_VERSION",exports.TOOLKIT_VERSION_ENV="CDK_TOOLKIT_VERSION";

150
cdk/node_modules/aws-cdk-lib/cx-api/lib/features.d.ts generated vendored Normal file
View File

@@ -0,0 +1,150 @@
import type { FlagInfo } from './private/flag-modeling';
export declare const ENABLE_STACK_NAME_DUPLICATES_CONTEXT = "@aws-cdk/core:enableStackNameDuplicates";
export declare const ENABLE_DIFF_NO_FAIL_CONTEXT = "aws-cdk:enableDiffNoFail";
/** @deprecated use `ENABLE_DIFF_NO_FAIL_CONTEXT` */
export declare const ENABLE_DIFF_NO_FAIL = "aws-cdk:enableDiffNoFail";
export declare const NEW_STYLE_STACK_SYNTHESIS_CONTEXT = "@aws-cdk/core:newStyleStackSynthesis";
export declare const STACK_RELATIVE_EXPORTS_CONTEXT = "@aws-cdk/core:stackRelativeExports";
export declare const DOCKER_IGNORE_SUPPORT = "@aws-cdk/aws-ecr-assets:dockerIgnoreSupport";
export declare const SECRETS_MANAGER_PARSE_OWNED_SECRET_NAME = "@aws-cdk/aws-secretsmanager:parseOwnedSecretName";
export declare const KMS_DEFAULT_KEY_POLICIES = "@aws-cdk/aws-kms:defaultKeyPolicies";
export declare const S3_GRANT_WRITE_WITHOUT_ACL = "@aws-cdk/aws-s3:grantWriteWithoutAcl";
export declare const ECS_REMOVE_DEFAULT_DESIRED_COUNT = "@aws-cdk/aws-ecs-patterns:removeDefaultDesiredCount";
export declare const RDS_LOWERCASE_DB_IDENTIFIER = "@aws-cdk/aws-rds:lowercaseDbIdentifier";
export declare const APIGATEWAY_USAGEPLANKEY_ORDERINSENSITIVE_ID = "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId";
export declare const EFS_DEFAULT_ENCRYPTION_AT_REST = "@aws-cdk/aws-efs:defaultEncryptionAtRest";
export declare const LAMBDA_RECOGNIZE_VERSION_PROPS = "@aws-cdk/aws-lambda:recognizeVersionProps";
export declare const LAMBDA_RECOGNIZE_LAYER_VERSION = "@aws-cdk/aws-lambda:recognizeLayerVersion";
export declare const CLOUDFRONT_DEFAULT_SECURITY_POLICY_TLS_V1_2_2021 = "@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021";
export declare const CHECK_SECRET_USAGE = "@aws-cdk/core:checkSecretUsage";
export declare const TARGET_PARTITIONS = "@aws-cdk/core:target-partitions";
export declare const ECS_SERVICE_EXTENSIONS_ENABLE_DEFAULT_LOG_DRIVER = "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver";
export declare const EC2_UNIQUE_IMDSV2_LAUNCH_TEMPLATE_NAME = "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName";
export declare const ECS_ARN_FORMAT_INCLUDES_CLUSTER_NAME = "@aws-cdk/aws-ecs:arnFormatIncludesClusterName";
export declare const IAM_MINIMIZE_POLICIES = "@aws-cdk/aws-iam:minimizePolicies";
export declare const IAM_IMPORTED_ROLE_STACK_SAFE_DEFAULT_POLICY_NAME = "@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName";
export declare const VALIDATE_SNAPSHOT_REMOVAL_POLICY = "@aws-cdk/core:validateSnapshotRemovalPolicy";
export declare const CODEPIPELINE_CROSS_ACCOUNT_KEY_ALIAS_STACK_SAFE_RESOURCE_NAME = "@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName";
export declare const S3_CREATE_DEFAULT_LOGGING_POLICY = "@aws-cdk/aws-s3:createDefaultLoggingPolicy";
export declare const SNS_SUBSCRIPTIONS_SQS_DECRYPTION_POLICY = "@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption";
export declare const APIGATEWAY_DISABLE_CLOUDWATCH_ROLE = "@aws-cdk/aws-apigateway:disableCloudWatchRole";
export declare const ENABLE_PARTITION_LITERALS = "@aws-cdk/core:enablePartitionLiterals";
export declare const EVENTS_TARGET_QUEUE_SAME_ACCOUNT = "@aws-cdk/aws-events:eventsTargetQueueSameAccount";
export declare const ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER = "@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker";
export declare const ECS_PATTERNS_SEC_GROUPS_DISABLES_IMPLICIT_OPEN_LISTENER = "@aws-cdk/aws-ecs-patterns:secGroupsDisablesImplicitOpenListener";
export declare const S3_SERVER_ACCESS_LOGS_USE_BUCKET_POLICY = "@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy";
export declare const ROUTE53_PATTERNS_USE_CERTIFICATE = "@aws-cdk/aws-route53-patters:useCertificate";
export declare const ROUTE53_PATTERNS_USE_DISTRIBUTION = "@aws-cdk/aws-route53-patterns:useDistribution";
export declare const AWS_CUSTOM_RESOURCE_LATEST_SDK_DEFAULT = "@aws-cdk/customresources:installLatestAwsSdkDefault";
export declare const DATABASE_PROXY_UNIQUE_RESOURCE_NAME = "@aws-cdk/aws-rds:databaseProxyUniqueResourceName";
export declare const CODEDEPLOY_REMOVE_ALARMS_FROM_DEPLOYMENT_GROUP = "@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup";
export declare const APIGATEWAY_AUTHORIZER_CHANGE_DEPLOYMENT_LOGICAL_ID = "@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId";
export declare const EC2_LAUNCH_TEMPLATE_DEFAULT_USER_DATA = "@aws-cdk/aws-ec2:launchTemplateDefaultUserData";
export declare const SECRETS_MANAGER_TARGET_ATTACHMENT_RESOURCE_POLICY = "@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments";
export declare const REDSHIFT_COLUMN_ID = "@aws-cdk/aws-redshift:columnId";
export declare const ENABLE_EMR_SERVICE_POLICY_V2 = "@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2";
export declare const EC2_RESTRICT_DEFAULT_SECURITY_GROUP = "@aws-cdk/aws-ec2:restrictDefaultSecurityGroup";
export declare const APIGATEWAY_REQUEST_VALIDATOR_UNIQUE_ID = "@aws-cdk/aws-apigateway:requestValidatorUniqueId";
export declare const INCLUDE_PREFIX_IN_UNIQUE_NAME_GENERATION = "@aws-cdk/core:includePrefixInUniqueNameGeneration";
export declare const KMS_ALIAS_NAME_REF = "@aws-cdk/aws-kms:aliasNameRef";
export declare const KMS_APPLY_IMPORTED_ALIAS_PERMISSIONS_TO_PRINCIPAL = "@aws-cdk/aws-kms:applyImportedAliasPermissionsToPrincipal";
export declare const EFS_DENY_ANONYMOUS_ACCESS = "@aws-cdk/aws-efs:denyAnonymousAccess";
export declare const EFS_MOUNTTARGET_ORDERINSENSITIVE_LOGICAL_ID = "@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId";
export declare const AUTOSCALING_GENERATE_LAUNCH_TEMPLATE = "@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig";
export declare const ENABLE_OPENSEARCH_MULTIAZ_WITH_STANDBY = "@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby";
export declare const LAMBDA_NODEJS_USE_LATEST_RUNTIME = "@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion";
export declare const RDS_PREVENT_RENDERING_DEPRECATED_CREDENTIALS = "@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials";
export declare const AURORA_CLUSTER_CHANGE_SCOPE_OF_INSTANCE_PARAMETER_GROUP_WITH_EACH_PARAMETERS = "@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters";
export declare const APPSYNC_ENABLE_USE_ARN_IDENTIFIER_SOURCE_API_ASSOCIATION = "@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier";
export declare const CODECOMMIT_SOURCE_ACTION_DEFAULT_BRANCH_NAME = "@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource";
export declare const LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION = "@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction";
export declare const CODEPIPELINE_CROSS_ACCOUNT_KEYS_DEFAULT_VALUE_TO_FALSE = "@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse";
export declare const CODEPIPELINE_DEFAULT_PIPELINE_TYPE_TO_V2 = "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2";
export declare const KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE = "@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope";
export declare const PIPELINE_REDUCE_ASSET_ROLE_TRUST_SCOPE = "@aws-cdk/pipelines:reduceAssetRoleTrustScope";
export declare const EKS_NODEGROUP_NAME = "@aws-cdk/aws-eks:nodegroupNameAttribute";
export declare const EKS_USE_NATIVE_OIDC_PROVIDER = "@aws-cdk/aws-eks:useNativeOidcProvider";
export declare const ECS_PATTERNS_UNIQUE_TARGET_GROUP_ID = "@aws-cdk/aws-ecs-patterns:uniqueTargetGroupId";
export declare const EBS_DEFAULT_GP3 = "@aws-cdk/aws-ec2:ebsDefaultGp3Volume";
export declare const ECS_REMOVE_DEFAULT_DEPLOYMENT_ALARM = "@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm";
export declare const LOG_API_RESPONSE_DATA_PROPERTY_TRUE_DEFAULT = "@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault";
export declare const S3_KEEP_NOTIFICATION_IN_IMPORTED_BUCKET = "@aws-cdk/aws-s3:keepNotificationInImportedBucket";
export declare const USE_NEW_S3URI_PARAMETERS_FOR_BEDROCK_INVOKE_MODEL_TASK = "@aws-cdk/aws-stepfunctions-tasks:useNewS3UriParametersForBedrockInvokeModelTask";
export declare const EXPLICIT_STACK_TAGS = "@aws-cdk/core:explicitStackTags";
export declare const REDUCE_EC2_FARGATE_CLOUDWATCH_PERMISSIONS = "@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions";
export declare const DYNAMODB_TABLEV2_RESOURCE_POLICY_PER_REPLICA = "@aws-cdk/aws-dynamodb:resourcePolicyPerReplica";
export declare const EC2_SUM_TIMEOUT_ENABLED = "@aws-cdk/aws-ec2:ec2SumTImeoutEnabled";
export declare const APPSYNC_GRAPHQLAPI_SCOPE_LAMBDA_FUNCTION_PERMISSION = "@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission";
export declare const USE_CORRECT_VALUE_FOR_INSTANCE_RESOURCE_ID_PROPERTY = "@aws-cdk/aws-rds:setCorrectValueForDatabaseInstanceReadReplicaInstanceResourceId";
export declare const CFN_INCLUDE_REJECT_COMPLEX_RESOURCE_UPDATE_CREATE_POLICY_INTRINSICS = "@aws-cdk/core:cfnIncludeRejectComplexResourceUpdateCreatePolicyIntrinsics";
export declare const LAMBDA_NODEJS_SDK_V3_EXCLUDE_SMITHY_PACKAGES = "@aws-cdk/aws-lambda-nodejs:sdkV3ExcludeSmithyPackages";
export declare const STEPFUNCTIONS_TASKS_FIX_RUN_ECS_TASK_POLICY = "@aws-cdk/aws-stepfunctions-tasks:fixRunEcsTaskPolicy";
export declare const STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2 = "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2";
export declare const BASTION_HOST_USE_AMAZON_LINUX_2023_BY_DEFAULT = "@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault";
export declare const ASPECT_STABILIZATION = "@aws-cdk/core:aspectStabilization";
export declare const SIGNER_PROFILE_NAME_PASSED_TO_CFN = "@aws-cdk/aws-signer:signingProfileNamePassedToCfn";
export declare const USER_POOL_DOMAIN_NAME_METHOD_WITHOUT_CUSTOM_RESOURCE = "@aws-cdk/aws-route53-targets:userPoolDomainNameMethodWithoutCustomResource";
export declare const ALB_DUALSTACK_WITHOUT_PUBLIC_IPV4_SECURITY_GROUP_RULES_DEFAULT = "@aws-cdk/aws-elasticloadbalancingV2:albDualstackWithoutPublicIpv4SecurityGroupRulesDefault";
export declare const IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS = "@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections";
export declare const ENABLE_ADDITIONAL_METADATA_COLLECTION = "@aws-cdk/core:enableAdditionalMetadataCollection";
export declare const LAMBDA_CREATE_NEW_POLICIES_WITH_ADDTOROLEPOLICY = "@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy";
export declare const SET_UNIQUE_REPLICATION_ROLE_NAME = "@aws-cdk/aws-s3:setUniqueReplicationRoleName";
export declare const PIPELINE_REDUCE_STAGE_ROLE_TRUST_SCOPE = "@aws-cdk/pipelines:reduceStageRoleTrustScope";
export declare const EVENTBUS_POLICY_SID_REQUIRED = "@aws-cdk/aws-events:requireEventBusPolicySid";
export declare const ASPECT_PRIORITIES_MUTATING = "@aws-cdk/core:aspectPrioritiesMutating";
export declare const DYNAMODB_TABLE_RETAIN_TABLE_REPLICA = "@aws-cdk/aws-dynamodb:retainTableReplica";
export declare const LOG_USER_POOL_CLIENT_SECRET_VALUE = "@aws-cdk/cognito:logUserPoolClientSecretValue";
export declare const PIPELINE_REDUCE_CROSS_ACCOUNT_ACTION_ROLE_TRUST_SCOPE = "@aws-cdk/pipelines:reduceCrossAccountActionRoleTrustScope";
export declare const S3_TRUST_KEY_POLICY_FOR_SNS_SUBSCRIPTIONS = "@aws-cdk/s3-notifications:addS3TrustKeyPolicyForSnsSubscriptions";
export declare const EC2_REQUIRE_PRIVATE_SUBNETS_FOR_EGRESSONLYINTERNETGATEWAY = "@aws-cdk/aws-ec2:requirePrivateSubnetsForEgressOnlyInternetGateway";
export declare const USE_RESOURCEID_FOR_VPCV2_MIGRATION = "@aws-cdk/aws-ec2-alpha:useResourceIdForVpcV2Migration";
export declare const S3_PUBLIC_ACCESS_BLOCKED_BY_DEFAULT = "@aws-cdk/aws-s3:publicAccessBlockedByDefault";
export declare const USE_CDK_MANAGED_LAMBDA_LOGGROUP = "@aws-cdk/aws-lambda:useCdkManagedLogGroup";
export declare const NETWORK_LOAD_BALANCER_WITH_SECURITY_GROUP_BY_DEFAULT = "@aws-cdk/aws-elasticloadbalancingv2:networkLoadBalancerWithSecurityGroupByDefault";
export declare const STEPFUNCTIONS_TASKS_HTTPINVOKE_DYNAMIC_JSONPATH_ENDPOINT = "@aws-cdk/aws-stepfunctions-tasks:httpInvokeDynamicJsonPathEndpoint";
export declare const CLOUDFRONT_FUNCTION_DEFAULT_RUNTIME_V2_0 = "@aws-cdk/aws-cloudfront:defaultFunctionRuntimeV2_0";
export declare const ELB_USE_POST_QUANTUM_TLS_POLICY = "@aws-cdk/aws-elasticloadbalancingv2:usePostQuantumTlsPolicy";
export declare const AUTOMATIC_L1_TRAITS = "@aws-cdk/core:automaticL1Traits";
export declare const BATCH_DEFAULT_AL2023 = "@aws-cdk/aws-batch:defaultToAL2023";
export declare const FLAGS: Record<string, FlagInfo>;
export declare const CURRENT_MV = "v2";
/**
* The list of future flags that are now expired. This is going to be used to identify
* and block usages of old feature flags in the new major version of CDK.
*/
export declare const CURRENT_VERSION_EXPIRED_FLAGS: string[];
/**
* Flag values that should apply for new projects
*
* This contains flags that satisfy both criteria of:
*
* - They are configurable for the current major version line.
* - The recommended value is different from the unconfigured value (i.e.,
* configuring a flag is useful)
*/
export declare const CURRENTLY_RECOMMENDED_FLAGS: {
[k: string]: any;
};
/**
* The default values of each of these flags in the current major version.
*
* This is the effective value of the flag, unless it's overridden via
* context.
*
* Adding new flags here is only allowed during the pre-release period of a new
* major version!
*/
export declare const CURRENT_VERSION_FLAG_DEFAULTS: {
[k: string]: any;
};
export declare function futureFlagDefault(flag: string): boolean;
/** @deprecated use CURRENT_VERSION_EXPIRED_FLAGS instead */
export declare const FUTURE_FLAGS_EXPIRED: string[];
/** @deprecated do not use at all! */
export declare const FUTURE_FLAGS: {
[k: string]: any;
};
/** @deprecated do not use at all! */
export declare const NEW_PROJECT_DEFAULT_CONTEXT: {
[k: string]: any;
};

555
cdk/node_modules/aws-cdk-lib/cx-api/lib/features.js generated vendored Normal file

File diff suppressed because one or more lines are too long

4
cdk/node_modules/aws-cdk-lib/cx-api/lib/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,4 @@
export * from './legacy-moved';
export * from './cxapi';
export * from './features';
export * from './app';

1
cdk/node_modules/aws-cdk-lib/cx-api/lib/index.js generated vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,949 @@
/**
* Re-exports of members and types that historically used to live here, but have been moved to a more apt package.
*
* Re-exported here for backwards compatibility.
*
* To satisfy the (jsii) use of these types in the public API of this package, we do the following:
*
* - Re-declare the types that we use in this assembly here (`declare class ...`).
* - Copy the implementation from the upstream library.
*
* That way we satisfy the jsii and backwards compatibility checker, while keeping the implementation
* centralized in a single place.
*/
import { ASSET_PREFIX_SEPARATOR, ASSET_RESOURCE_METADATA_DOCKER_BUILD_ARGS_KEY, ASSET_RESOURCE_METADATA_DOCKER_BUILD_CONTEXTS_KEY, ASSET_RESOURCE_METADATA_DOCKER_BUILD_SECRETS_KEY, ASSET_RESOURCE_METADATA_DOCKER_BUILD_SSH_KEY, ASSET_RESOURCE_METADATA_DOCKER_BUILD_TARGET_KEY, ASSET_RESOURCE_METADATA_DOCKER_CACHE_DISABLED_KEY, ASSET_RESOURCE_METADATA_DOCKER_CACHE_FROM_KEY, ASSET_RESOURCE_METADATA_DOCKER_CACHE_TO_KEY, ASSET_RESOURCE_METADATA_DOCKER_OUTPUTS_KEY, ASSET_RESOURCE_METADATA_DOCKERFILE_PATH_KEY, ASSET_RESOURCE_METADATA_ENABLED_CONTEXT, ASSET_RESOURCE_METADATA_IS_BUNDLED_KEY, ASSET_RESOURCE_METADATA_PATH_KEY, ASSET_RESOURCE_METADATA_PROPERTY_KEY, AVAILABILITY_ZONE_FALLBACK_CONTEXT_KEY, CloudAssembly as CloudAssembly_, CloudAssemblyBuilder as CloudAssemblyBuilder_, ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER, PATH_METADATA_KEY, PROVIDER_ERROR_KEY, SSMPARAM_NO_INVALIDATE, UNKNOWN_ACCOUNT, UNKNOWN_REGION, type AmiContextResponse, type AvailabilityZonesContextResponse, type EndpointServiceAvailabilityZonesContextResponse, type StackMetadata } from '@aws-cdk/cloud-assembly-api';
import type * as cxschema from '@aws-cdk/cloud-assembly-schema';
export { ASSET_PREFIX_SEPARATOR, ASSET_RESOURCE_METADATA_DOCKER_BUILD_ARGS_KEY, ASSET_RESOURCE_METADATA_DOCKER_BUILD_CONTEXTS_KEY, ASSET_RESOURCE_METADATA_DOCKER_BUILD_SECRETS_KEY, ASSET_RESOURCE_METADATA_DOCKER_BUILD_SSH_KEY, ASSET_RESOURCE_METADATA_DOCKER_BUILD_TARGET_KEY, ASSET_RESOURCE_METADATA_DOCKER_CACHE_DISABLED_KEY, ASSET_RESOURCE_METADATA_DOCKER_CACHE_FROM_KEY, ASSET_RESOURCE_METADATA_DOCKER_CACHE_TO_KEY, ASSET_RESOURCE_METADATA_DOCKER_OUTPUTS_KEY, ASSET_RESOURCE_METADATA_DOCKERFILE_PATH_KEY, ASSET_RESOURCE_METADATA_ENABLED_CONTEXT, ASSET_RESOURCE_METADATA_IS_BUNDLED_KEY, ASSET_RESOURCE_METADATA_PATH_KEY, ASSET_RESOURCE_METADATA_PROPERTY_KEY, AVAILABILITY_ZONE_FALLBACK_CONTEXT_KEY, ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER, PATH_METADATA_KEY, PROVIDER_ERROR_KEY, SSMPARAM_NO_INVALIDATE, UNKNOWN_ACCOUNT, UNKNOWN_REGION, AmiContextResponse, AvailabilityZonesContextResponse, EndpointServiceAvailabilityZonesContextResponse, StackMetadata, };
/**
* @deprecated The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface SynthesisMessage {
readonly level: SynthesisMessageLevel;
readonly id: string;
readonly entry: cxschema.MetadataEntry;
}
/**
* @deprecated The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export declare enum SynthesisMessageLevel {
INFO = "info",
WARNING = "warning",
ERROR = "error"
}
/**
* Represents a deployable cloud application.
*/
export declare class CloudAssembly implements cxschema.ICloudAssembly {
/**
* Return whether the given object is a CloudAssembly.
*
* We do attribute detection since we can't reliably use 'instanceof'.
*/
static isCloudAssembly(x: any): x is CloudAssembly;
/**
* Cleans up any temporary assembly directories that got created in this process
*
* If a Cloud Assembly is emitted to a temporary directory, its directory gets
* added to a list. This function iterates over that list and deletes each
* directory in it, to free up disk space.
*
* This function will normally be called automatically during Node process
* exit and so you don't need to call this. However, some test environments do
* not properly trigger Node's `exit` event. Notably: Jest does not trigger
* the `exit` event (<https://github.com/jestjs/jest/issues/10927>).
*
* ## Cleaning up temporary directories in jest
*
* For Jest, you have to make sure this function is called at the end of the
* test suite instead:
*
* ```js
* import { CloudAssembly } from 'aws-cdk-lib/cx-api';
*
* afterAll(CloudAssembly.cleanupTemporaryDirectories);
* ```
*
* Alternatively, you can use the `setupFilesAfterEnv` feature and use a
* provided helper script to automatically inject the above into every
* test file, so you don't have to do it by hand.
*
* ```
* $ npx jest --setupFilesAfterEnv aws-cdk-lib/testhelpers/jest-autoclean
* ```
*
* Or put the following into `jest.config.js`:
*
* ```js
* module.exports = {
* // ...
* setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-cleanup'],
* };
* ```
*/
static cleanupTemporaryDirectories(): void;
/**
* The root directory of the cloud assembly.
*/
readonly directory: string;
/**
* The schema version of the assembly manifest.
*/
readonly version: string;
/**
* All artifacts included in this assembly.
*/
readonly artifacts: CloudArtifact[];
/**
* Runtime information such as module versions used to synthesize this assembly.
*/
readonly runtime: cxschema.RuntimeInfo;
/**
* The raw assembly manifest.
*/
readonly manifest: cxschema.AssemblyManifest;
/**
* Reads a cloud assembly from the specified directory.
* @param directory - The root directory of the assembly.
*/
constructor(directory: string, loadOptions?: cxschema.LoadManifestOptions);
/**
* Attempts to find an artifact with a specific identity.
* @returns A `CloudArtifact` object or `undefined` if the artifact does not exist in this assembly.
* @param id - The artifact ID
*/
tryGetArtifact(id: string): CloudArtifact | undefined;
/**
* Returns a CloudFormation stack artifact from this assembly.
*
* Will only search the current assembly.
*
* @param stackName - the name of the CloudFormation stack.
* @throws if there is no stack artifact by that name
* @throws if there is more than one stack with the same stack name. You can
* use `getStackArtifact(stack.artifactId)` instead.
* @returns a `CloudFormationStackArtifact` object.
*/
getStackByName(stackName: string): CloudFormationStackArtifact;
/**
* Returns a CloudFormation stack artifact from this assembly.
*
* @param artifactId - the artifact id of the stack (can be obtained through `stack.artifactId`).
* @throws if there is no stack artifact with that id
* @returns a `CloudFormationStackArtifact` object.
*/
getStackArtifact(artifactId: string): CloudFormationStackArtifact;
private tryGetArtifactRecursively;
/**
* Returns all the stacks, including the ones in nested assemblies
*/
get stacksRecursively(): CloudFormationStackArtifact[];
/**
* Returns a nested assembly artifact.
*
* @param artifactId - The artifact ID of the nested assembly
*/
getNestedAssemblyArtifact(artifactId: string): NestedCloudAssemblyArtifact;
/**
* Returns a nested assembly.
*
* @param artifactId - The artifact ID of the nested assembly
*/
getNestedAssembly(artifactId: string): CloudAssembly;
/**
* Returns the tree metadata artifact from this assembly.
* @throws if there is no metadata artifact by that name
* @returns a `TreeCloudArtifact` object if there is one defined in the manifest, `undefined` otherwise.
*/
tree(): TreeCloudArtifact | undefined;
/**
* @returns all the CloudFormation stack artifacts that are included in this assembly.
*/
get stacks(): CloudFormationStackArtifact[];
/**
* The nested assembly artifacts in this assembly
*/
get nestedAssemblies(): NestedCloudAssemblyArtifact[];
private validateDeps;
private renderArtifacts;
}
/**
* Represents an artifact within a cloud assembly.
*/
export declare class CloudArtifact {
readonly assembly: CloudAssembly;
readonly id: string;
/**
* Returns a subclass of `CloudArtifact` based on the artifact type defined in the artifact manifest.
*
* @param assembly - The cloud assembly from which to load the artifact
* @param id - The artifact ID
* @param artifact - The artifact manifest
* @returns the `CloudArtifact` that matches the artifact type or `undefined` if it's an artifact type that is unrecognized by this module.
*/
static fromManifest(assembly: CloudAssembly, id: string, artifact: cxschema.ArtifactManifest): CloudArtifact | undefined;
/**
* The artifact's manifest
*/
readonly manifest: cxschema.ArtifactManifest;
/**
* The set of messages extracted from the artifact's metadata.
*/
readonly messages: SynthesisMessage[];
/**
* Cache of resolved dependencies.
*/
private _deps?;
protected constructor(assembly: CloudAssembly, id: string, manifest: cxschema.ArtifactManifest);
/**
* Returns all the artifacts that this artifact depends on.
*/
get dependencies(): CloudArtifact[];
/**
* @returns all the metadata entries of a specific type in this artifact.
*/
findMetadataByType(type: string): MetadataEntryResult[];
private renderMessages;
/**
* An identifier that shows where this artifact is located in the tree
* of nested assemblies, based on their manifests. Defaults to the normal
* id. Should only be used in user interfaces.
*/
get hierarchicalId(): string;
/**
* Returns the metadata associated with this Cloud Artifact
*/
get metadata(): Record<string, cxschema.MetadataEntry[]>;
}
export declare class CloudFormationStackArtifact extends CloudArtifact {
/**
* Checks if `art` is an instance of this class.
*
* Use this method instead of `instanceof` to properly detect `CloudFormationStackArtifact`
* instances, even when the construct library is symlinked.
*
* Explanation: in JavaScript, multiple copies of the `cx-api` library on
* disk are seen as independent, completely different libraries. As a
* consequence, the class `CloudFormationStackArtifact` in each copy of the `cx-api` library
* is seen as a different class, and an instance of one class will not test as
* `instanceof` the other class. `npm install` will not create installations
* like this, but users may manually symlink construct libraries together or
* use a monorepo tool: in those cases, multiple copies of the `cx-api`
* library can be accidentally installed, and `instanceof` will behave
* unpredictably. It is safest to avoid using `instanceof`, and using
* this type-testing method instead.
*/
static isCloudFormationStackArtifact(art: any): art is CloudFormationStackArtifact;
/**
* The file name of the template.
*/
readonly templateFile: string;
/**
* The original name as defined in the CDK app.
*/
readonly originalName: string;
/**
* Any assets associated with this stack.
*/
readonly assets: cxschema.AssetMetadataEntry[];
/**
* CloudFormation parameters to pass to the stack.
*/
readonly parameters: {
[id: string]: string;
};
/**
* CloudFormation tags to pass to the stack.
*/
readonly tags: {
[id: string]: string;
};
/**
* SNS Topics that will receive stack events.
*/
readonly notificationArns?: string[];
/**
* The physical name of this stack.
*/
readonly stackName: string;
/**
* A string that represents this stack. Should only be used in user
* interfaces. If the stackName has not been set explicitly, or has been set
* to artifactId, it will return the hierarchicalId of the stack. Otherwise,
* it will return something like "<hierarchicalId> (<stackName>)"
*/
readonly displayName: string;
/**
* The environment into which to deploy this artifact.
*/
readonly environment: Environment;
/**
* The role that needs to be assumed to deploy the stack
*
* @default - No role is assumed (current credentials are used)
*/
readonly assumeRoleArn?: string;
/**
* External ID to use when assuming role for cloudformation deployments
*
* @default - No external ID
*/
readonly assumeRoleExternalId?: string;
/**
* Additional options to pass to STS when assuming the role for cloudformation deployments.
*
* - `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead.
* - `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead.
* - `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags are transitive by default.
*
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property
* @default - No additional options.
*/
readonly assumeRoleAdditionalOptions?: {
[key: string]: any;
};
/**
* The role that is passed to CloudFormation to execute the change set
*
* @default - No role is passed (currently assumed role/credentials are used)
*/
readonly cloudFormationExecutionRoleArn?: string;
/**
* The role to use to look up values from the target AWS account
*
* @default - No role is assumed (current credentials are used)
*/
readonly lookupRole?: cxschema.BootstrapRole;
/**
* If the stack template has already been included in the asset manifest, its asset URL
*
* @default - Not uploaded yet, upload just before deploying
*/
readonly stackTemplateAssetObjectUrl?: string;
/**
* Version of bootstrap stack required to deploy this stack
*
* @default - No bootstrap stack required
*/
readonly requiresBootstrapStackVersion?: number;
/**
* Name of SSM parameter with bootstrap stack version
*
* @default - Discover SSM parameter by reading stack
*/
readonly bootstrapStackVersionSsmParameter?: string;
/**
* Whether termination protection is enabled for this stack.
*/
readonly terminationProtection?: boolean;
/**
* Whether this stack should be validated by the CLI after synthesis
*
* @default - false
*/
readonly validateOnSynth?: boolean;
private _template;
constructor(assembly: CloudAssembly, artifactId: string, artifact: cxschema.ArtifactManifest);
/**
* Full path to the template file
*/
get templateFullPath(): string;
/**
* The CloudFormation template for this stack.
*/
get template(): any;
}
/**
* Asset manifest is a description of a set of assets which need to be built and published
*/
export declare class AssetManifestArtifact extends CloudArtifact {
/**
* Checks if `art` is an instance of this class.
*
* Use this method instead of `instanceof` to properly detect `AssetManifestArtifact`
* instances, even when the construct library is symlinked.
*
* Explanation: in JavaScript, multiple copies of the `cx-api` library on
* disk are seen as independent, completely different libraries. As a
* consequence, the class `AssetManifestArtifact` in each copy of the `cx-api` library
* is seen as a different class, and an instance of one class will not test as
* `instanceof` the other class. `npm install` will not create installations
* like this, but users may manually symlink construct libraries together or
* use a monorepo tool: in those cases, multiple copies of the `cx-api`
* library can be accidentally installed, and `instanceof` will behave
* unpredictably. It is safest to avoid using `instanceof`, and using
* this type-testing method instead.
*/
static isAssetManifestArtifact(this: void, art: any): art is AssetManifestArtifact;
/**
* The file name of the asset manifest
*/
readonly file: string;
/**
* Version of bootstrap stack required to deploy this stack
*/
readonly requiresBootstrapStackVersion: number | undefined;
/**
* Name of SSM parameter with bootstrap stack version
*
* @default - Discover SSM parameter by reading stack
*/
readonly bootstrapStackVersionSsmParameter?: string;
private _contents?;
constructor(assembly: CloudAssembly, name: string, artifact: cxschema.ArtifactManifest);
/**
* The Asset Manifest contents
*/
get contents(): cxschema.AssetManifest;
}
/**
* Asset manifest is a description of a set of assets which need to be built and published
*/
export declare class NestedCloudAssemblyArtifact extends CloudArtifact {
/**
* Checks if `art` is an instance of this class.
*
* Use this method instead of `instanceof` to properly detect `NestedCloudAssemblyArtifact`
* instances, even when the construct library is symlinked.
*
* Explanation: in JavaScript, multiple copies of the `cx-api` library on
* disk are seen as independent, completely different libraries. As a
* consequence, the class `NestedCloudAssemblyArtifact` in each copy of the `cx-api` library
* is seen as a different class, and an instance of one class will not test as
* `instanceof` the other class. `npm install` will not create installations
* like this, but users may manually symlink construct libraries together or
* use a monorepo tool: in those cases, multiple copies of the `cx-api`
* library can be accidentally installed, and `instanceof` will behave
* unpredictably. It is safest to avoid using `instanceof`, and using
* this type-testing method instead.
*/
static isNestedCloudAssemblyArtifact(art: any): art is NestedCloudAssemblyArtifact;
/**
* The relative directory name of the asset manifest
*/
readonly directoryName: string;
/**
* Display name
*/
readonly displayName: string;
/**
* The nested Assembly
*/
readonly nestedAssembly: CloudAssembly;
constructor(assembly: CloudAssembly, name: string, artifact: cxschema.ArtifactManifest);
/**
* Full path to the nested assembly directory
*/
get fullPath(): string;
}
export declare class TreeCloudArtifact extends CloudArtifact {
/**
* Checks if `art` is an instance of this class.
*
* Use this method instead of `instanceof` to properly detect `TreeCloudArtifact`
* instances, even when the construct library is symlinked.
*
* Explanation: in JavaScript, multiple copies of the `cx-api` library on
* disk are seen as independent, completely different libraries. As a
* consequence, the class `TreeCloudArtifact` in each copy of the `cx-api` library
* is seen as a different class, and an instance of one class will not test as
* `instanceof` the other class. `npm install` will not create installations
* like this, but users may manually symlink construct libraries together or
* use a monorepo tool: in those cases, multiple copies of the `cx-api`
* library can be accidentally installed, and `instanceof` will behave
* unpredictably. It is safest to avoid using `instanceof`, and using
* this type-testing method instead.
*/
static isTreeCloudArtifact(art: any): art is TreeCloudArtifact;
readonly file: string;
constructor(assembly: CloudAssembly, name: string, artifact: cxschema.ArtifactManifest);
}
/**
* @deprecated The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface MetadataEntryResult extends cxschema.MetadataEntry {
/**
* The path in which this entry was defined.
*/
readonly path: string;
}
/**
* Models an AWS execution environment, for use within the CDK toolkit.
*
* @deprecated The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface Environment {
/** The arbitrary name of this environment (user-set, or at least user-meaningful) */
readonly name: string;
/** The AWS account this environment deploys into */
readonly account: string;
/** The AWS region name where this environment deploys into */
readonly region: string;
}
/**
* Can be used to build a cloud assembly.
*/
export declare class CloudAssemblyBuilder {
/**
* The root directory of the resulting cloud assembly.
*/
readonly outdir: string;
/**
* The directory where assets of this Cloud Assembly should be stored
*/
readonly assetOutdir: string;
private readonly artifacts;
private readonly missing;
private readonly parentBuilder?;
/**
* Initializes a cloud assembly builder.
* @param outdir - The output directory, uses temporary directory if undefined
*/
constructor(outdir?: string, props?: CloudAssemblyBuilderProps);
/**
* Adds an artifact into the cloud assembly.
* @param id - The ID of the artifact.
* @param manifest - The artifact manifest
*/
addArtifact(id: string, manifest: cxschema.ArtifactManifest): void;
/**
* Reports that some context is missing in order for this cloud assembly to be fully synthesized.
* @param missing - Missing context information.
*/
addMissing(missing: cxschema.MissingContext): void;
/**
* Finalizes the cloud assembly into the output directory returns a
* `CloudAssembly` object that can be used to inspect the assembly.
*/
buildAssembly(options?: AssemblyBuildOptions): CloudAssembly;
/**
* Creates a nested cloud assembly
*/
createNestedAssembly(artifactId: string, displayName: string): CloudAssemblyBuilder;
/**
* Delete the cloud assembly directory
*/
delete(): void;
}
/**
* Convert one CloudAssembly type to another (public to private and vice-versa)
*
* @internal
*/
export declare function _convertCloudAssembly(x: CloudAssembly_): CloudAssembly;
export declare function _convertCloudAssembly(x: CloudAssembly): CloudAssembly_;
/**
* Convert one CloudAssemblyBuilder type to another (public to private and vice-versa)
*
* @internal
*/
export declare function _convertCloudAssemblyBuilder(x: CloudAssemblyBuilder_): CloudAssemblyBuilder;
export declare function _convertCloudAssemblyBuilder(x: CloudAssemblyBuilder): CloudAssemblyBuilder_;
/**
* Construction properties for CloudAssemblyBuilder
*/
export interface CloudAssemblyBuilderProps {
/**
* Use the given asset output directory
*
* @default - Same as the manifest outdir
*/
readonly assetOutdir?: string;
/**
* If this builder is for a nested assembly, the parent assembly builder
*
* @default - This is a root assembly
*/
readonly parentBuilder?: CloudAssemblyBuilder;
}
export interface AssemblyBuildOptions {
}
/**
* Placeholders which can be used manifests
*
* These can occur both in the Asset Manifest as well as the general
* Cloud Assembly manifest.
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export declare class EnvironmentPlaceholders {
/**
* Insert this into the destination fields to be replaced with the current region
*/
static readonly CURRENT_REGION = "${AWS::Region}";
/**
* Insert this into the destination fields to be replaced with the current account
*/
static readonly CURRENT_ACCOUNT = "${AWS::AccountId}";
/**
* Insert this into the destination fields to be replaced with the current partition
*/
static readonly CURRENT_PARTITION = "${AWS::Partition}";
/**
* Replace the environment placeholders in all strings found in a complex object.
*
* Duplicated between cdk-assets and aws-cdk CLI because we don't have a good single place to put it
* (they're nominally independent tools).
*/
static replace(object: any, values: EnvironmentPlaceholderValues): any;
/**
* Like 'replace', but asynchronous
*/
static replaceAsync(object: any, provider: IEnvironmentPlaceholderProvider): Promise<any>;
private static recurse;
}
/**
* Return the appropriate values for the environment placeholders
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface EnvironmentPlaceholderValues {
/**
* Return the region
*/
readonly region: string;
/**
* Return the account
*/
readonly accountId: string;
/**
* Return the partition
*/
readonly partition: string;
}
/**
* Return the appropriate values for the environment placeholders
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface IEnvironmentPlaceholderProvider {
/**
* Return the region
*/
region(): Promise<string>;
/**
* Return the account
*/
accountId(): Promise<string>;
/**
* Return the partition
*/
partition(): Promise<string>;
}
/**
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export declare class EnvironmentUtils {
static parse(environment: string): Environment;
/**
* Build an environment object from an account and region
*/
static make(account: string, region: string): Environment;
/**
* Format an environment string from an account and region
*/
static format(account: string, region: string): string;
}
/**
* Properties of a discovered SecurityGroup.
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface SecurityGroupContextResponse {
/**
* The security group's id.
*/
readonly securityGroupId: string;
/**
* Whether the security group allows all outbound traffic. This will be true
* when the security group has all-protocol egress permissions to access both
* `0.0.0.0/0` and `::/0`.
*/
readonly allowAllOutbound: boolean;
}
/**
* The type of subnet group.
* Same as SubnetType in the aws-cdk-lib/aws-ec2 package,
* but we can't use that because of cyclical dependencies.
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export declare enum VpcSubnetGroupType {
/** Public subnet group type. */
PUBLIC = "Public",
/** Private subnet group type. */
PRIVATE = "Private",
/** Isolated subnet group type. */
ISOLATED = "Isolated"
}
/**
* A subnet representation that the VPC provider uses.
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface VpcSubnet {
/** The identifier of the subnet. */
readonly subnetId: string;
/**
* The code of the availability zone this subnet is in
* (for example, 'us-west-2a').
*/
readonly availabilityZone: string;
/** The identifier of the route table for this subnet. */
readonly routeTableId: string;
/**
* CIDR range of the subnet
*
* @default - CIDR information not available
*/
readonly cidr?: string;
}
/**
* A group of subnets returned by the VPC provider.
* The included subnets do NOT have to be symmetric!
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface VpcSubnetGroup {
/**
* The name of the subnet group,
* determined by looking at the tags of of the subnets
* that belong to it.
*/
readonly name: string;
/** The type of the subnet group. */
readonly type: VpcSubnetGroupType;
/**
* The subnets that are part of this group.
* There is no condition that the subnets have to be symmetric
* in the group.
*/
readonly subnets: VpcSubnet[];
}
/**
* Properties of a discovered VPC
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface VpcContextResponse {
/**
* VPC id
*/
readonly vpcId: string;
/**
* VPC cidr
*
* @default - CIDR information not available
*/
readonly vpcCidrBlock?: string;
/**
* AZs
*/
readonly availabilityZones: string[];
/**
* IDs of all public subnets
*
* Element count: #(availabilityZones) · #(publicGroups)
*/
readonly publicSubnetIds?: string[];
/**
* Name of public subnet groups
*
* Element count: #(publicGroups)
*/
readonly publicSubnetNames?: string[];
/**
* Route Table IDs of public subnet groups.
*
* Element count: #(availabilityZones) · #(publicGroups)
*/
readonly publicSubnetRouteTableIds?: string[];
/**
* IDs of all private subnets
*
* Element count: #(availabilityZones) · #(privateGroups)
*/
readonly privateSubnetIds?: string[];
/**
* Name of private subnet groups
*
* Element count: #(privateGroups)
*/
readonly privateSubnetNames?: string[];
/**
* Route Table IDs of private subnet groups.
*
* Element count: #(availabilityZones) · #(privateGroups)
*/
readonly privateSubnetRouteTableIds?: string[];
/**
* IDs of all isolated subnets
*
* Element count: #(availabilityZones) · #(isolatedGroups)
*/
readonly isolatedSubnetIds?: string[];
/**
* Name of isolated subnet groups
*
* Element count: #(isolatedGroups)
*/
readonly isolatedSubnetNames?: string[];
/**
* Route Table IDs of isolated subnet groups.
*
* Element count: #(availabilityZones) · #(isolatedGroups)
*/
readonly isolatedSubnetRouteTableIds?: string[];
/**
* The VPN gateway ID
*/
readonly vpnGatewayId?: string;
/**
* The subnet groups discovered for the given VPC.
* Unlike the above properties, this will include asymmetric subnets,
* if the VPC has any.
* This property will only be populated if `VpcContextQuery.returnAsymmetricSubnets`
* is true.
*
* @default - no subnet groups will be returned unless `VpcContextQuery.returnAsymmetricSubnets` is true
*/
readonly subnetGroups?: VpcSubnetGroup[];
/**
* The region in which the VPC is in.
*
* @default - Region of the parent stack
*/
readonly region?: string;
/**
* The ID of the AWS account that owns the VPC.
*
* @default the account id of the parent stack
*/
readonly ownerAccountId?: string;
}
/**
* Load balancer ip address type.
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export declare enum LoadBalancerIpAddressType {
/**
* IPV4 ip address
*/
IPV4 = "ipv4",
/**
* Dual stack address
*/
DUAL_STACK = "dualstack",
/**
* IPv6 only public addresses, with private IPv4 and IPv6 addresses
*/
DUAL_STACK_WITHOUT_PUBLIC_IPV4 = "dualstack-without-public-ipv4"
}
/**
* Properties of a discovered load balancer
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface LoadBalancerContextResponse {
/**
* The ARN of the load balancer.
*/
readonly loadBalancerArn: string;
/**
* The hosted zone ID of the load balancer's name.
*/
readonly loadBalancerCanonicalHostedZoneId: string;
/**
* Load balancer's DNS name
*/
readonly loadBalancerDnsName: string;
/**
* Type of IP address
*/
readonly ipAddressType: LoadBalancerIpAddressType;
/**
* Load balancer's security groups
*/
readonly securityGroupIds: string[];
/**
* Load balancer's VPC
*/
readonly vpcId: string;
}
/**
* Properties of a discovered load balancer listener.
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface LoadBalancerListenerContextResponse {
/**
* The ARN of the listener.
*/
readonly listenerArn: string;
/**
* The port the listener is listening on.
*/
readonly listenerPort: number;
/**
* The security groups of the load balancer.
*/
readonly securityGroupIds: string[];
}
/**
* Properties of a discovered key
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface KeyContextResponse {
/**
* Id of the key
*/
readonly keyId: string;
}
/**
* Query to hosted zone context provider
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface EndpointServiceAvailabilityZonesContextQuery {
/**
* Query account
*/
readonly account?: string;
/**
* Query region
*/
readonly region?: string;
/**
* Query service name
*/
readonly serviceName?: string;
}
/**
* Artifact properties for CloudFormation stacks.
*
* @deprecated The definition of this type has moved to `@aws-cdk/cloud-assembly-api`.
*/
export interface AwsCloudFormationStackProperties {
/**
* A file relative to the assembly root which contains the CloudFormation template for this stack.
*/
readonly templateFile: string;
/**
* Values for CloudFormation stack parameters that should be passed when the stack is deployed.
*/
readonly parameters?: {
[id: string]: string;
};
/**
* The name to use for the CloudFormation stack.
* @default - name derived from artifact ID
*/
readonly stackName?: string;
/**
* Whether to enable termination protection for this stack.
*
* @default false
*/
readonly terminationProtection?: boolean;
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,18 @@
/**
* A CloudAssemblyError is thrown for issues with the synthesized CloudAssembly.
*
* These are typically exceptions that are unexpected for end-users,
* and should only occur during abnormal operation, e.g. when the synthesis
* didn't fully complete.
*
* @internal
*/
export declare class CloudAssemblyError extends Error {
#private;
/**
* The time the error was thrown.
*/
get time(): string;
get type(): 'assembly';
constructor(msg: string);
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CloudAssemblyError=void 0;const ASSEMBLY_ERROR_SYMBOL=Symbol.for("@aws-cdk/cx-api.CloudAssemblyError");class CloudAssemblyError extends Error{#time;get time(){return this.#time}get type(){return"assembly"}constructor(msg){super(msg),Object.setPrototypeOf(this,CloudAssemblyError.prototype),Object.defineProperty(this,ASSEMBLY_ERROR_SYMBOL,{value:!0}),this.name=new.target.name,this.#time=new Date().toISOString()}}exports.CloudAssemblyError=CloudAssemblyError;

View File

@@ -0,0 +1,91 @@
export declare enum FlagType {
/**
* Change the default behavior of the API
*
* The old behavior is still valid, and possible to achieve with source
* code changes, but we recommend the new behavior instead.
*
* Also valid for changes that don't affect CloudFormation, but the CXAPI
* contract.
*/
ApiDefault = 0,
/**
* Address a bug in a way that requires contract breaking or has availability implications for existing infrastructure
*
* The old behavior is not recommended, and shouldn't have been possible in the first place.
* We only have this flag because we can't roll out the fix to everyone
* automatically for fear of breakage.
*/
BugFix = 1,
/**
* Advertise the presence of this context option in `cdk.json`
*/
VisibleContext = 2,
/**
* Use this type for flags that are to be removed on a set date
*/
Temporary = 3
}
export interface FlagInfoBase {
/** Single-line description for the flag */
readonly summary: string;
/** Detailed description for the flag (Markdown) */
readonly detailsMd: string;
/**
* Version number the flag was introduced in each version line.
*
* `undefined` means flag is not configurable in that line; but if
* `unconfiguredBehavesLike` is set for that line, we will document the default
* behavior (even though it's not configurable).
*/
readonly introducedIn: {
v1?: string;
v2?: string;
};
/** What you would like new users to set this flag to (default in new projects) */
readonly recommendedValue: any;
/**
* If this flag is not set, the CLI library will behave as if the flag was set to <this>.
*
* If this flag is not set, we will assume you meant `false`, and the `recommendedValue` is `true`.
*
* This value is most useful for flags that allow opting out of undesirable behavior. To avoid having
* to word our flag name like `skipUndesirableBehavior` and people having to do boolean gymnastics in
* their head, we will name the flag `doUndesirableBehavior`, set
* `unconfiguredBehavesLike: true`, and `recommendedValue: false`.
*
* Again: the value you put here should describe whatever value gets us the
* legacy behavior, from before this flag was introduced.
*/
readonly unconfiguredBehavesLike?: {
v1?: any;
v2?: any;
};
}
/** Flag information, adding required fields if present */
export type FlagInfo = FlagInfoBase & ({
readonly type: FlagType.ApiDefault;
/** Describe how to use the API to achieve pre-flag behavior, if the flag is set (Markdown) */
readonly compatibilityWithOldBehaviorMd: string;
} | {
readonly type: FlagType.BugFix;
/** Describe how to deal with the change if the flag is set (Markdown) */
readonly compatibilityWithOldBehaviorMd?: string;
} | {
readonly type: FlagType.VisibleContext;
} | {
readonly type: FlagType.Temporary;
readonly compatibilityWithOldBehaviorMd?: string;
});
/**
* The magic value that will be substituted at version bump time with the actual
* new V2 version.
*
* Do not import this constant in the `features.ts` file, or the substitution
* process won't work.
*/
export declare const MAGIC_V2NEXT = "V2NEXT";
/**
* Compare two versions, returning -1, 0, or 1.
*/
export declare function compareVersions(a: string | undefined, b: string | undefined): number;

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAGIC_V2NEXT=exports.FlagType=void 0,exports.compareVersions=compareVersions;var FlagType;(function(FlagType2){FlagType2[FlagType2.ApiDefault=0]="ApiDefault",FlagType2[FlagType2.BugFix=1]="BugFix",FlagType2[FlagType2.VisibleContext=2]="VisibleContext",FlagType2[FlagType2.Temporary=3]="Temporary"})(FlagType||(exports.FlagType=FlagType={})),exports.MAGIC_V2NEXT="V2NEXT";function compareVersions(a,b){if(a===b)return 0;if(a===void 0)return-1;if(b===void 0)return 1;const as=a.split(".").map(x=>parseInt(x,10)),bs=b.split(".").map(x=>parseInt(x,10));if(a===exports.MAGIC_V2NEXT)return bs[0]<=2?1:-1;if(b===exports.MAGIC_V2NEXT)return as[0]<=2?-1:1;for(let i=0;i<Math.min(as.length,bs.length);i++){if(as[i]<bs[i])return-1;if(as[i]>bs[i])return 1}return as.length-bs.length}