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

View File

@@ -0,0 +1,59 @@
import type { Construct } from 'constructs';
import type { CfnVirtualNode } from '../appmesh.generated';
import type { GrpcGatewayRouteMatch } from '../gateway-route-spec';
import type { HeaderMatch } from '../header-match';
import type { ListenerTlsOptions } from '../listener-tls-options';
import type { QueryParameterMatch } from '../query-parameter-match';
import type { GrpcRouteMatch } from '../route-spec';
import type { TlsClientPolicy } from '../tls-client-policy';
/**
* Generated Connection pool config
*/
export interface ConnectionPoolConfig {
/**
* The maximum connections in the pool
*
* @default - none
*/
readonly maxConnections?: number;
/**
* The maximum pending requests in the pool
*
* @default - none
*/
readonly maxPendingRequests?: number;
/**
* The maximum requests in the pool
*
* @default - none
*/
readonly maxRequests?: number;
}
/**
* This is the helper method to render TLS property of client policy.
*/
export declare function renderTlsClientPolicy(scope: Construct, tlsClientPolicy: TlsClientPolicy | undefined): CfnVirtualNode.ClientPolicyTlsProperty | undefined;
/**
* This is the helper method to render the TLS config for a listener.
*/
export declare function renderListenerTlsOptions(scope: Construct, listenerTls: ListenerTlsOptions | undefined): CfnVirtualNode.ListenerTlsProperty | undefined;
/**
* This is the helper method to populate mesh owner when it is a shared mesh scenario
*/
export declare function renderMeshOwner(resourceAccount: string, meshAccount: string): string | undefined;
/**
* This is the helper method to validate the length of HTTP match array when it is specified.
*/
export declare function validateHttpMatchArrayLength(scope: Construct, headers?: HeaderMatch[], queryParameters?: QueryParameterMatch[]): void;
/**
* This is the helper method to validate the length of gRPC match array when it is specified.
*/
export declare function validateGrpcMatchArrayLength(scope: Construct, metadata?: HeaderMatch[]): void;
/**
* This is the helper method to validate at least one of gRPC route match type is defined.
*/
export declare function validateGrpcRouteMatch(scope: Construct, match: GrpcRouteMatch): void;
/**
* This is the helper method to validate at least one of gRPC gateway route match type is defined.
*/
export declare function validateGrpcGatewayRouteMatch(scope: Construct, match: GrpcGatewayRouteMatch): void;

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.renderTlsClientPolicy=renderTlsClientPolicy,exports.renderListenerTlsOptions=renderListenerTlsOptions,exports.renderMeshOwner=renderMeshOwner,exports.validateHttpMatchArrayLength=validateHttpMatchArrayLength,exports.validateGrpcMatchArrayLength=validateGrpcMatchArrayLength,exports.validateGrpcRouteMatch=validateGrpcRouteMatch,exports.validateGrpcGatewayRouteMatch=validateGrpcGatewayRouteMatch;var core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp};function renderTlsClientPolicy(scope,tlsClientPolicy){const certificate=tlsClientPolicy?.mutualTlsCertificate?.bind(scope).tlsCertificate,sans=tlsClientPolicy?.validation.subjectAlternativeNames;return tlsClientPolicy?{certificate,ports:tlsClientPolicy.ports,enforce:tlsClientPolicy.enforce,validation:{subjectAlternativeNames:sans?{match:sans.bind(scope).subjectAlternativeNamesMatch}:void 0,trust:tlsClientPolicy.validation.trust.bind(scope).tlsValidationTrust}}:void 0}function renderListenerTlsOptions(scope,listenerTls){const tlsValidation=listenerTls?.mutualTlsValidation;return listenerTls?{certificate:listenerTls.certificate.bind(scope).tlsCertificate,mode:listenerTls.mode,validation:tlsValidation?{subjectAlternativeNames:tlsValidation.subjectAlternativeNames?{match:tlsValidation.subjectAlternativeNames.bind(scope).subjectAlternativeNamesMatch}:void 0,trust:tlsValidation.trust.bind(scope).tlsValidationTrust}:void 0}:void 0}function renderMeshOwner(resourceAccount,meshAccount){const comparison=core_1().Token.compareStrings(resourceAccount,meshAccount);return comparison===core_1().TokenComparison.DIFFERENT||comparison===core_1().TokenComparison.ONE_UNRESOLVED?meshAccount:void 0}function validateHttpMatchArrayLength(scope,headers,queryParameters){if(headers&&(headers.length<1||headers.length>10))throw new(core_1()).ValidationError((0,literal_string_1().lit)`HeaderCountOutOfRange`,`Number of headers provided for matching must be between 1 and 10, got: ${headers.length}`,scope);if(queryParameters&&(queryParameters.length<1||queryParameters.length>10))throw new(core_1()).ValidationError((0,literal_string_1().lit)`QueryParameterCountOutOfRange`,`Number of query parameters provided for matching must be between 1 and 10, got: ${queryParameters.length}`,scope)}function validateGrpcMatchArrayLength(scope,metadata){if(metadata&&(metadata.length<1||metadata.length>10))throw new(core_1()).ValidationError((0,literal_string_1().lit)`MetadataCountOutOfRange`,`Number of metadata provided for matching must be between 1 and 10, got: ${metadata.length}`,scope)}function validateGrpcRouteMatch(scope,match){if(match.serviceName===void 0&&match.metadata===void 0&&match.methodName===void 0&&match.port===void 0)throw new(core_1()).ValidationError((0,literal_string_1().lit)`GrpcRouteMatchRequired`,"At least one gRPC route match property must be provided",scope)}function validateGrpcGatewayRouteMatch(scope,match){if(match.serviceName===void 0&&match.metadata===void 0&&match.hostname===void 0&&match.port===void 0)throw new(core_1()).ValidationError((0,literal_string_1().lit)`GrpcGatewayRouteMatchRequired`,"At least one gRPC gateway route match property beside rewriteRequestHostname must be provided",scope)}