@go-to-k/cdkd 0.197.0 → 0.198.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-DWUnLza1.js";
|
|
3
|
-
import { $ as uploadCfnTemplate, A as S3StateBackend, At as PATTERN_B_NAME_PROPERTIES, B as Synthesizer, C as assertRegionMatch, Ct as normalizeAwsError, D as DagBuilder, E as DiffCalculator, Et as getLogger, F as buildDockerImage, Ft as withStackName, G as resolveSkipPrefix, H as getLegacyStateBucketName, I as formatDockerLoginError, J as warnDeprecatedNoPrefixCliFlag, K as resolveStateBucketWithDefault, L as getDockerCmd, M as AssetPublisher, Mt as generateResourceName, N as stringifyValue, Nt as generateResourceNameWithFallback, O as TemplateParser, Ot as runStackBuffered, P as WorkGraph, Pt as withSkipPrefix, Q as findLargeInlineResources, R as runDockerForeground, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveApp, V as getDefaultStateBucketName, W as resolveCaptureObservedState, X as CFN_TEMPLATE_URL_LIMIT, Y as CFN_TEMPLATE_BODY_LIMIT, Z as MIGRATE_TMP_PREFIX, _ as matchesCdkPath, _t as StackHasActiveImportsError, a as withRetry, b as ProviderRegistry, c as bold, ct as LocalMigrateError, d as green, dt as MissingCdkCliError, et as AssemblyReader, f as red, ft as NestedStackChildDirectDestroyError, g as CDK_PATH_TAG, gt as ResourceUpdateNotSupportedError, h as collectInlinePolicyNamesManagedBySiblings, ht as ResourceTimeoutError, i as withResourceDeadline, it as CdkdError, j as shouldRetainResource, jt as PATTERN_B_RESOURCE_TYPES, k as LockManager, kt as getLiveRenderer, l as cyan, lt as LocalStartServiceError, m as IAMRoleProvider, mt as ProvisioningError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as resolveBucketRegion, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as PartialFailureError, q as resolveStateBucketWithDefaultAndSource, r as DeployEngine, s as formatResourceLine, st as LocalInvokeBuildError$1, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, v as normalizeAwsTagsToCfn, vt as StackTerminationProtectionError, w as IntrinsicFunctionResolver, wt as withErrorHandling, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, z as runDockerStreaming } from "./deploy-engine-
|
|
3
|
+
import { $ as uploadCfnTemplate, A as S3StateBackend, At as PATTERN_B_NAME_PROPERTIES, B as Synthesizer, C as assertRegionMatch, Ct as normalizeAwsError, D as DagBuilder, E as DiffCalculator, Et as getLogger, F as buildDockerImage, Ft as withStackName, G as resolveSkipPrefix, H as getLegacyStateBucketName, I as formatDockerLoginError, J as warnDeprecatedNoPrefixCliFlag, K as resolveStateBucketWithDefault, L as getDockerCmd, M as AssetPublisher, Mt as generateResourceName, N as stringifyValue, Nt as generateResourceNameWithFallback, O as TemplateParser, Ot as runStackBuffered, P as WorkGraph, Pt as withSkipPrefix, Q as findLargeInlineResources, R as runDockerForeground, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveApp, V as getDefaultStateBucketName, W as resolveCaptureObservedState, X as CFN_TEMPLATE_URL_LIMIT, Y as CFN_TEMPLATE_BODY_LIMIT, Z as MIGRATE_TMP_PREFIX, _ as matchesCdkPath, _t as StackHasActiveImportsError, a as withRetry, b as ProviderRegistry, c as bold, ct as LocalMigrateError, d as green, dt as MissingCdkCliError, et as AssemblyReader, f as red, ft as NestedStackChildDirectDestroyError, g as CDK_PATH_TAG, gt as ResourceUpdateNotSupportedError, h as collectInlinePolicyNamesManagedBySiblings, ht as ResourceTimeoutError, i as withResourceDeadline, it as CdkdError, j as shouldRetainResource, jt as PATTERN_B_RESOURCE_TYPES, k as LockManager, kt as getLiveRenderer, l as cyan, lt as LocalStartServiceError, m as IAMRoleProvider, mt as ProvisioningError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as resolveBucketRegion, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as PartialFailureError, q as resolveStateBucketWithDefaultAndSource, r as DeployEngine, s as formatResourceLine, st as LocalInvokeBuildError$1, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, v as normalizeAwsTagsToCfn, vt as StackTerminationProtectionError, w as IntrinsicFunctionResolver, wt as withErrorHandling, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, z as runDockerStreaming } from "./deploy-engine-B3Xc-bxB.js";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
6
6
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListDirectoryBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -16,9 +16,9 @@ import { APIGatewayClient, CreateAuthorizerCommand, CreateDeploymentCommand, Cre
|
|
|
16
16
|
import { CreateEventBusCommand, DeleteEventBusCommand, DeleteRuleCommand, DescribeEventBusCommand, DescribeRuleCommand, EventBridgeClient, ListEventBusesCommand, ListRulesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$1, ListTargetsByRuleCommand, PutRuleCommand, PutTargetsCommand, RemoveTargetsCommand, ResourceNotFoundException as ResourceNotFoundException$2, TagResourceCommand as TagResourceCommand$4, UntagResourceCommand as UntagResourceCommand$4, UpdateEventBusCommand } from "@aws-sdk/client-eventbridge";
|
|
17
17
|
import { CreateSecretCommand, DeleteSecretCommand, DescribeSecretCommand, GetSecretValueCommand, ListSecretsCommand, RemoveRegionsFromReplicationCommand, ReplicateSecretToRegionsCommand, ResourceNotFoundException as ResourceNotFoundException$3, SecretsManagerClient, TagResourceCommand as TagResourceCommand$5, UntagResourceCommand as UntagResourceCommand$5, UpdateSecretCommand } from "@aws-sdk/client-secrets-manager";
|
|
18
18
|
import { AddTagsToResourceCommand, DeleteParameterCommand, DescribeParametersCommand, GetParameterCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$2, ParameterNotFound, PutParameterCommand, RemoveTagsFromResourceCommand, SSMClient } from "@aws-sdk/client-ssm";
|
|
19
|
-
import { CloudFrontClient, CreateCloudFrontOriginAccessIdentityCommand, CreateDistributionCommand, DeleteCloudFrontOriginAccessIdentityCommand, DeleteDistributionCommand, GetCloudFrontOriginAccessIdentityCommand, GetDistributionCommand, GetDistributionConfigCommand, ListDistributionsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$3, NoSuchCloudFrontOriginAccessIdentity, NoSuchDistribution, UpdateCloudFrontOriginAccessIdentityCommand, UpdateDistributionCommand } from "@aws-sdk/client-cloudfront";
|
|
20
|
-
import { CloudWatchClient, DeleteAlarmsCommand, DescribeAlarmsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$4, PutMetricAlarmCommand, TagResourceCommand as TagResourceCommand$
|
|
21
|
-
import { CloudWatchLogsClient, CreateLogGroupCommand, DeleteDataProtectionPolicyCommand, DeleteIndexPolicyCommand, DeleteLogGroupCommand, DeleteRetentionPolicyCommand, DescribeIndexPoliciesCommand, DescribeLogGroupsCommand, GetDataProtectionPolicyCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$5, PutBearerTokenAuthenticationCommand, PutDataProtectionPolicyCommand, PutIndexPolicyCommand, PutLogGroupDeletionProtectionCommand, PutRetentionPolicyCommand, ResourceAlreadyExistsException, ResourceNotFoundException as ResourceNotFoundException$4, TagResourceCommand as TagResourceCommand$
|
|
19
|
+
import { CloudFrontClient, CreateCloudFrontOriginAccessIdentityCommand, CreateDistributionCommand, CreateDistributionWithTagsCommand, DeleteCloudFrontOriginAccessIdentityCommand, DeleteDistributionCommand, GetCloudFrontOriginAccessIdentityCommand, GetDistributionCommand, GetDistributionConfigCommand, ListDistributionsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$3, NoSuchCloudFrontOriginAccessIdentity, NoSuchDistribution, TagResourceCommand as TagResourceCommand$6, UntagResourceCommand as UntagResourceCommand$6, UpdateCloudFrontOriginAccessIdentityCommand, UpdateDistributionCommand } from "@aws-sdk/client-cloudfront";
|
|
20
|
+
import { CloudWatchClient, DeleteAlarmsCommand, DescribeAlarmsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$4, PutMetricAlarmCommand, TagResourceCommand as TagResourceCommand$7, UntagResourceCommand as UntagResourceCommand$7 } from "@aws-sdk/client-cloudwatch";
|
|
21
|
+
import { CloudWatchLogsClient, CreateLogGroupCommand, DeleteDataProtectionPolicyCommand, DeleteIndexPolicyCommand, DeleteLogGroupCommand, DeleteRetentionPolicyCommand, DescribeIndexPoliciesCommand, DescribeLogGroupsCommand, GetDataProtectionPolicyCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$5, PutBearerTokenAuthenticationCommand, PutDataProtectionPolicyCommand, PutIndexPolicyCommand, PutLogGroupDeletionProtectionCommand, PutRetentionPolicyCommand, ResourceAlreadyExistsException, ResourceNotFoundException as ResourceNotFoundException$4, TagResourceCommand as TagResourceCommand$8, UntagResourceCommand as UntagResourceCommand$8 } from "@aws-sdk/client-cloudwatch-logs";
|
|
22
22
|
import { BedrockAgentCoreControlClient, CreateAgentRuntimeCommand, DeleteAgentRuntimeCommand, GetAgentRuntimeCommand, ResourceNotFoundException as ResourceNotFoundException$5, UpdateAgentRuntimeCommand } from "@aws-sdk/client-bedrock-agentcore-control";
|
|
23
23
|
import { ACMClient, AddTagsToCertificateCommand, DeleteCertificateCommand, DescribeCertificateCommand, ListCertificatesCommand, ListTagsForCertificateCommand, RemoveTagsFromCertificateCommand, RequestCertificateCommand, ResourceNotFoundException as ResourceNotFoundException$6, UpdateCertificateOptionsCommand } from "@aws-sdk/client-acm";
|
|
24
24
|
import * as fs from "node:fs";
|
|
@@ -29,8 +29,8 @@ import { execFile, spawn } from "node:child_process";
|
|
|
29
29
|
import { tmpdir } from "node:os";
|
|
30
30
|
import { AssociateVPCWithHostedZoneCommand, ChangeResourceRecordSetsCommand, ChangeTagsForResourceCommand, CreateHostedZoneCommand, CreateQueryLoggingConfigCommand, DeleteHostedZoneCommand, DeleteQueryLoggingConfigCommand, DisassociateVPCFromHostedZoneCommand, GetHostedZoneCommand, ListHostedZonesByNameCommand, ListHostedZonesCommand, ListQueryLoggingConfigsCommand, ListResourceRecordSetsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$6, Route53Client, UpdateHostedZoneCommentCommand, UpdateHostedZoneFeaturesCommand } from "@aws-sdk/client-route-53";
|
|
31
31
|
import { AddTagsCommand, CreateListenerCommand, CreateLoadBalancerCommand, CreateTargetGroupCommand, DeleteListenerCommand, DeleteLoadBalancerCommand, DeleteTargetGroupCommand, DescribeListenersCommand, DescribeLoadBalancerAttributesCommand, DescribeLoadBalancersCommand, DescribeTagsCommand, DescribeTargetGroupsCommand, ElasticLoadBalancingV2Client, ModifyListenerCommand, ModifyLoadBalancerAttributesCommand, ModifyTargetGroupCommand, RemoveTagsCommand, SetIpAddressTypeCommand, SetSecurityGroupsCommand, SetSubnetsCommand } from "@aws-sdk/client-elastic-load-balancing-v2";
|
|
32
|
-
import { CreateAliasCommand, CreateKeyCommand, DeleteAliasCommand, DescribeKeyCommand, DisableKeyCommand, DisableKeyRotationCommand, EnableKeyCommand, EnableKeyRotationCommand, GetKeyPolicyCommand, GetKeyRotationStatusCommand, KMSClient, ListAliasesCommand, ListKeysCommand, ListResourceTagsCommand, NotFoundException as NotFoundException$2, PutKeyPolicyCommand, ScheduleKeyDeletionCommand, TagResourceCommand as TagResourceCommand$
|
|
33
|
-
import { CreateRepositoryCommand, DeleteLifecyclePolicyCommand, DeleteRepositoryCommand, DeleteRepositoryPolicyCommand, DescribeRepositoriesCommand, ECRClient, GetAuthorizationTokenCommand, GetLifecyclePolicyCommand, LifecyclePolicyNotFoundException, ListTagsForResourceCommand as ListTagsForResourceCommand$7, PutImageScanningConfigurationCommand, PutImageTagMutabilityCommand, PutLifecyclePolicyCommand, RepositoryNotFoundException, SetRepositoryPolicyCommand, TagResourceCommand as TagResourceCommand$
|
|
32
|
+
import { CreateAliasCommand, CreateKeyCommand, DeleteAliasCommand, DescribeKeyCommand, DisableKeyCommand, DisableKeyRotationCommand, EnableKeyCommand, EnableKeyRotationCommand, GetKeyPolicyCommand, GetKeyRotationStatusCommand, KMSClient, ListAliasesCommand, ListKeysCommand, ListResourceTagsCommand, NotFoundException as NotFoundException$2, PutKeyPolicyCommand, ScheduleKeyDeletionCommand, TagResourceCommand as TagResourceCommand$9, UntagResourceCommand as UntagResourceCommand$9, UpdateAliasCommand, UpdateKeyDescriptionCommand } from "@aws-sdk/client-kms";
|
|
33
|
+
import { CreateRepositoryCommand, DeleteLifecyclePolicyCommand, DeleteRepositoryCommand, DeleteRepositoryPolicyCommand, DescribeRepositoriesCommand, ECRClient, GetAuthorizationTokenCommand, GetLifecyclePolicyCommand, LifecyclePolicyNotFoundException, ListTagsForResourceCommand as ListTagsForResourceCommand$7, PutImageScanningConfigurationCommand, PutImageTagMutabilityCommand, PutLifecyclePolicyCommand, RepositoryNotFoundException, SetRepositoryPolicyCommand, TagResourceCommand as TagResourceCommand$10 } from "@aws-sdk/client-ecr";
|
|
34
34
|
import graphlib from "graphlib";
|
|
35
35
|
import { AddTagsToResourceCommand as AddTagsToResourceCommand$1, CreateDBClusterCommand, CreateDBInstanceCommand, CreateDBProxyCommand, CreateDBProxyEndpointCommand, CreateDBSubnetGroupCommand, DBProxyEndpointNotFoundFault, DBProxyNotFoundFault, DBProxyTargetGroupNotFoundFault, DBProxyTargetNotFoundFault, DeleteDBClusterCommand, DeleteDBInstanceCommand, DeleteDBProxyCommand, DeleteDBProxyEndpointCommand, DeleteDBSubnetGroupCommand, DeregisterDBProxyTargetsCommand, DescribeDBClustersCommand, DescribeDBInstancesCommand, DescribeDBProxiesCommand, DescribeDBProxyEndpointsCommand, DescribeDBProxyTargetGroupsCommand, DescribeDBProxyTargetsCommand, DescribeDBSubnetGroupsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$8, ModifyDBClusterCommand, ModifyDBInstanceCommand, ModifyDBProxyCommand, ModifyDBProxyEndpointCommand, ModifyDBProxyTargetGroupCommand, ModifyDBSubnetGroupCommand, RDSClient, RegisterDBProxyTargetsCommand, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$1 } from "@aws-sdk/client-rds";
|
|
36
36
|
import { Command, Option } from "commander";
|
|
@@ -41,18 +41,18 @@ import readline from "node:readline/promises";
|
|
|
41
41
|
import * as zlib from "node:zlib";
|
|
42
42
|
import { ApplicationAutoScalingClient, DeleteScalingPolicyCommand, DeregisterScalableTargetCommand, DescribeScalableTargetsCommand, DescribeScalingPoliciesCommand, PutScalingPolicyCommand, RegisterScalableTargetCommand } from "@aws-sdk/client-application-auto-scaling";
|
|
43
43
|
import { ApiGatewayV2Client, CreateApiCommand, CreateAuthorizerCommand as CreateAuthorizerCommand$1, CreateIntegrationCommand, CreateRouteCommand as CreateRouteCommand$1, CreateStageCommand as CreateStageCommand$1, DeleteApiCommand, DeleteAuthorizerCommand as DeleteAuthorizerCommand$1, DeleteIntegrationCommand, DeleteRouteCommand as DeleteRouteCommand$1, DeleteStageCommand as DeleteStageCommand$1, GetApiCommand, GetApisCommand, GetAuthorizerCommand as GetAuthorizerCommand$1, GetIntegrationCommand, GetRouteCommand, GetStageCommand as GetStageCommand$1, NotFoundException as NotFoundException$3, UpdateApiCommand, UpdateAuthorizerCommand as UpdateAuthorizerCommand$1, UpdateIntegrationCommand, UpdateRouteCommand, UpdateStageCommand as UpdateStageCommand$1 } from "@aws-sdk/client-apigatewayv2";
|
|
44
|
-
import { CreateStateMachineCommand, DeleteStateMachineCommand, DescribeStateMachineCommand, ListStateMachinesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$9, SFNClient, StateMachineDoesNotExist, TagResourceCommand as TagResourceCommand$
|
|
45
|
-
import { CreateClusterCommand, CreateServiceCommand, DeleteClusterCommand, DeleteServiceCommand, DeregisterTaskDefinitionCommand, DescribeClustersCommand, DescribeServicesCommand, DescribeTaskDefinitionCommand, ECSClient, ListClustersCommand, ListServicesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$10, PutClusterCapacityProvidersCommand, RegisterTaskDefinitionCommand, TagResourceCommand as TagResourceCommand$
|
|
44
|
+
import { CreateStateMachineCommand, DeleteStateMachineCommand, DescribeStateMachineCommand, ListStateMachinesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$9, SFNClient, StateMachineDoesNotExist, TagResourceCommand as TagResourceCommand$11, UntagResourceCommand as UntagResourceCommand$10, UpdateStateMachineCommand } from "@aws-sdk/client-sfn";
|
|
45
|
+
import { CreateClusterCommand, CreateServiceCommand, DeleteClusterCommand, DeleteServiceCommand, DeregisterTaskDefinitionCommand, DescribeClustersCommand, DescribeServicesCommand, DescribeTaskDefinitionCommand, ECSClient, ListClustersCommand, ListServicesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$10, PutClusterCapacityProvidersCommand, RegisterTaskDefinitionCommand, TagResourceCommand as TagResourceCommand$12, UntagResourceCommand as UntagResourceCommand$11, UpdateClusterCommand, UpdateServiceCommand } from "@aws-sdk/client-ecs";
|
|
46
46
|
import { AddTagsToResourceCommand as AddTagsToResourceCommand$2, CreateDBClusterCommand as CreateDBClusterCommand$1, CreateDBInstanceCommand as CreateDBInstanceCommand$1, CreateDBSubnetGroupCommand as CreateDBSubnetGroupCommand$1, DeleteDBClusterCommand as DeleteDBClusterCommand$1, DeleteDBInstanceCommand as DeleteDBInstanceCommand$1, DeleteDBSubnetGroupCommand as DeleteDBSubnetGroupCommand$1, DescribeDBClustersCommand as DescribeDBClustersCommand$1, DescribeDBInstancesCommand as DescribeDBInstancesCommand$1, DescribeDBSubnetGroupsCommand as DescribeDBSubnetGroupsCommand$1, DocDBClient, ListTagsForResourceCommand as ListTagsForResourceCommand$11, ModifyDBClusterCommand as ModifyDBClusterCommand$1, ModifyDBInstanceCommand as ModifyDBInstanceCommand$1, ModifyDBSubnetGroupCommand as ModifyDBSubnetGroupCommand$1, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$2 } from "@aws-sdk/client-docdb";
|
|
47
47
|
import { AddTagsToResourceCommand as AddTagsToResourceCommand$3, CreateDBClusterCommand as CreateDBClusterCommand$2, CreateDBInstanceCommand as CreateDBInstanceCommand$2, CreateDBSubnetGroupCommand as CreateDBSubnetGroupCommand$2, DeleteDBClusterCommand as DeleteDBClusterCommand$2, DeleteDBInstanceCommand as DeleteDBInstanceCommand$2, DeleteDBSubnetGroupCommand as DeleteDBSubnetGroupCommand$2, DescribeDBClustersCommand as DescribeDBClustersCommand$2, DescribeDBInstancesCommand as DescribeDBInstancesCommand$2, DescribeDBSubnetGroupsCommand as DescribeDBSubnetGroupsCommand$2, ListTagsForResourceCommand as ListTagsForResourceCommand$12, ModifyDBClusterCommand as ModifyDBClusterCommand$2, ModifyDBInstanceCommand as ModifyDBInstanceCommand$2, ModifyDBSubnetGroupCommand as ModifyDBSubnetGroupCommand$2, NeptuneClient, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$3 } from "@aws-sdk/client-neptune";
|
|
48
|
-
import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$13, ListWebACLsCommand, TagResourceCommand as TagResourceCommand$
|
|
48
|
+
import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$13, ListWebACLsCommand, TagResourceCommand as TagResourceCommand$13, UntagResourceCommand as UntagResourceCommand$12, UpdateWebACLCommand, WAFNonexistentItemException, WAFV2Client } from "@aws-sdk/client-wafv2";
|
|
49
49
|
import { CognitoIdentityProviderClient, CreateUserPoolCommand, DeleteUserPoolCommand, DescribeUserPoolCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$14, ListUserPoolsCommand, ResourceNotFoundException as ResourceNotFoundException$7, UpdateUserPoolCommand } from "@aws-sdk/client-cognito-identity-provider";
|
|
50
50
|
import { AddTagsToResourceCommand as AddTagsToResourceCommand$4, CreateCacheClusterCommand, CreateCacheSubnetGroupCommand, DeleteCacheClusterCommand, DeleteCacheSubnetGroupCommand, DescribeCacheClustersCommand, DescribeCacheSubnetGroupsCommand, ElastiCacheClient, ListTagsForResourceCommand as ListTagsForResourceCommand$15, ModifyCacheClusterCommand, ModifyCacheSubnetGroupCommand, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$4 } from "@aws-sdk/client-elasticache";
|
|
51
51
|
import { CreatePrivateDnsNamespaceCommand, CreateServiceCommand as CreateServiceCommand$1, DeleteNamespaceCommand, DeleteServiceCommand as DeleteServiceCommand$1, GetNamespaceCommand, GetOperationCommand, GetServiceCommand, ListNamespacesCommand, ListServicesCommand as ListServicesCommand$1, ListTagsForResourceCommand as ListTagsForResourceCommand$16, NamespaceNotFound, ServiceDiscoveryClient, ServiceNotFound, UpdatePrivateDnsNamespaceCommand, UpdateServiceCommand as UpdateServiceCommand$1 } from "@aws-sdk/client-servicediscovery";
|
|
52
|
-
import { AppSyncClient, CreateApiKeyCommand, CreateDataSourceCommand, CreateGraphqlApiCommand, CreateResolverCommand, DeleteApiKeyCommand, DeleteDataSourceCommand, DeleteGraphqlApiCommand, DeleteResolverCommand, GetDataSourceCommand, GetGraphqlApiCommand, GetIntrospectionSchemaCommand, GetResolverCommand, ListApiKeysCommand, ListGraphqlApisCommand, NotFoundException as NotFoundException$4, StartSchemaCreationCommand, TagResourceCommand as TagResourceCommand$
|
|
52
|
+
import { AppSyncClient, CreateApiKeyCommand, CreateDataSourceCommand, CreateGraphqlApiCommand, CreateResolverCommand, DeleteApiKeyCommand, DeleteDataSourceCommand, DeleteGraphqlApiCommand, DeleteResolverCommand, GetDataSourceCommand, GetGraphqlApiCommand, GetIntrospectionSchemaCommand, GetResolverCommand, ListApiKeysCommand, ListGraphqlApisCommand, NotFoundException as NotFoundException$4, StartSchemaCreationCommand, TagResourceCommand as TagResourceCommand$14, UntagResourceCommand as UntagResourceCommand$13, UpdateApiKeyCommand, UpdateDataSourceCommand, UpdateGraphqlApiCommand, UpdateResolverCommand } from "@aws-sdk/client-appsync";
|
|
53
53
|
import { parse, print } from "graphql";
|
|
54
54
|
import { CreateConnectionCommand, CreateCrawlerCommand, CreateDatabaseCommand, CreateJobCommand, CreateSecurityConfigurationCommand, CreateTableCommand as CreateTableCommand$1, CreateTriggerCommand, CreateWorkflowCommand, DeleteConnectionCommand, DeleteCrawlerCommand, DeleteDatabaseCommand, DeleteJobCommand, DeleteSecurityConfigurationCommand, DeleteTableCommand as DeleteTableCommand$1, DeleteTriggerCommand, DeleteWorkflowCommand, EntityNotFoundException, GetConnectionCommand, GetCrawlerCommand, GetDatabaseCommand, GetDatabasesCommand, GetJobCommand, GetSecurityConfigurationCommand, GetSecurityConfigurationsCommand, GetTableCommand, GetTablesCommand, GetTagsCommand, GetTriggerCommand, GetWorkflowCommand, GlueClient, ListWorkflowsCommand, StartCrawlerScheduleCommand, StartTriggerCommand, StopCrawlerScheduleCommand, StopTriggerCommand, UpdateConnectionCommand, UpdateCrawlerCommand, UpdateDatabaseCommand, UpdateJobCommand, UpdateTableCommand as UpdateTableCommand$1, UpdateTriggerCommand, UpdateWorkflowCommand } from "@aws-sdk/client-glue";
|
|
55
|
-
import { AddTagsToStreamCommand, CreateStreamCommand, DecreaseStreamRetentionPeriodCommand, DeleteStreamCommand, DeregisterStreamConsumerCommand, DescribeStreamCommand, DescribeStreamConsumerCommand, IncreaseStreamRetentionPeriodCommand, KinesisClient, ListStreamsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$17, ListTagsForStreamCommand, RegisterStreamConsumerCommand, RemoveTagsFromStreamCommand, ResourceNotFoundException as ResourceNotFoundException$8, StartStreamEncryptionCommand, StopStreamEncryptionCommand, TagResourceCommand as TagResourceCommand$
|
|
55
|
+
import { AddTagsToStreamCommand, CreateStreamCommand, DecreaseStreamRetentionPeriodCommand, DeleteStreamCommand, DeregisterStreamConsumerCommand, DescribeStreamCommand, DescribeStreamConsumerCommand, IncreaseStreamRetentionPeriodCommand, KinesisClient, ListStreamsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$17, ListTagsForStreamCommand, RegisterStreamConsumerCommand, RemoveTagsFromStreamCommand, ResourceNotFoundException as ResourceNotFoundException$8, StartStreamEncryptionCommand, StopStreamEncryptionCommand, TagResourceCommand as TagResourceCommand$15, UntagResourceCommand as UntagResourceCommand$14, UpdateShardCountCommand } from "@aws-sdk/client-kinesis";
|
|
56
56
|
import { AccessPointNotFound, CreateAccessPointCommand, CreateFileSystemCommand, CreateMountTargetCommand, DeleteAccessPointCommand, DeleteFileSystemCommand, DeleteMountTargetCommand, DescribeAccessPointsCommand, DescribeBackupPolicyCommand, DescribeFileSystemsCommand, DescribeLifecycleConfigurationCommand, DescribeMountTargetSecurityGroupsCommand, DescribeMountTargetsCommand, EFSClient, FileSystemNotFound, ModifyMountTargetSecurityGroupsCommand, MountTargetNotFound, UpdateFileSystemCommand } from "@aws-sdk/client-efs";
|
|
57
57
|
import { CreateDeliveryStreamCommand, DeleteDeliveryStreamCommand, DescribeDeliveryStreamCommand, FirehoseClient, ListDeliveryStreamsCommand, ListTagsForDeliveryStreamCommand, ResourceNotFoundException as ResourceNotFoundException$9, TagDeliveryStreamCommand, UntagDeliveryStreamCommand, UpdateDestinationCommand } from "@aws-sdk/client-firehose";
|
|
58
58
|
import { AddTagsCommand as AddTagsCommand$1, CloudTrailClient, CreateTrailCommand, DeleteTrailCommand, GetEventSelectorsCommand, GetInsightSelectorsCommand, GetTrailCommand, GetTrailStatusCommand, ListTagsCommand as ListTagsCommand$1, ListTrailsCommand, PutEventSelectorsCommand, PutInsightSelectorsCommand, RemoveTagsCommand as RemoveTagsCommand$1, StartLoggingCommand, StopLoggingCommand, TrailNotFoundException, UpdateTrailCommand } from "@aws-sdk/client-cloudtrail";
|
|
@@ -10894,14 +10894,14 @@ var LogsLogGroupProvider = class {
|
|
|
10894
10894
|
const arn = await this.buildArn(physicalId);
|
|
10895
10895
|
if (oldTags && oldTags.length > 0) {
|
|
10896
10896
|
const oldTagKeys = oldTags.map((t) => t.Key);
|
|
10897
|
-
await this.logsClient.send(new UntagResourceCommand$
|
|
10897
|
+
await this.logsClient.send(new UntagResourceCommand$8({
|
|
10898
10898
|
resourceArn: arn,
|
|
10899
10899
|
tagKeys: oldTagKeys
|
|
10900
10900
|
}));
|
|
10901
10901
|
}
|
|
10902
10902
|
if (newTags && newTags.length > 0) {
|
|
10903
10903
|
const tagsMap = Object.fromEntries(newTags.map((t) => [t.Key, t.Value]));
|
|
10904
|
-
await this.logsClient.send(new TagResourceCommand$
|
|
10904
|
+
await this.logsClient.send(new TagResourceCommand$8({
|
|
10905
10905
|
resourceArn: arn,
|
|
10906
10906
|
tags: tagsMap
|
|
10907
10907
|
}));
|
|
@@ -11257,14 +11257,14 @@ var CloudWatchAlarmProvider = class {
|
|
|
11257
11257
|
const tagsToRemove = [];
|
|
11258
11258
|
for (const k of oldMap.keys()) if (!newMap.has(k)) tagsToRemove.push(k);
|
|
11259
11259
|
if (tagsToRemove.length > 0) {
|
|
11260
|
-
await this.cloudWatchClient.send(new UntagResourceCommand$
|
|
11260
|
+
await this.cloudWatchClient.send(new UntagResourceCommand$7({
|
|
11261
11261
|
ResourceARN: resourceArn,
|
|
11262
11262
|
TagKeys: tagsToRemove
|
|
11263
11263
|
}));
|
|
11264
11264
|
this.logger.debug(`Removed ${tagsToRemove.length} tag(s) from alarm ${resourceArn}`);
|
|
11265
11265
|
}
|
|
11266
11266
|
if (tagsToAdd.length > 0) {
|
|
11267
|
-
await this.cloudWatchClient.send(new TagResourceCommand$
|
|
11267
|
+
await this.cloudWatchClient.send(new TagResourceCommand$7({
|
|
11268
11268
|
ResourceARN: resourceArn,
|
|
11269
11269
|
Tags: tagsToAdd
|
|
11270
11270
|
}));
|
|
@@ -17138,7 +17138,7 @@ const CACHE_BEHAVIOR_QUANTITY_FIELDS = [
|
|
|
17138
17138
|
var CloudFrontDistributionProvider = class {
|
|
17139
17139
|
cloudFrontClient;
|
|
17140
17140
|
logger = getLogger().child("CloudFrontDistributionProvider");
|
|
17141
|
-
handledProperties = new Map([["AWS::CloudFront::Distribution", new Set(["DistributionConfig"])]]);
|
|
17141
|
+
handledProperties = new Map([["AWS::CloudFront::Distribution", new Set(["DistributionConfig", "Tags"])]]);
|
|
17142
17142
|
constructor() {
|
|
17143
17143
|
const awsClients = getAwsClients();
|
|
17144
17144
|
this.cloudFrontClient = awsClients.cloudFront;
|
|
@@ -17154,7 +17154,11 @@ var CloudFrontDistributionProvider = class {
|
|
|
17154
17154
|
...distributionConfig,
|
|
17155
17155
|
CallerReference: `${Date.now()}-${logicalId}-${Math.random().toString(36).slice(2, 8)}`
|
|
17156
17156
|
});
|
|
17157
|
-
const
|
|
17157
|
+
const sdkTags = this.toSdkTags(properties["Tags"]);
|
|
17158
|
+
const distribution = (sdkTags ? await this.cloudFrontClient.send(new CreateDistributionWithTagsCommand({ DistributionConfigWithTags: {
|
|
17159
|
+
DistributionConfig: sdkConfig,
|
|
17160
|
+
Tags: { Items: sdkTags }
|
|
17161
|
+
} })) : await this.cloudFrontClient.send(new CreateDistributionCommand({ DistributionConfig: sdkConfig }))).Distribution;
|
|
17158
17162
|
const distributionId = distribution.Id;
|
|
17159
17163
|
const domainName = distribution.DomainName;
|
|
17160
17164
|
this.logger.debug(`Created CloudFront Distribution: ${distributionId} (${domainName})`);
|
|
@@ -17181,7 +17185,7 @@ var CloudFrontDistributionProvider = class {
|
|
|
17181
17185
|
* Gets the current config via GetDistributionConfigCommand, merges new properties,
|
|
17182
17186
|
* then calls UpdateDistributionCommand with the required IfMatch ETag.
|
|
17183
17187
|
*/
|
|
17184
|
-
async update(logicalId, physicalId, resourceType, properties,
|
|
17188
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
17185
17189
|
this.logger.debug(`Updating CloudFront Distribution ${logicalId}: ${physicalId}`);
|
|
17186
17190
|
try {
|
|
17187
17191
|
const getConfigResponse = await this.cloudFrontClient.send(new GetDistributionConfigCommand({ Id: physicalId }));
|
|
@@ -17197,7 +17201,10 @@ var CloudFrontDistributionProvider = class {
|
|
|
17197
17201
|
IfMatch: etag,
|
|
17198
17202
|
DistributionConfig: sdkConfig
|
|
17199
17203
|
}));
|
|
17200
|
-
const
|
|
17204
|
+
const getResponse = await this.cloudFrontClient.send(new GetDistributionCommand({ Id: physicalId }));
|
|
17205
|
+
const domainName = getResponse.Distribution?.DomainName ?? "";
|
|
17206
|
+
const arn = getResponse.Distribution?.ARN;
|
|
17207
|
+
await this.tryApplyTagDiff(arn, previousProperties["Tags"], properties["Tags"], physicalId);
|
|
17201
17208
|
this.logger.debug(`Updated CloudFront Distribution ${physicalId}`);
|
|
17202
17209
|
return {
|
|
17203
17210
|
physicalId,
|
|
@@ -17411,6 +17418,107 @@ var CloudFrontDistributionProvider = class {
|
|
|
17411
17418
|
}
|
|
17412
17419
|
}
|
|
17413
17420
|
/**
|
|
17421
|
+
* Convert CFn `Tags: [{ Key, Value }]` to the CloudFront SDK's `Tag[]`
|
|
17422
|
+
* shape (which happens to be the same `{ Key, Value }` per-entry shape),
|
|
17423
|
+
* dropping entries missing a Key and normalizing missing-Value to `''`
|
|
17424
|
+
* (matching `tagsArrayToMap`'s shape so the create-path and update-diff-
|
|
17425
|
+
* path agree on what counts as "the same tag"). Returns `undefined`
|
|
17426
|
+
* when the input is absent or empty so the caller can route to
|
|
17427
|
+
* `CreateDistributionCommand` instead of `CreateDistributionWithTagsCommand`
|
|
17428
|
+
* — passing an empty `Tags.Items: []` to the latter is a silent no-op
|
|
17429
|
+
* but uses the tags-enabled control-plane path for nothing.
|
|
17430
|
+
*/
|
|
17431
|
+
toSdkTags(value) {
|
|
17432
|
+
const map = this.tagsArrayToMap(value);
|
|
17433
|
+
if (map.size === 0) return void 0;
|
|
17434
|
+
return [...map.entries()].map(([Key, Value]) => ({
|
|
17435
|
+
Key,
|
|
17436
|
+
Value
|
|
17437
|
+
}));
|
|
17438
|
+
}
|
|
17439
|
+
/**
|
|
17440
|
+
* Compute the (removed-keys, upserted-tags) diff between two CFn `Tags`
|
|
17441
|
+
* snapshots. Pure function — does NOT touch AWS, so the caller can
|
|
17442
|
+
* decide on the basis of the result whether the ARN is actually needed
|
|
17443
|
+
* (no diff = no ARN required).
|
|
17444
|
+
*/
|
|
17445
|
+
computeTagDiff(previousTags, newTags) {
|
|
17446
|
+
const prev = this.tagsArrayToMap(previousTags);
|
|
17447
|
+
const next = this.tagsArrayToMap(newTags);
|
|
17448
|
+
const removed = [...prev.keys()].filter((k) => !next.has(k));
|
|
17449
|
+
const upserts = [];
|
|
17450
|
+
for (const [k, v] of next.entries()) if (prev.get(k) !== v) upserts.push({
|
|
17451
|
+
Key: k,
|
|
17452
|
+
Value: v
|
|
17453
|
+
});
|
|
17454
|
+
return {
|
|
17455
|
+
removed,
|
|
17456
|
+
upserts
|
|
17457
|
+
};
|
|
17458
|
+
}
|
|
17459
|
+
/**
|
|
17460
|
+
* Apply a tag diff to a distribution, best-effort.
|
|
17461
|
+
*
|
|
17462
|
+
* CloudFront has no atomic overlay API for tags — `TagResource` adds /
|
|
17463
|
+
* overwrites and `UntagResource` removes. Run the removal first, then
|
|
17464
|
+
* the upsert, so a same-key value rewrite (which lands in `upserts`)
|
|
17465
|
+
* is not accidentally cleared by a stale Untag.
|
|
17466
|
+
*
|
|
17467
|
+
* Errors are logged but not rethrown — `update()` already succeeded
|
|
17468
|
+
* the `UpdateDistribution` call before this is invoked, so propagating
|
|
17469
|
+
* a tag-side error would flip a successful config update into a deploy
|
|
17470
|
+
* failure that triggers an idempotent retry. A `warn` surfaces the
|
|
17471
|
+
* unapplied delta to the operator without breaking the deploy.
|
|
17472
|
+
*
|
|
17473
|
+
* The ARN is unexpectedly absent only on a hypothetical SDK regression
|
|
17474
|
+
* (`GetDistribution` returns ARN as a required string in every SDK
|
|
17475
|
+
* shape verified so far). When that happens AND a tag delta exists,
|
|
17476
|
+
* log a warn so the silent-drop this PR is closing does not silently
|
|
17477
|
+
* resurface; when no delta exists, return without needing ARN.
|
|
17478
|
+
*/
|
|
17479
|
+
async tryApplyTagDiff(arn, previousTags, newTags, physicalId) {
|
|
17480
|
+
const { removed, upserts } = this.computeTagDiff(previousTags, newTags);
|
|
17481
|
+
if (removed.length === 0 && upserts.length === 0) return;
|
|
17482
|
+
if (!arn) {
|
|
17483
|
+
this.logger.warn(`CloudFront Distribution ${physicalId}: GetDistribution returned no ARN; skipping tag diff (removed=${removed.length}, upserts=${upserts.length}). Tags on AWS may drift from the template.`);
|
|
17484
|
+
return;
|
|
17485
|
+
}
|
|
17486
|
+
try {
|
|
17487
|
+
if (removed.length > 0) {
|
|
17488
|
+
this.logger.debug(`Untagging CloudFront Distribution ${arn}: ${removed.join(", ")}`);
|
|
17489
|
+
await this.cloudFrontClient.send(new UntagResourceCommand$6({
|
|
17490
|
+
Resource: arn,
|
|
17491
|
+
TagKeys: { Items: removed }
|
|
17492
|
+
}));
|
|
17493
|
+
}
|
|
17494
|
+
if (upserts.length > 0) {
|
|
17495
|
+
this.logger.debug(`Tagging CloudFront Distribution ${arn}: ${upserts.map((t) => t.Key).join(", ")}`);
|
|
17496
|
+
await this.cloudFrontClient.send(new TagResourceCommand$6({
|
|
17497
|
+
Resource: arn,
|
|
17498
|
+
Tags: { Items: upserts }
|
|
17499
|
+
}));
|
|
17500
|
+
}
|
|
17501
|
+
} catch (err) {
|
|
17502
|
+
this.logger.warn(`CloudFront Distribution ${physicalId}: tag diff failed (removed=${removed.length}, upserts=${upserts.length}): ${err instanceof Error ? err.message : String(err)}. UpdateDistribution itself succeeded; tags on AWS may drift from the template until the next deploy.`);
|
|
17503
|
+
}
|
|
17504
|
+
}
|
|
17505
|
+
/**
|
|
17506
|
+
* Convert a CFn `Tags: [{ Key, Value }]` array to a plain map. Entries
|
|
17507
|
+
* missing a `Key` are dropped; a missing `Value` becomes `''` so the
|
|
17508
|
+
* diff treats `{ Key: 'k' }` and `{ Key: 'k', Value: '' }` the same.
|
|
17509
|
+
*/
|
|
17510
|
+
tagsArrayToMap(value) {
|
|
17511
|
+
const map = /* @__PURE__ */ new Map();
|
|
17512
|
+
if (!Array.isArray(value)) return map;
|
|
17513
|
+
for (const entry of value) {
|
|
17514
|
+
const key = entry["Key"];
|
|
17515
|
+
if (typeof key !== "string") continue;
|
|
17516
|
+
const val = entry["Value"];
|
|
17517
|
+
map.set(key, typeof val === "string" ? val : "");
|
|
17518
|
+
}
|
|
17519
|
+
return map;
|
|
17520
|
+
}
|
|
17521
|
+
/**
|
|
17414
17522
|
* Adopt an existing CloudFront distribution into cdkd state.
|
|
17415
17523
|
*
|
|
17416
17524
|
* CloudFront distributions don't carry a template-supplied name
|
|
@@ -17974,14 +18082,14 @@ var StepFunctionsProvider = class {
|
|
|
17974
18082
|
const tagsToRemove = [];
|
|
17975
18083
|
for (const k of oldMap.keys()) if (!newMap.has(k)) tagsToRemove.push(k);
|
|
17976
18084
|
if (tagsToRemove.length > 0) {
|
|
17977
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
18085
|
+
await this.getClient().send(new UntagResourceCommand$10({
|
|
17978
18086
|
resourceArn: stateMachineArn,
|
|
17979
18087
|
tagKeys: tagsToRemove
|
|
17980
18088
|
}));
|
|
17981
18089
|
this.logger.debug(`Removed ${tagsToRemove.length} tag(s) from SFN state machine ${stateMachineArn}`);
|
|
17982
18090
|
}
|
|
17983
18091
|
if (tagsToAdd.length > 0) {
|
|
17984
|
-
await this.getClient().send(new TagResourceCommand$
|
|
18092
|
+
await this.getClient().send(new TagResourceCommand$11({
|
|
17985
18093
|
resourceArn: stateMachineArn,
|
|
17986
18094
|
tags: tagsToAdd
|
|
17987
18095
|
}));
|
|
@@ -18489,14 +18597,14 @@ var ECSProvider = class {
|
|
|
18489
18597
|
const tagsToRemove = [];
|
|
18490
18598
|
for (const k of oldMap.keys()) if (!newMap.has(k)) tagsToRemove.push(k);
|
|
18491
18599
|
if (tagsToRemove.length > 0) {
|
|
18492
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
18600
|
+
await this.getClient().send(new UntagResourceCommand$11({
|
|
18493
18601
|
resourceArn,
|
|
18494
18602
|
tagKeys: tagsToRemove
|
|
18495
18603
|
}));
|
|
18496
18604
|
this.logger.debug(`Removed ${tagsToRemove.length} tag(s) from ECS resource ${resourceArn}`);
|
|
18497
18605
|
}
|
|
18498
18606
|
if (tagsToAdd.length > 0) {
|
|
18499
|
-
await this.getClient().send(new TagResourceCommand$
|
|
18607
|
+
await this.getClient().send(new TagResourceCommand$12({
|
|
18500
18608
|
resourceArn,
|
|
18501
18609
|
tags: tagsToAdd
|
|
18502
18610
|
}));
|
|
@@ -23632,14 +23740,14 @@ var WAFv2WebACLProvider = class {
|
|
|
23632
23740
|
const tagsToRemove = [];
|
|
23633
23741
|
for (const k of oldMap.keys()) if (!newMap.has(k)) tagsToRemove.push(k);
|
|
23634
23742
|
if (tagsToRemove.length > 0) {
|
|
23635
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
23743
|
+
await this.getClient().send(new UntagResourceCommand$12({
|
|
23636
23744
|
ResourceARN: arn,
|
|
23637
23745
|
TagKeys: tagsToRemove
|
|
23638
23746
|
}));
|
|
23639
23747
|
this.logger.debug(`Removed ${tagsToRemove.length} tag(s) from WAFv2 WebACL ${arn}`);
|
|
23640
23748
|
}
|
|
23641
23749
|
if (tagsToAdd.length > 0) {
|
|
23642
|
-
await this.getClient().send(new TagResourceCommand$
|
|
23750
|
+
await this.getClient().send(new TagResourceCommand$13({
|
|
23643
23751
|
ResourceARN: arn,
|
|
23644
23752
|
Tags: tagsToAdd
|
|
23645
23753
|
}));
|
|
@@ -25459,7 +25567,7 @@ var AppSyncProvider = class {
|
|
|
25459
25567
|
const tagsToAdd = {};
|
|
25460
25568
|
for (const [k, v] of Object.entries(newMap)) if (oldMap[k] !== v) tagsToAdd[k] = v;
|
|
25461
25569
|
if (tagKeysToRemove.length > 0) try {
|
|
25462
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
25570
|
+
await this.getClient().send(new UntagResourceCommand$13({
|
|
25463
25571
|
resourceArn: arn,
|
|
25464
25572
|
tagKeys: tagKeysToRemove
|
|
25465
25573
|
}));
|
|
@@ -25467,7 +25575,7 @@ var AppSyncProvider = class {
|
|
|
25467
25575
|
throw this.wrapUpdateError(error, resourceType, logicalId, apiId, "GraphqlApi (untag)");
|
|
25468
25576
|
}
|
|
25469
25577
|
if (Object.keys(tagsToAdd).length > 0) try {
|
|
25470
|
-
await this.getClient().send(new TagResourceCommand$
|
|
25578
|
+
await this.getClient().send(new TagResourceCommand$14({
|
|
25471
25579
|
resourceArn: arn,
|
|
25472
25580
|
tags: tagsToAdd
|
|
25473
25581
|
}));
|
|
@@ -27921,14 +28029,14 @@ var KMSProvider = class {
|
|
|
27921
28029
|
const tagsToRemove = [];
|
|
27922
28030
|
for (const k of oldMap.keys()) if (!newMap.has(k)) tagsToRemove.push(k);
|
|
27923
28031
|
if (tagsToRemove.length > 0) {
|
|
27924
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
28032
|
+
await this.getClient().send(new UntagResourceCommand$9({
|
|
27925
28033
|
KeyId: keyId,
|
|
27926
28034
|
TagKeys: tagsToRemove
|
|
27927
28035
|
}));
|
|
27928
28036
|
this.logger.debug(`Removed ${tagsToRemove.length} tag(s) from KMS Key ${keyId}`);
|
|
27929
28037
|
}
|
|
27930
28038
|
if (tagsToAdd.length > 0) {
|
|
27931
|
-
await this.getClient().send(new TagResourceCommand$
|
|
28039
|
+
await this.getClient().send(new TagResourceCommand$9({
|
|
27932
28040
|
KeyId: keyId,
|
|
27933
28041
|
Tags: tagsToAdd
|
|
27934
28042
|
}));
|
|
@@ -28710,14 +28818,14 @@ var KinesisStreamConsumerProvider = class {
|
|
|
28710
28818
|
const tagsToRemove = [];
|
|
28711
28819
|
for (const k of Object.keys(oldMap)) if (!(k in newMap)) tagsToRemove.push(k);
|
|
28712
28820
|
if (tagsToRemove.length > 0) {
|
|
28713
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
28821
|
+
await this.getClient().send(new UntagResourceCommand$14({
|
|
28714
28822
|
ResourceARN: consumerArn,
|
|
28715
28823
|
TagKeys: tagsToRemove
|
|
28716
28824
|
}));
|
|
28717
28825
|
this.logger.debug(`Removed ${tagsToRemove.length} tag(s) from Kinesis stream consumer ${consumerArn}`);
|
|
28718
28826
|
}
|
|
28719
28827
|
if (Object.keys(tagsToAdd).length > 0) {
|
|
28720
|
-
await this.getClient().send(new TagResourceCommand$
|
|
28828
|
+
await this.getClient().send(new TagResourceCommand$15({
|
|
28721
28829
|
ResourceARN: consumerArn,
|
|
28722
28830
|
Tags: tagsToAdd
|
|
28723
28831
|
}));
|
|
@@ -32384,7 +32492,7 @@ var ECRProvider = class {
|
|
|
32384
32492
|
if (JSON.stringify(newTags) !== JSON.stringify(oldTags)) {
|
|
32385
32493
|
const repoArn = (await this.getClient().send(new DescribeRepositoriesCommand({ repositoryNames: [physicalId] }))).repositories?.[0]?.repositoryArn;
|
|
32386
32494
|
if (repoArn && newTags) {
|
|
32387
|
-
await this.getClient().send(new TagResourceCommand$
|
|
32495
|
+
await this.getClient().send(new TagResourceCommand$10({
|
|
32388
32496
|
resourceArn: repoArn,
|
|
32389
32497
|
tags: newTags
|
|
32390
32498
|
}));
|
|
@@ -51716,7 +51824,7 @@ function reorderArgs(argv) {
|
|
|
51716
51824
|
*/
|
|
51717
51825
|
async function main() {
|
|
51718
51826
|
const program = new Command();
|
|
51719
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
51827
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.198.0");
|
|
51720
51828
|
program.addCommand(createBootstrapCommand());
|
|
51721
51829
|
program.addCommand(createSynthCommand());
|
|
51722
51830
|
program.addCommand(createListCommand());
|