Skip to content

Commit

Permalink
chore: update analytics metadata blueprints
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-cdk-automation committed Feb 5, 2025
1 parent b0dcd22 commit e1e17bf
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 86 deletions.
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-ecs/lib/ec2/ec2-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ export class Ec2Service extends BaseService implements IEc2Service {
*
* @override
*/
@MethodMetadata()
public attachToClassicLB(loadBalancer: elb.LoadBalancer): void {
if (this.availabilityZoneRebalancingEnabled) {
throw new Error('AvailabilityZoneRebalancing.ENABLED disallows using the service as a target of a Classic Load Balancer');
Expand Down
3 changes: 2 additions & 1 deletion packages/aws-cdk-lib/aws-ecs/lib/fargate/fargate-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Construct } from 'constructs';
import * as ec2 from '../../../aws-ec2';
import * as elb from '../../../aws-elasticloadbalancing';
import * as cdk from '../../../core';
import { addConstructMetadata } from '../../../core/lib/metadata-resource';
import { addConstructMetadata, MethodMetadata } from '../../../core/lib/metadata-resource';
import { AvailabilityZoneRebalancing } from '../availability-zone-rebalancing';
import { BaseService, BaseServiceOptions, DeploymentControllerType, IBaseService, IService, LaunchType } from '../base/base-service';
import { fromServiceAttributes, extractServiceNameFromArn } from '../base/from-service-attributes';
Expand Down Expand Up @@ -214,6 +214,7 @@ export class FargateService extends BaseService implements IFargateService {
*
* @override
*/
@MethodMetadata()
public attachToClassicLB(loadBalancer: elb.LoadBalancer): void {
if (this.availabilityZoneRebalancingEnabled) {
throw new Error('AvailabilityZoneRebalancing.ENABLED disallows using the service as a target of a Classic Load Balancer');
Expand Down
104 changes: 49 additions & 55 deletions packages/aws-cdk-lib/core/lib/analytics-data-source/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9025,27 +9025,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'node': '*'
},
'launchTemplateOverrides': {
'instanceRequirements': {
'acceleratorCount': {
'creationStack': '*',
'typeHint': 'ResolutionTypeHint'
},
'acceleratorManufacturers': '*',
'acceleratorNames': '*',
'acceleratorTypes': '*',
'allowedInstanceTypes': '*',
'bareMetal': '*',
'burstablePerformance': '*',
'cpuManufacturers': '*',
'excludedInstanceTypes': '*',
'instanceGenerations': '*',
'localStorage': '*',
'localStorageTypes': '*',
'maxSpotPriceAsPercentageOfOptimalOnDemandPrice': '*',
'onDemandMaxPricePercentageOverLowestPrice': '*',
'requireHibernateSupport': 'boolean',
'spotMaxPricePercentageOverLowestPrice': '*'
},
'instanceRequirements': '*',
'instanceType': '*',
'weightedCapacity': '*'
}
Expand Down Expand Up @@ -9484,10 +9464,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'logDriverConfig': {
'logDriver': '*',
'options': '*',
'secretOptions': {
'name': '*',
'valueFrom': '*'
}
'secretOptions': '*'
},
'readonlyRootFilesystem': 'boolean',
'secrets': '*',
Expand Down Expand Up @@ -10045,10 +10022,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'logDriverConfig': {
'logDriver': '*',
'options': '*',
'secretOptions': {
'name': '*',
'valueFrom': '*'
}
'secretOptions': '*'
},
'readonlyRootFilesystem': 'boolean',
'secrets': '*',
Expand Down Expand Up @@ -10865,15 +10839,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'allowedMethods': 'CloudFrontAllowedMethods',
'pathPattern': '*',
'cachedMethods': 'CloudFrontAllowedCachedMethods',
'forwardedValues': {
'cookies': {
'creationStack': '*',
'typeHint': 'ResolutionTypeHint'
},
'headers': '*',
'queryString': 'boolean',
'queryStringCacheKeys': '*'
},
'forwardedValues': '*',
'lambdaFunctionAssociations': {
'eventType': 'LambdaEdgeEventType',
'lambdaFunction': {
Expand Down Expand Up @@ -10939,12 +10905,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'includeCookies': 'boolean',
'prefix': '*'
},
'errorConfigurations': {
'errorCachingMinTtl': '*',
'errorCode': '*',
'responseCode': '*',
'responsePagePath': '*'
},
'errorConfigurations': '*',
'webACLId': '*',
'viewerCertificate': '*',
'geoRestriction': '*',
Expand Down Expand Up @@ -15976,12 +15937,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'node': '*'
}
},
'accessLoggingPolicy': {
'emitInterval': '*',
'enabled': 'boolean',
's3BucketName': '*',
's3BucketPrefix': '*'
},
'accessLoggingPolicy': '*',
'addListener': [
{
'externalPort': '*',
Expand Down Expand Up @@ -17061,6 +17017,31 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'removalPolicy': 'RemovalPolicy'
}
},
'aws-cdk-lib.aws-kinesisfirehose': {
'DeliveryStream': {
'destination': '*',
'deliveryStreamName': '*',
'source': '*',
'role': {
'roleArn': '*',
'roleName': '*',
'assumeRoleAction': '*',
'policyFragment': '*',
'principalAccount': '*',
'grantPrincipal': {
'assumeRoleAction': '*',
'principalAccount': '*'
},
'stack': '*',
'env': {
'account': '*',
'region': '*'
},
'node': '*'
},
'encryption': '*'
}
},
'aws-cdk-lib.aws-kms': {
'Alias': {
'aliasName': '*',
Expand Down Expand Up @@ -26887,6 +26868,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'placementConstraints': '*',
'placementStrategies': '*',
'daemon': 'boolean',
'availabilityZoneRebalancing': 'AvailabilityZoneRebalancing',
'cluster': {
'clusterName': '*',
'clusterArn': '*',
Expand Down Expand Up @@ -27047,6 +27029,9 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
],
'addPlacementConstraints': [
'*'
],
'attachToClassicLB': [
'*'
]
},
'Ec2TaskDefinition': {
Expand Down Expand Up @@ -27135,6 +27120,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'uniqueId': '*',
'connections': '*'
},
'daemon': 'boolean',
'cluster': {
'clusterName': '*',
'clusterArn': '*',
Expand Down Expand Up @@ -27494,6 +27480,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'connections': '*'
},
'platformVersion': 'FargatePlatformVersion',
'availabilityZoneRebalancing': 'AvailabilityZoneRebalancing',
'cluster': {
'clusterName': '*',
'clusterArn': '*',
Expand Down Expand Up @@ -27648,7 +27635,10 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'logDriver': '*'
},
'taskDefinitionRevision': '*',
'volumeConfigurations': '*'
'volumeConfigurations': '*',
'attachToClassicLB': [
'*'
]
},
'FargateTaskDefinition': {
'cpu': '*',
Expand Down Expand Up @@ -27784,7 +27774,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
},
'node': '*'
},
'ignoreClientCertificateExpiry': 'boolean'
'ignoreClientCertificateExpiry': 'boolean',
'advertiseTrustStoreCaNames': 'boolean'
},
'addCertificateArns': [
'*',
Expand Down Expand Up @@ -28020,7 +28011,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'region': '*'
}
},
'ignoreClientCertificateExpiry': 'boolean'
'ignoreClientCertificateExpiry': 'boolean',
'advertiseTrustStoreCaNames': 'boolean'
}
}
],
Expand Down Expand Up @@ -28506,7 +28498,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'region': '*'
}
},
'ignoreClientCertificateExpiry': 'boolean'
'ignoreClientCertificateExpiry': 'boolean',
'advertiseTrustStoreCaNames': 'boolean'
}
}
]
Expand Down Expand Up @@ -28549,7 +28542,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
'region': '*'
}
},
'ignoreClientCertificateExpiry': 'boolean'
'ignoreClientCertificateExpiry': 'boolean',
'advertiseTrustStoreCaNames': 'boolean'
}
}
]
Expand Down
64 changes: 34 additions & 30 deletions packages/aws-cdk-lib/core/lib/analytics-data-source/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,20 +555,6 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
0,
1
],
'SynthesisMessageLevel': [
'info',
'warning',
'error'
],
'Partition': [
'aws',
'aws-cn',
'aws-us-gov',
'aws-iso',
'aws-iso-b',
'aws-iso-f',
'aws-iso-e'
],
'AccessScopeType': [
'namespace',
'cluster'
Expand Down Expand Up @@ -2567,6 +2553,10 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
'aws-ecs-2',
'aws-ecs-2-nvidia'
],
'AvailabilityZoneRebalancing': [
'ENABLED',
'DISABLED'
],
'ContainerInsights': [
'enabled',
'disabled',
Expand Down Expand Up @@ -3449,11 +3439,25 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
'number',
'string-list'
],
'SynthesisMessageLevel': [
'info',
'warning',
'error'
],
'DockerCredentialUsage': [
'SYNTH',
'SELF_UPDATE',
'ASSET_PUBLISHING'
],
'Partition': [
'aws',
'aws-cn',
'aws-us-gov',
'aws-iso',
'aws-iso-b',
'aws-iso-f',
'aws-iso-e'
],
'InvocationType': [
'RequestResponse',
'Event',
Expand Down Expand Up @@ -3487,22 +3491,6 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
'CustomResourceProvider',
'NoOp'
],
'LoadBalancerIpAddressType': [
'ipv4',
'dualstack',
'dualstack-without-public-ipv4'
],
'VpcSubnetGroupType': [
'Public',
'Private',
'Isolated'
],
'FlagType': [
0,
1,
2,
3
],
'DiagnosticReason': [
'NO_SNAPSHOT',
'TEST_FAILED',
Expand Down Expand Up @@ -4001,6 +3989,22 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
'success',
'failure'
],
'LoadBalancerIpAddressType': [
'ipv4',
'dualstack',
'dualstack-without-public-ipv4'
],
'VpcSubnetGroupType': [
'Public',
'Private',
'Isolated'
],
'FlagType': [
0,
1,
2,
3
],
'AssetType': [
'file',
'docker-image'
Expand Down

0 comments on commit e1e17bf

Please sign in to comment.