nomoss 0.0.5 → 0.0.6
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/CHANGELOG.md +16 -0
- package/README.md +3 -1
- package/ROADMAP.md +1 -1
- package/docs/README.md +2 -0
- package/docs/application/aws-resource-coverage.md +111 -20
- package/docs/application/designs/awsRequestBodyEncoding.ts +91 -0
- package/docs/application/designs/createBucketModeledErrors.ts +164 -0
- package/docs/application/designs/describeSubnetsEc2Query.ts +186 -0
- package/docs/application/designs/getBucketTaggingResponseDecoding.ts +136 -0
- package/docs/application/designs/lambdaGetPolicyRequest.ts +85 -0
- package/docs/application/designs/s3GetObjectDownload.ts +97 -0
- package/docs/application/designs/s3ObjectMetadata.ts +154 -0
- package/docs/application/designs/selectObjectContentEvents.ts +185 -0
- package/docs/application/generation-architecture.md +38 -0
- package/docs/application/resource-operations.md +4 -2
- package/docs/development/code-documentation.md +2 -0
- package/docs/development/design-walkthroughs.md +49 -0
- package/docs/development/effect-native-development.md +31 -2
- package/docs/development/review-code.md +1 -1
- package/docs/development/review-remediation-spec.md +1 -0
- package/docs/development/testing.md +20 -0
- package/docs/operations/releasing.md +4 -2
- package/examples/queue/application.ts +1 -1
- package/media/nomoss-logo.svg +16 -0
- package/package.json +8 -14
- package/providers/aws/README.md +7 -7
- package/providers/aws/awsEnvironment.ts +3 -3
- package/providers/aws/generated/resources/apigateway/apikey.ts +335 -0
- package/providers/aws/generated/resources/apigateway/authorizer.ts +329 -0
- package/providers/aws/generated/resources/apigateway/basepathmapping.ts +265 -0
- package/providers/aws/generated/resources/apigateway/deployment.ts +515 -0
- package/providers/aws/generated/resources/apigateway/domainname.ts +354 -0
- package/providers/aws/generated/resources/apigateway/gatewayresponse.ts +222 -0
- package/providers/aws/generated/resources/apigateway/method.ts +819 -0
- package/providers/aws/generated/resources/apigateway/model.ts +248 -0
- package/providers/aws/generated/resources/apigateway/requestvalidator.ts +224 -0
- package/providers/aws/generated/resources/apigateway/resource.ts +235 -0
- package/providers/aws/generated/resources/apigateway/restapi.ts +583 -0
- package/providers/aws/generated/resources/apigateway/stage.ts +656 -0
- package/providers/aws/generated/resources/apigateway/usageplan.ts +394 -0
- package/providers/aws/generated/resources/apigateway/usageplankey.ts +228 -0
- package/providers/aws/generated/resources/apigatewayv2/api.ts +40 -60
- package/providers/aws/generated/resources/apigatewayv2/apimapping.ts +284 -0
- package/providers/aws/generated/resources/apigatewayv2/authorizer.ts +333 -0
- package/providers/aws/generated/resources/apigatewayv2/deployment.ts +226 -0
- package/providers/aws/generated/resources/apigatewayv2/domainname.ts +333 -0
- package/providers/aws/generated/resources/apigatewayv2/integration.ts +70 -103
- package/providers/aws/generated/resources/apigatewayv2/integrationresponse.ts +323 -0
- package/providers/aws/generated/resources/apigatewayv2/model.ts +241 -0
- package/providers/aws/generated/resources/apigatewayv2/route.ts +59 -63
- package/providers/aws/generated/resources/apigatewayv2/routeresponse.ts +330 -0
- package/providers/aws/generated/resources/apigatewayv2/routingrule.ts +349 -0
- package/providers/aws/generated/resources/apigatewayv2/stage.ts +45 -66
- package/providers/aws/generated/resources/apigatewayv2/vpclink.ts +256 -0
- package/providers/aws/generated/resources/appsync/api.ts +486 -0
- package/providers/aws/generated/resources/appsync/apicache.ts +169 -0
- package/providers/aws/generated/resources/appsync/apikey.ts +245 -0
- package/providers/aws/generated/resources/appsync/channelnamespace.ts +444 -0
- package/providers/aws/generated/resources/appsync/datasource.ts +757 -0
- package/providers/aws/generated/resources/appsync/domainname.ts +355 -0
- package/providers/aws/generated/resources/appsync/domainnameapiassociation.ts +284 -0
- package/providers/aws/generated/resources/appsync/functionconfiguration.ts +448 -0
- package/providers/aws/generated/resources/appsync/graphqlapi.ts +1028 -0
- package/providers/aws/generated/resources/appsync/graphqlschema.ts +188 -0
- package/providers/aws/generated/resources/appsync/resolver.ts +514 -0
- package/providers/aws/generated/resources/appsync/sourceapiassociation.ts +429 -0
- package/providers/aws/generated/resources/certificatemanager/certificate.ts +211 -0
- package/providers/aws/generated/resources/cloudfront/cachepolicy.ts +352 -0
- package/providers/aws/generated/resources/cloudfront/distribution.ts +2477 -0
- package/providers/aws/generated/resources/cloudfront/function.ts +313 -0
- package/providers/aws/generated/resources/cloudfront/originaccesscontrol.ts +204 -0
- package/providers/aws/generated/resources/cloudfront/originrequestpolicy.ts +285 -0
- package/providers/aws/generated/resources/cloudfront/responseheaderspolicy.ts +591 -0
- package/providers/aws/generated/resources/cloudwatch/alarm.ts +4545 -0
- package/providers/aws/generated/resources/cloudwatch/compositealarm.ts +678 -0
- package/providers/aws/generated/resources/cloudwatch/dashboard.ts +229 -0
- package/providers/aws/generated/resources/cognito/identitypool.ts +419 -0
- package/providers/aws/generated/resources/cognito/identitypoolroleattachment.ts +288 -0
- package/providers/aws/generated/resources/cognito/userpool.ts +1372 -0
- package/providers/aws/generated/resources/cognito/userpoolclient.ts +555 -0
- package/providers/aws/generated/resources/cognito/userpooldomain.ts +223 -0
- package/providers/aws/generated/resources/cognito/userpoolgroup.ts +265 -0
- package/providers/aws/generated/resources/cognito/userpoolidentityprovider.ts +216 -0
- package/providers/aws/generated/resources/cognito/userpoolresourceserver.ts +233 -0
- package/providers/aws/generated/resources/dynamodb/globaltable.ts +1002 -0
- package/providers/aws/generated/resources/dynamodb/table.ts +1058 -0
- package/providers/aws/generated/resources/ec2/eip.ts +303 -0
- package/providers/aws/generated/resources/ec2/instance.ts +1756 -0
- package/providers/aws/generated/resources/ec2/internetgateway.ts +185 -0
- package/providers/aws/generated/resources/ec2/launchtemplate.ts +2218 -0
- package/providers/aws/generated/resources/ec2/natgateway.ts +509 -0
- package/providers/aws/generated/resources/ec2/route.ts +595 -0
- package/providers/aws/generated/resources/ec2/routetable.ts +207 -0
- package/providers/aws/generated/resources/ec2/securitygroup.ts +460 -0
- package/providers/aws/generated/resources/ec2/securitygroupegress.ts +332 -0
- package/providers/aws/generated/resources/ec2/securitygroupingress.ts +488 -0
- package/providers/aws/generated/resources/ec2/subnet.ts +492 -0
- package/providers/aws/generated/resources/ec2/subnetroutetableassociation.ts +228 -0
- package/providers/aws/generated/resources/ec2/volume.ts +267 -0
- package/providers/aws/generated/resources/ec2/volumeattachment.ts +268 -0
- package/providers/aws/generated/resources/ec2/vpc.ts +288 -0
- package/providers/aws/generated/resources/ec2/vpcendpoint.ts +660 -0
- package/providers/aws/generated/resources/ec2/vpcgatewayattachment.ts +290 -0
- package/providers/aws/generated/resources/ec2/vpcpeeringconnection.ts +310 -0
- package/providers/aws/generated/resources/ecr/repository.ts +627 -0
- package/providers/aws/generated/resources/ecs/cluster.ts +616 -0
- package/providers/aws/generated/resources/ecs/service.ts +2065 -0
- package/providers/aws/generated/resources/ecs/taskdefinition.ts +1848 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/listener.ts +1166 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/listenercertificate.ts +168 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/listenerrule.ts +1219 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/loadbalancer.ts +706 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/targetgroup.ts +699 -0
- package/providers/aws/generated/resources/events/apidestination.ts +314 -0
- package/providers/aws/generated/resources/events/archive.ts +316 -0
- package/providers/aws/generated/resources/events/connection.ts +609 -0
- package/providers/aws/generated/resources/events/endpoint.ts +551 -0
- package/providers/aws/generated/resources/events/eventbus.ts +261 -0
- package/providers/aws/generated/resources/events/eventbuspolicy.ts +343 -0
- package/providers/aws/generated/resources/events/rule.ts +1253 -0
- package/providers/aws/generated/resources/eventschemas/discoverer.ts +273 -0
- package/providers/aws/generated/resources/eventschemas/registry.ts +183 -0
- package/providers/aws/generated/resources/eventschemas/registrypolicy.ts +193 -0
- package/providers/aws/generated/resources/eventschemas/schema.ts +305 -0
- package/providers/aws/generated/resources/iam/accesskey.ts +12 -16
- package/providers/aws/generated/resources/iam/group.ts +13 -16
- package/providers/aws/generated/resources/iam/grouppolicy.ts +16 -20
- package/providers/aws/generated/resources/iam/instanceprofile.ts +2 -2
- package/providers/aws/generated/resources/iam/managedpolicy.ts +27 -36
- package/providers/aws/generated/resources/iam/oidcprovider.ts +52 -104
- package/providers/aws/generated/resources/iam/policy.ts +33 -90
- package/providers/aws/generated/resources/iam/role.ts +45 -60
- package/providers/aws/generated/resources/iam/rolepolicy.ts +16 -20
- package/providers/aws/generated/resources/iam/samlprovider.ts +72 -164
- package/providers/aws/generated/resources/iam/servercertificate.ts +73 -187
- package/providers/aws/generated/resources/iam/servicelinkedrole.ts +24 -40
- package/providers/aws/generated/resources/iam/user.ts +26 -32
- package/providers/aws/generated/resources/iam/userpolicy.ts +16 -20
- package/providers/aws/generated/resources/iam/usertogroupaddition.ts +2 -2
- package/providers/aws/generated/resources/iam/virtualmfadevice.ts +53 -97
- package/providers/aws/generated/resources/kms/alias.ts +225 -0
- package/providers/aws/generated/resources/kms/key.ts +33 -207
- package/providers/aws/generated/resources/kms/replicakey.ts +292 -0
- package/providers/aws/generated/resources/lambda/alias.ts +301 -0
- package/providers/aws/generated/resources/lambda/codesigningconfig.ts +414 -0
- package/providers/aws/generated/resources/lambda/eventinvokeconfig.ts +677 -0
- package/providers/aws/generated/resources/lambda/eventsourcemapping.ts +1798 -0
- package/providers/aws/generated/resources/lambda/function.ts +135 -181
- package/providers/aws/generated/resources/lambda/layerversion.ts +298 -0
- package/providers/aws/generated/resources/lambda/layerversionpermission.ts +233 -0
- package/providers/aws/generated/resources/lambda/permission.ts +13 -14
- package/providers/aws/generated/resources/lambda/url.ts +452 -0
- package/providers/aws/generated/resources/lambda/version.ts +349 -0
- package/providers/aws/generated/resources/pipes/pipe.ts +3801 -0
- package/providers/aws/generated/resources/rds/dbcluster.ts +1710 -0
- package/providers/aws/generated/resources/rds/dbinstance.ts +2248 -0
- package/providers/aws/generated/resources/rds/dbsubnetgroup.ts +270 -0
- package/providers/aws/generated/resources/route53/healthcheck.ts +648 -0
- package/providers/aws/generated/resources/route53/hostedzone.ts +430 -0
- package/providers/aws/generated/resources/route53/recordset.ts +249 -0
- package/providers/aws/generated/resources/route53/recordsetgroup.ts +263 -0
- package/providers/aws/generated/resources/s3/accesspoint.ts +616 -0
- package/providers/aws/generated/resources/s3/bucket.ts +1733 -1831
- package/providers/aws/generated/resources/s3/bucketpolicy.ts +214 -0
- package/providers/aws/generated/resources/scheduler/schedule.ts +1563 -0
- package/providers/aws/generated/resources/scheduler/schedulegroup.ts +351 -0
- package/providers/aws/generated/resources/secretsmanager/resourcepolicy.ts +242 -0
- package/providers/aws/generated/resources/secretsmanager/rotationschedule.ts +314 -0
- package/providers/aws/generated/resources/secretsmanager/secret.ts +327 -0
- package/providers/aws/generated/resources/secretsmanager/secrettargetattachment.ts +167 -0
- package/providers/aws/generated/resources/sns/subscription.ts +488 -0
- package/providers/aws/generated/resources/sns/topic.ts +60 -88
- package/providers/aws/generated/resources/sns/topicinlinepolicy.ts +169 -0
- package/providers/aws/generated/resources/sns/topicpolicy.ts +172 -0
- package/providers/aws/generated/resources/sqs/queue.ts +53 -82
- package/providers/aws/generated/resources/sqs/queueinlinepolicy.ts +163 -0
- package/providers/aws/generated/resources/sqs/queuepolicy.ts +172 -0
- package/providers/aws/generated/resources/ssm/association.ts +906 -0
- package/providers/aws/generated/resources/ssm/document.ts +472 -0
- package/providers/aws/generated/resources/ssm/maintenancewindow.ts +225 -0
- package/providers/aws/generated/resources/ssm/maintenancewindowtarget.ts +289 -0
- package/providers/aws/generated/resources/ssm/maintenancewindowtask.ts +497 -0
- package/providers/aws/generated/resources/ssm/parameter.ts +258 -0
- package/providers/aws/generated/resources/ssm/patchbaseline.ts +668 -0
- package/providers/aws/generated/resources/ssm/resourcedatasync.ts +465 -0
- package/providers/aws/generated/resources/ssm/resourcepolicy.ts +211 -0
- package/providers/aws/generated/resources/stepfunctions/activity.ts +237 -0
- package/providers/aws/generated/resources/stepfunctions/statemachine.ts +54 -41
- package/providers/aws/generated/resources/stepfunctions/statemachinealias.ts +361 -0
- package/providers/aws/generated/resources/stepfunctions/statemachineversion.ts +202 -0
- package/providers/aws/management/ec2/internetGateway.ts +129 -0
- package/providers/aws/management/ec2/resourceTags.ts +89 -0
- package/providers/aws/management/ec2/route.ts +254 -0
- package/providers/aws/management/ec2/routeTable.ts +138 -0
- package/providers/aws/management/ec2/subnet.ts +511 -0
- package/providers/aws/management/ec2/subnetRouteTableAssociation.ts +129 -0
- package/providers/aws/management/ec2/vpc.ts +466 -0
- package/providers/aws/management/ec2/vpcGatewayAttachment.ts +238 -0
- package/providers/aws/management/iam/role.ts +520 -0
- package/providers/aws/management/lambda/function.ts +651 -0
- package/providers/aws/management/resourcePolicies.ts +102 -0
- package/providers/aws/management/s3/bucket.ts +315 -0
- package/providers/aws/management/s3/bucketConfiguration.ts +1102 -0
- package/providers/aws/runtime.ts +17 -19
- package/src/core/resource/model.ts +13 -3
- package/src/core/resource/resourceCommandPolicy.ts +5 -1
- package/src/core/resource/resourceEntries.ts +193 -0
- package/src/core/resource/resourceLifecycle.ts +39 -23
- package/src/core/stack/planner.ts +78 -40
- package/src/core/stack/resourceStackLifecycle.ts +112 -18
- package/src/core/stack/resourceStackOperations.ts +18 -0
- package/src/core/stack/stackWorkflowRenderer.ts +12 -3
- package/src/core/state/stateStore.ts +47 -10
- package/src/providers/providerRuntimeLayer.ts +1 -1
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5 -5055
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5 -5055
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsValidators.ts +5058 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +5 -2443
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +5 -2443
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsValidators.ts +2446 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +5 -23
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +5 -23
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsValidators.ts +26 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +5 -63
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +5 -63
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsValidators.ts +66 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +11 -121
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +11 -121
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsValidators.ts +130 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +17 -21
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +4 -12
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsValidators.ts +109 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +3 -2
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +3 -2
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsValidators.ts +11 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +18 -108
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +18 -108
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsValidators.ts +122 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +5 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +5 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsValidators.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +5 -110
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +5 -110
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsValidators.ts +113 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +42 -218
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +63 -336
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsValidators.ts +604 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +11 -123
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +11 -123
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsValidators.ts +133 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +25 -322
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +20 -317
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsValidators.ts +359 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +139 -4161
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +181 -4265
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsValidators.ts +4529 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +5 -86
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +5 -86
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsValidators.ts +89 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +5 -151
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +5 -151
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsValidators.ts +154 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +34 -169
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +24 -159
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsValidators.ts +235 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +46 -644
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +41 -639
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsValidators.ts +691 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +5 -46
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +5 -46
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsValidators.ts +49 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +5 -160
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +5 -160
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsValidators.ts +163 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +8 -19
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +8 -19
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsValidators.ts +28 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +5 -55
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +5 -55
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsValidators.ts +58 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +36 -121
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +24 -111
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsValidators.ts +183 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +5 -119
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +5 -119
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsValidators.ts +122 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +5 -45
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +5 -45
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsValidators.ts +48 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +5 -195
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +5 -195
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsValidators.ts +198 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +5 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +5 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsValidators.ts +100 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +69 -1282
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +43 -1259
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsValidators.ts +1417 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +32 -126
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +27 -121
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsValidators.ts +172 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +32 -2103
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +32 -2103
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsValidators.ts +2134 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +37 -2065
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +32 -2060
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsValidators.ts +2196 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +56 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +98 -251
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsValidators.ts +1024 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +14 -89
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +14 -89
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsValidators.ts +100 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +5 -246
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +5 -246
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsValidators.ts +249 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +5 -115
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +5 -115
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsValidators.ts +118 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +65 -5205
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +59 -5200
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsValidators.ts +5124 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +101 -1508
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +95 -1598
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsValidators.ts +2039 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +5 -2272
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +5 -2272
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsValidators.ts +2276 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +5 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +5 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsValidators.ts +40 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +194 -1425
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +194 -1425
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsValidators.ts +1580 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +5 -265
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +5 -265
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsValidators.ts +268 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +14 -28
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +14 -28
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsValidators.ts +42 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +26 -96
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +26 -96
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsValidators.ts +117 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +35 -314
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +35 -314
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsValidators.ts +330 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +5 -33
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +5 -33
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsValidators.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +16 -43
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +9 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsValidators.ts +105 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +5 -358
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +5 -358
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsValidators.ts +361 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +18 -66
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +11 -61
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsValidators.ts +100 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +73 -366
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +49 -345
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsValidators.ts +569 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +5 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +5 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsValidators.ts +42 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +5 -76
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +5 -76
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsValidators.ts +79 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +5 -27
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +5 -27
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsValidators.ts +30 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +11 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +11 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsValidators.ts +41 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +5 -1356
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +5 -1356
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsValidators.ts +1359 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +35 -2767
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +35 -2767
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsValidators.ts +2761 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +5 -170
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +5 -170
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsValidators.ts +173 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +5 -549
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +5 -549
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsValidators.ts +552 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +32 -143
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +27 -138
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsValidators.ts +187 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +99 -1668
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +70 -1644
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsValidators.ts +1872 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +123 -497
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +118 -755
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsValidators.ts +1902 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +23 -301
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +11 -291
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsValidators.ts +359 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +5 -113
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +5 -113
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsValidators.ts +116 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +5 -159
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +5 -159
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsValidators.ts +162 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +5 -3321
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +5 -3321
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsValidators.ts +3324 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +73 -698
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +23 -646
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsValidators.ts +931 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +5 -292
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +5 -292
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsValidators.ts +295 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +8 -19
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +8 -19
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsValidators.ts +29 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +5 -47
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +5 -47
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsValidators.ts +51 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +40 -629
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +40 -629
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsValidators.ts +655 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +5 -2387
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +5 -2387
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsValidators.ts +2391 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +11 -50
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +11 -50
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsValidators.ts +58 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +11 -21
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +11 -21
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsValidators.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +5 -36
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +5 -36
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsValidators.ts +40 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +5 -36
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +5 -36
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsValidators.ts +40 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +5 -276
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +5 -275
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsValidators.ts +279 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +5 -73
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +5 -73
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsValidators.ts +77 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +5 -340
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +5 -340
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsValidators.ts +344 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +5 -137
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +5 -137
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsValidators.ts +141 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +5 -45
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +5 -45
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsValidators.ts +48 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +144 -3036
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +279 -3175
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsValidators.ts +3457 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +5 -883
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +5 -882
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsValidators.ts +886 -0
- package/src/providers/stripe/client/stripeClient.ts +11 -15
- package/providers/aws/generated/managementRegistry.ts +0 -136
- package/providers/aws/management/mappings/iam/group.ts +0 -63
- package/providers/aws/management/mappings/iam/iamIdentity.ts +0 -41
- package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +0 -8
- package/providers/aws/management/mappings/iam/inlinePolicies.ts +0 -159
- package/providers/aws/management/mappings/iam/instanceProfile.ts +0 -77
- package/providers/aws/management/mappings/iam/oidcProvider.ts +0 -94
- package/providers/aws/management/mappings/iam/role.ts +0 -74
- package/providers/aws/management/mappings/iam/samlProvider.ts +0 -98
- package/providers/aws/management/mappings/iam/serverCertificate.ts +0 -72
- package/providers/aws/management/mappings/iam/user.ts +0 -61
- package/providers/aws/management/mappings/iam/userToGroupAddition.ts +0 -75
- package/providers/aws/management/operations/iam/accessKey.ts +0 -206
- package/providers/aws/management/operations/iam/managedPolicy.ts +0 -491
- package/providers/aws/management/operations/iam/policy.ts +0 -476
- package/providers/aws/management/operations/iam/serviceLinkedRole.ts +0 -172
- package/providers/aws/management/operations/iam/virtualMfaDevice.ts +0 -253
- package/providers/aws/management/resourceAssociationConfiguration.ts +0 -112
- package/providers/aws/management/resourceAssociationRegistration.ts +0 -349
- package/providers/aws/management/resourceAssociations.ts +0 -168
- package/providers/aws/management/resourceConfiguration.ts +0 -119
- package/providers/aws/management/resourceLifecycleRegistration.ts +0 -540
- package/providers/aws/management/resourceManagementModule.ts +0 -31
- package/providers/aws/management/resourceManagementRegistry.ts +0 -62
- package/providers/aws/management/resourceMapping.ts +0 -84
- package/providers/aws/management/resourceOperation.ts +0 -134
- package/providers/aws/management/resourceTagOperations.ts +0 -108
- package/providers/aws/management/resourceTiming.ts +0 -4
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +0 -68
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +0 -59
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +0 -111
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +0 -77
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +0 -50
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +0 -83
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +0 -50
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +0 -74
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +0 -65
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +0 -79
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +0 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +0 -56
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +0 -56
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +0 -38
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +0 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +0 -38
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +0 -154
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +0 -51
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +0 -120
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +0 -32
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +0 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +0 -125
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +0 -32
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +0 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +0 -130
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +0 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +0 -89
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +0 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +0 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +0 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +0 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +0 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +0 -53
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +0 -42
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +0 -63
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +0 -94
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +0 -34
|
@@ -0,0 +1,1058 @@
|
|
|
1
|
+
// Generated from the CloudFormation Registry resource schema. Do not edit.
|
|
2
|
+
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
|
|
3
|
+
import { Effect, Schema } from "effect";
|
|
4
|
+
import {
|
|
5
|
+
annotateResourceSchema,
|
|
6
|
+
ResourceEntity,
|
|
7
|
+
ResourceGraphBuilder,
|
|
8
|
+
type ResourceKey,
|
|
9
|
+
ResourceReferenceSchema,
|
|
10
|
+
ResourceSchemaAnnotationSchema,
|
|
11
|
+
} from "nomoss/core";
|
|
12
|
+
import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
|
|
13
|
+
|
|
14
|
+
interface OnDemandThroughput {
|
|
15
|
+
readonly MaxReadRequestUnits?: number;
|
|
16
|
+
readonly MaxWriteRequestUnits?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const OnDemandThroughput = Schema.Struct({
|
|
20
|
+
MaxReadRequestUnits: Schema.optionalKey(
|
|
21
|
+
Schema.Number.annotate({
|
|
22
|
+
description:
|
|
23
|
+
"Maximum number of read request units for the specified table.\n To specify a maximum ``OnDemandThroughput`` on your table, set the value of ``MaxReadRequestUnits`` as greater than or equal to 1. To remove the maximum ``OnDemandThroughput`` that is currently set on your table, set the value of ``MaxReadRequestUnits`` to -1.",
|
|
24
|
+
})
|
|
25
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
26
|
+
.check(
|
|
27
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
28
|
+
expected: "a value greater than or equal to 1",
|
|
29
|
+
}),
|
|
30
|
+
),
|
|
31
|
+
),
|
|
32
|
+
MaxWriteRequestUnits: Schema.optionalKey(
|
|
33
|
+
Schema.Number.annotate({
|
|
34
|
+
description:
|
|
35
|
+
"Maximum number of write request units for the specified table.\n To specify a maximum ``OnDemandThroughput`` on your table, set the value of ``MaxWriteRequestUnits`` as greater than or equal to 1. To remove the maximum ``OnDemandThroughput`` that is currently set on your table, set the value of ``MaxWriteRequestUnits`` to -1.",
|
|
36
|
+
})
|
|
37
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
38
|
+
.check(
|
|
39
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
40
|
+
expected: "a value greater than or equal to 1",
|
|
41
|
+
}),
|
|
42
|
+
),
|
|
43
|
+
),
|
|
44
|
+
}).annotate({
|
|
45
|
+
description:
|
|
46
|
+
"Sets the maximum number of read and write units for the specified on-demand table. If you use this property, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both.",
|
|
47
|
+
identifier: "OnDemandThroughput",
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
type ResourceInputAlternatives = string | string | string;
|
|
51
|
+
|
|
52
|
+
const ResourceInputAlternatives = Schema.Union([
|
|
53
|
+
Schema.String.annotate({
|
|
54
|
+
description:
|
|
55
|
+
"The KMS key that should be used for the KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key ``alias/aws/dynamodb``.",
|
|
56
|
+
}),
|
|
57
|
+
Schema.String.annotate({
|
|
58
|
+
description:
|
|
59
|
+
"The KMS key that should be used for the KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key ``alias/aws/dynamodb``.",
|
|
60
|
+
}),
|
|
61
|
+
Schema.String.annotate({
|
|
62
|
+
description:
|
|
63
|
+
"The KMS key that should be used for the KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key ``alias/aws/dynamodb``.",
|
|
64
|
+
}),
|
|
65
|
+
]);
|
|
66
|
+
|
|
67
|
+
interface SSESpecification {
|
|
68
|
+
readonly SSEEnabled: boolean;
|
|
69
|
+
readonly SSEType?: string;
|
|
70
|
+
readonly KMSMasterKeyId?:
|
|
71
|
+
| ResourceEntity<{
|
|
72
|
+
readonly provider: "aws";
|
|
73
|
+
readonly service: "kms";
|
|
74
|
+
readonly resource: "alias";
|
|
75
|
+
}>
|
|
76
|
+
| ResourceInputAlternatives;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const SSESpecification = Schema.Struct({
|
|
80
|
+
SSEEnabled: Schema.Boolean.annotate({
|
|
81
|
+
description:
|
|
82
|
+
"Indicates whether server-side encryption is done using an AWS managed key or an AWS owned key. If enabled (true), server-side encryption type is set to ``KMS`` and an AWS managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is set to AWS owned key.",
|
|
83
|
+
}),
|
|
84
|
+
SSEType: Schema.optionalKey(
|
|
85
|
+
Schema.String.annotate({
|
|
86
|
+
description:
|
|
87
|
+
"Server-side encryption type. The only supported value is:\n + ``KMS`` - Server-side encryption that uses KMSlong. The key is stored in your account and is managed by KMS (KMS charges apply).",
|
|
88
|
+
}),
|
|
89
|
+
),
|
|
90
|
+
KMSMasterKeyId: Schema.optionalKey(
|
|
91
|
+
Schema.Union([
|
|
92
|
+
Schema.Union([
|
|
93
|
+
ResourceReferenceSchema(
|
|
94
|
+
Schema.Struct({
|
|
95
|
+
provider: Schema.Literal("aws"),
|
|
96
|
+
service: Schema.Literal("kms"),
|
|
97
|
+
resource: Schema.Literal("alias"),
|
|
98
|
+
}),
|
|
99
|
+
{
|
|
100
|
+
value: null,
|
|
101
|
+
outputs: [
|
|
102
|
+
{
|
|
103
|
+
source: ["AliasName"],
|
|
104
|
+
target: [],
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
109
|
+
]),
|
|
110
|
+
ResourceInputAlternatives,
|
|
111
|
+
]),
|
|
112
|
+
),
|
|
113
|
+
}).annotate({
|
|
114
|
+
description: "Represents the settings used to enable server-side encryption.",
|
|
115
|
+
identifier: "SSESpecification",
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
type ResourceInputAlternatives_1 = "MICROSECOND" | "MILLISECOND";
|
|
119
|
+
|
|
120
|
+
const ResourceInputAlternatives_1 = Schema.Literals([
|
|
121
|
+
"MICROSECOND",
|
|
122
|
+
"MILLISECOND",
|
|
123
|
+
]).annotate({
|
|
124
|
+
description:
|
|
125
|
+
"The precision for the time and date that the stream was created.",
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
interface KinesisStreamSpecification {
|
|
129
|
+
readonly ApproximateCreationDateTimePrecision?: ResourceInputAlternatives_1;
|
|
130
|
+
readonly StreamArn:
|
|
131
|
+
| ResourceEntity<{
|
|
132
|
+
readonly provider: "aws";
|
|
133
|
+
readonly service: "kinesis";
|
|
134
|
+
readonly resource: "stream";
|
|
135
|
+
}>
|
|
136
|
+
| string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const KinesisStreamSpecification = Schema.Struct({
|
|
140
|
+
ApproximateCreationDateTimePrecision: Schema.optionalKey(
|
|
141
|
+
ResourceInputAlternatives_1,
|
|
142
|
+
),
|
|
143
|
+
StreamArn: Schema.Union([
|
|
144
|
+
Schema.Union([
|
|
145
|
+
ResourceReferenceSchema(
|
|
146
|
+
Schema.Struct({
|
|
147
|
+
provider: Schema.Literal("aws"),
|
|
148
|
+
service: Schema.Literal("kinesis"),
|
|
149
|
+
resource: Schema.Literal("stream"),
|
|
150
|
+
}),
|
|
151
|
+
{
|
|
152
|
+
value: null,
|
|
153
|
+
outputs: [
|
|
154
|
+
{
|
|
155
|
+
source: ["Arn"],
|
|
156
|
+
target: [],
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
161
|
+
]),
|
|
162
|
+
Schema.String.annotate({
|
|
163
|
+
description:
|
|
164
|
+
"The ARN for a specific Kinesis data stream.\n Length Constraints: Minimum length of 37. Maximum length of 1024.",
|
|
165
|
+
}),
|
|
166
|
+
]),
|
|
167
|
+
}).annotate({
|
|
168
|
+
description:
|
|
169
|
+
"The Kinesis Data Streams configuration for the specified table.",
|
|
170
|
+
identifier: "KinesisStreamSpecification",
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
interface ResourcePolicy {
|
|
174
|
+
readonly PolicyDocument: {
|
|
175
|
+
readonly [x: string]: Schema.Json;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const ResourcePolicy = Schema.Struct({
|
|
180
|
+
PolicyDocument: Schema.Record(
|
|
181
|
+
Schema.String,
|
|
182
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
183
|
+
).annotate({
|
|
184
|
+
description:
|
|
185
|
+
"A resource-based policy document that contains permissions to add to the specified DDB table, index, or both. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).",
|
|
186
|
+
}),
|
|
187
|
+
}).annotate({
|
|
188
|
+
description:
|
|
189
|
+
"Creates or updates a resource-based policy document that contains the permissions for DDB resources, such as a table, its indexes, and stream. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource.\n In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).\n While defining resource-based policies in your CFNshort templates, the following considerations apply:\n + The maximum size supported for a resource-based policy document in JSON format is 20 KB. DDB counts whitespaces when calculating the size of a policy against this limit. \n + Resource-based policies don't support [drift detection](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html#). If you update a policy outside of the CFNshort stack template, you'll need to update the CFNshort stack with the changes.\n + Resource-based policies don't support out-of-band changes. If you add, update, or delete a policy outside of the CFNshort template, the change won't be overwritten if there are no changes to the policy within the template.\n For example, say that your template contains a resource-based policy, which you later update outside of the template. If you don't make any changes to the policy in the template, the updated policy in DDB won’t be synced with the policy in the template.\n Conversely, say that your template doesn’t contain a resource-based policy, but you add a policy outside of the template. This policy won’t be removed from DDB as long as you don’t add it to the template. When you add a policy to the template and update the stack, the existing policy in DDB will be updated to match the one defined in the template.\n \n For a full list of all considerations, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html).",
|
|
190
|
+
identifier: "ResourcePolicy",
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
interface StreamSpecification {
|
|
194
|
+
readonly StreamViewType: string;
|
|
195
|
+
readonly ResourcePolicy?: ResourcePolicy;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const StreamSpecification = Schema.Struct({
|
|
199
|
+
StreamViewType: Schema.String.annotate({
|
|
200
|
+
description:
|
|
201
|
+
"When an item in the table is modified, ``StreamViewType`` determines what information is written to the stream for this table. Valid values for ``StreamViewType`` are:\n + ``KEYS_ONLY`` - Only the key attributes of the modified item are written to the stream.\n + ``NEW_IMAGE`` - The entire item, as it appears after it was modified, is written to the stream.\n + ``OLD_IMAGE`` - The entire item, as it appeared before it was modified, is written to the stream.\n + ``NEW_AND_OLD_IMAGES`` - Both the new and the old item images of the item are written to the stream.",
|
|
202
|
+
}),
|
|
203
|
+
ResourcePolicy: Schema.optionalKey(ResourcePolicy),
|
|
204
|
+
}).annotate({
|
|
205
|
+
description:
|
|
206
|
+
"Represents the DynamoDB Streams configuration for a table in DynamoDB.",
|
|
207
|
+
identifier: "StreamSpecification",
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
interface ContributorInsightsSpecification {
|
|
211
|
+
readonly Mode?: "ACCESSED_AND_THROTTLED_KEYS" | "THROTTLED_KEYS";
|
|
212
|
+
readonly Enabled: boolean;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const ContributorInsightsSpecification = Schema.Struct({
|
|
216
|
+
Mode: Schema.optionalKey(
|
|
217
|
+
Schema.Literals(["ACCESSED_AND_THROTTLED_KEYS", "THROTTLED_KEYS"]).annotate(
|
|
218
|
+
{
|
|
219
|
+
description:
|
|
220
|
+
"Specifies the CloudWatch Contributor Insights mode for a table. Valid values are ``ACCESSED_AND_THROTTLED_KEYS`` (tracks all access and throttled events) or ``THROTTLED_KEYS`` (tracks only throttled events). This setting determines what type of contributor insights data is collected for the table.",
|
|
221
|
+
},
|
|
222
|
+
),
|
|
223
|
+
),
|
|
224
|
+
Enabled: Schema.Boolean.annotate({
|
|
225
|
+
description:
|
|
226
|
+
"Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false).",
|
|
227
|
+
}),
|
|
228
|
+
}).annotate({
|
|
229
|
+
description:
|
|
230
|
+
"Configures contributor insights settings for a table or one of its indexes.",
|
|
231
|
+
identifier: "ContributorInsightsSpecification",
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
interface S3BucketSource {
|
|
235
|
+
readonly S3Bucket: string;
|
|
236
|
+
readonly S3KeyPrefix?: string;
|
|
237
|
+
readonly S3BucketOwner?: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const S3BucketSource = Schema.Struct({
|
|
241
|
+
S3Bucket: Schema.String.annotate({
|
|
242
|
+
description: "The S3 bucket that is being imported from.",
|
|
243
|
+
}),
|
|
244
|
+
S3KeyPrefix: Schema.optionalKey(
|
|
245
|
+
Schema.String.annotate({
|
|
246
|
+
description:
|
|
247
|
+
"The key prefix shared by all S3 Objects that are being imported.",
|
|
248
|
+
}),
|
|
249
|
+
),
|
|
250
|
+
S3BucketOwner: Schema.optionalKey(
|
|
251
|
+
Schema.String.annotate({
|
|
252
|
+
description:
|
|
253
|
+
"The account number of the S3 bucket that is being imported from. If the bucket is owned by the requester this is optional.",
|
|
254
|
+
}),
|
|
255
|
+
),
|
|
256
|
+
}).annotate({
|
|
257
|
+
description: "The S3 bucket that is being imported from.",
|
|
258
|
+
identifier: "S3BucketSource",
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
interface Csv {
|
|
262
|
+
readonly Delimiter?: string;
|
|
263
|
+
readonly HeaderList?: globalThis.ReadonlyArray<string>;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const Csv = Schema.Struct({
|
|
267
|
+
Delimiter: Schema.optionalKey(
|
|
268
|
+
Schema.String.annotate({
|
|
269
|
+
description:
|
|
270
|
+
"The delimiter used for separating items in the CSV file being imported.",
|
|
271
|
+
}),
|
|
272
|
+
),
|
|
273
|
+
HeaderList: Schema.optionalKey(
|
|
274
|
+
Schema.Array(Schema.String)
|
|
275
|
+
.annotate({
|
|
276
|
+
description:
|
|
277
|
+
"List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.",
|
|
278
|
+
})
|
|
279
|
+
.check(
|
|
280
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
281
|
+
),
|
|
282
|
+
),
|
|
283
|
+
}).annotate({
|
|
284
|
+
description:
|
|
285
|
+
"The options for imported source files in CSV format. The values are Delimiter and HeaderList.",
|
|
286
|
+
identifier: "Csv",
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
interface InputFormatOptions {
|
|
290
|
+
readonly Csv?: Csv;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
const InputFormatOptions = Schema.Struct({
|
|
294
|
+
Csv: Schema.optionalKey(Csv),
|
|
295
|
+
}).annotate({
|
|
296
|
+
description:
|
|
297
|
+
"The format options for the data that was imported into the target table. There is one value, CsvOption.",
|
|
298
|
+
identifier: "InputFormatOptions",
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
interface ImportSourceSpecification {
|
|
302
|
+
readonly S3BucketSource: S3BucketSource;
|
|
303
|
+
readonly InputFormat: string;
|
|
304
|
+
readonly InputFormatOptions?: InputFormatOptions;
|
|
305
|
+
readonly InputCompressionType?: string;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const ImportSourceSpecification = Schema.Struct({
|
|
309
|
+
S3BucketSource: S3BucketSource,
|
|
310
|
+
InputFormat: Schema.String.annotate({
|
|
311
|
+
description:
|
|
312
|
+
"The format of the source data. Valid values for ``ImportFormat`` are ``CSV``, ``DYNAMODB_JSON`` or ``ION``.",
|
|
313
|
+
}),
|
|
314
|
+
InputFormatOptions: Schema.optionalKey(InputFormatOptions),
|
|
315
|
+
InputCompressionType: Schema.optionalKey(
|
|
316
|
+
Schema.String.annotate({
|
|
317
|
+
description:
|
|
318
|
+
"Type of compression to be used on the input coming from the imported table.",
|
|
319
|
+
}),
|
|
320
|
+
),
|
|
321
|
+
}).annotate({
|
|
322
|
+
description:
|
|
323
|
+
"Specifies the properties of data being imported from the S3 bucket source to the table.",
|
|
324
|
+
identifier: "ImportSourceSpecification",
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
type PointInTimeRecoverySpecification =
|
|
328
|
+
| {
|
|
329
|
+
readonly PointInTimeRecoveryEnabled?: boolean;
|
|
330
|
+
readonly RecoveryPeriodInDays?: number;
|
|
331
|
+
}
|
|
332
|
+
| {
|
|
333
|
+
readonly PointInTimeRecoveryEnabled: boolean;
|
|
334
|
+
readonly RecoveryPeriodInDays?: number;
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
const PointInTimeRecoverySpecification = Schema.Union([
|
|
338
|
+
Schema.Struct({
|
|
339
|
+
PointInTimeRecoveryEnabled: Schema.optionalKey(
|
|
340
|
+
Schema.Boolean.annotate({
|
|
341
|
+
description:
|
|
342
|
+
"Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.",
|
|
343
|
+
}),
|
|
344
|
+
),
|
|
345
|
+
RecoveryPeriodInDays: Schema.optionalKey(
|
|
346
|
+
Schema.Number.annotate({
|
|
347
|
+
description:
|
|
348
|
+
"The number of preceding days for which continuous backups are taken and maintained. Your table data is only recoverable to any point-in-time from within the configured recovery period. This parameter is optional. If no value is provided, the value will default to 35.",
|
|
349
|
+
})
|
|
350
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
351
|
+
.check(
|
|
352
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
353
|
+
expected: "a value greater than or equal to 1",
|
|
354
|
+
}),
|
|
355
|
+
)
|
|
356
|
+
.check(
|
|
357
|
+
Schema.isLessThanOrEqualTo(35).annotate({
|
|
358
|
+
expected: "a value less than or equal to 35",
|
|
359
|
+
}),
|
|
360
|
+
),
|
|
361
|
+
),
|
|
362
|
+
})
|
|
363
|
+
.annotate({
|
|
364
|
+
description: "The settings used to enable point in time recovery.",
|
|
365
|
+
})
|
|
366
|
+
.check(
|
|
367
|
+
Schema.isMaxProperties(0).annotate({
|
|
368
|
+
expected: "a value with at most 0 entries",
|
|
369
|
+
}),
|
|
370
|
+
),
|
|
371
|
+
Schema.Struct({
|
|
372
|
+
PointInTimeRecoveryEnabled: Schema.Boolean.annotate({
|
|
373
|
+
description:
|
|
374
|
+
"Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.",
|
|
375
|
+
}),
|
|
376
|
+
RecoveryPeriodInDays: Schema.optionalKey(
|
|
377
|
+
Schema.Number.annotate({
|
|
378
|
+
description:
|
|
379
|
+
"The number of preceding days for which continuous backups are taken and maintained. Your table data is only recoverable to any point-in-time from within the configured recovery period. This parameter is optional. If no value is provided, the value will default to 35.",
|
|
380
|
+
})
|
|
381
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
382
|
+
.check(
|
|
383
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
384
|
+
expected: "a value greater than or equal to 1",
|
|
385
|
+
}),
|
|
386
|
+
)
|
|
387
|
+
.check(
|
|
388
|
+
Schema.isLessThanOrEqualTo(35).annotate({
|
|
389
|
+
expected: "a value less than or equal to 35",
|
|
390
|
+
}),
|
|
391
|
+
),
|
|
392
|
+
),
|
|
393
|
+
}).annotate({
|
|
394
|
+
description: "The settings used to enable point in time recovery.",
|
|
395
|
+
}),
|
|
396
|
+
]).annotate({ identifier: "PointInTimeRecoverySpecification" });
|
|
397
|
+
|
|
398
|
+
interface ProvisionedThroughput {
|
|
399
|
+
readonly WriteCapacityUnits: number;
|
|
400
|
+
readonly ReadCapacityUnits: number;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
const ProvisionedThroughput = Schema.Struct({
|
|
404
|
+
WriteCapacityUnits: Schema.Number.annotate({
|
|
405
|
+
description:
|
|
406
|
+
"The maximum number of writes consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.\n If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.",
|
|
407
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
408
|
+
ReadCapacityUnits: Schema.Number.annotate({
|
|
409
|
+
description:
|
|
410
|
+
"The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.\n If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.",
|
|
411
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
412
|
+
}).annotate({
|
|
413
|
+
description:
|
|
414
|
+
"Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).",
|
|
415
|
+
identifier: "ProvisionedThroughput",
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
type WarmThroughput =
|
|
419
|
+
| {
|
|
420
|
+
readonly ReadUnitsPerSecond: number;
|
|
421
|
+
readonly WriteUnitsPerSecond?: number;
|
|
422
|
+
}
|
|
423
|
+
| {
|
|
424
|
+
readonly WriteUnitsPerSecond: number;
|
|
425
|
+
readonly ReadUnitsPerSecond?: number;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
const WarmThroughput = Schema.Union([
|
|
429
|
+
Schema.Struct({
|
|
430
|
+
ReadUnitsPerSecond: Schema.Number.annotate({
|
|
431
|
+
description:
|
|
432
|
+
"Represents the number of read operations your base table can instantaneously support.",
|
|
433
|
+
})
|
|
434
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
435
|
+
.check(
|
|
436
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
437
|
+
expected: "a value greater than or equal to 1",
|
|
438
|
+
}),
|
|
439
|
+
),
|
|
440
|
+
WriteUnitsPerSecond: Schema.optionalKey(
|
|
441
|
+
Schema.Number.annotate({
|
|
442
|
+
description:
|
|
443
|
+
"Represents the number of write operations your base table can instantaneously support.",
|
|
444
|
+
})
|
|
445
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
446
|
+
.check(
|
|
447
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
448
|
+
expected: "a value greater than or equal to 1",
|
|
449
|
+
}),
|
|
450
|
+
),
|
|
451
|
+
),
|
|
452
|
+
}).annotate({
|
|
453
|
+
description:
|
|
454
|
+
"Provides visibility into the number of read and write operations your table or secondary index can instantaneously support. The settings can be modified using the ``UpdateTable`` operation to meet the throughput requirements of an upcoming peak event.",
|
|
455
|
+
}),
|
|
456
|
+
Schema.Struct({
|
|
457
|
+
WriteUnitsPerSecond: Schema.Number.annotate({
|
|
458
|
+
description:
|
|
459
|
+
"Represents the number of write operations your base table can instantaneously support.",
|
|
460
|
+
})
|
|
461
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
462
|
+
.check(
|
|
463
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
464
|
+
expected: "a value greater than or equal to 1",
|
|
465
|
+
}),
|
|
466
|
+
),
|
|
467
|
+
ReadUnitsPerSecond: Schema.optionalKey(
|
|
468
|
+
Schema.Number.annotate({
|
|
469
|
+
description:
|
|
470
|
+
"Represents the number of read operations your base table can instantaneously support.",
|
|
471
|
+
})
|
|
472
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
473
|
+
.check(
|
|
474
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
475
|
+
expected: "a value greater than or equal to 1",
|
|
476
|
+
}),
|
|
477
|
+
),
|
|
478
|
+
),
|
|
479
|
+
}).annotate({
|
|
480
|
+
description:
|
|
481
|
+
"Provides visibility into the number of read and write operations your table or secondary index can instantaneously support. The settings can be modified using the ``UpdateTable`` operation to meet the throughput requirements of an upcoming peak event.",
|
|
482
|
+
}),
|
|
483
|
+
]).annotate({ identifier: "WarmThroughput" });
|
|
484
|
+
|
|
485
|
+
interface AttributeDefinition {
|
|
486
|
+
readonly AttributeType: string;
|
|
487
|
+
readonly AttributeName: string;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
const AttributeDefinition = Schema.Struct({
|
|
491
|
+
AttributeType: Schema.String.annotate({
|
|
492
|
+
description:
|
|
493
|
+
"The data type for the attribute, where:\n + ``S`` - the attribute is of type String\n + ``N`` - the attribute is of type Number\n + ``B`` - the attribute is of type Binary",
|
|
494
|
+
}),
|
|
495
|
+
AttributeName: Schema.String.annotate({
|
|
496
|
+
description: "A name for the attribute.",
|
|
497
|
+
}),
|
|
498
|
+
}).annotate({
|
|
499
|
+
description:
|
|
500
|
+
"Represents an attribute for describing the schema for the table and indexes.",
|
|
501
|
+
identifier: "AttributeDefinition",
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
type ResourceInputItems = globalThis.ReadonlyArray<AttributeDefinition>;
|
|
505
|
+
|
|
506
|
+
const ResourceInputItems = Schema.Array(AttributeDefinition)
|
|
507
|
+
.annotate({
|
|
508
|
+
description:
|
|
509
|
+
"A list of attributes that describe the key schema for the table and indexes.\n This property is required to create a DDB table.\n Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.",
|
|
510
|
+
})
|
|
511
|
+
.check(
|
|
512
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
513
|
+
);
|
|
514
|
+
|
|
515
|
+
interface Projection {
|
|
516
|
+
readonly NonKeyAttributes?: globalThis.ReadonlyArray<string>;
|
|
517
|
+
readonly ProjectionType?: string;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
const Projection = Schema.Struct({
|
|
521
|
+
NonKeyAttributes: Schema.optionalKey(
|
|
522
|
+
Schema.Array(Schema.String).annotate({
|
|
523
|
+
description:
|
|
524
|
+
"Represents the non-key attribute names which will be projected into the index.\n For global and local secondary indexes, the total count of ``NonKeyAttributes`` summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total. This limit only applies when you specify the ProjectionType of ``INCLUDE``. You still can specify the ProjectionType of ``ALL`` to project all attributes from the source table, even if the table has more than 100 attributes.",
|
|
525
|
+
}),
|
|
526
|
+
),
|
|
527
|
+
ProjectionType: Schema.optionalKey(
|
|
528
|
+
Schema.String.annotate({
|
|
529
|
+
description:
|
|
530
|
+
"The set of attributes that are projected into the index:\n + ``KEYS_ONLY`` - Only the index and primary keys are projected into the index.\n + ``INCLUDE`` - In addition to the attributes described in ``KEYS_ONLY``, the secondary index will include other non-key attributes that you specify.\n + ``ALL`` - All of the table attributes are projected into the index.\n \n When using the DynamoDB console, ``ALL`` is selected by default.",
|
|
531
|
+
}),
|
|
532
|
+
),
|
|
533
|
+
}).annotate({
|
|
534
|
+
description:
|
|
535
|
+
"Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.",
|
|
536
|
+
identifier: "Projection",
|
|
537
|
+
});
|
|
538
|
+
|
|
539
|
+
interface KeySchema {
|
|
540
|
+
readonly KeyType: string;
|
|
541
|
+
readonly AttributeName: string;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
const KeySchema = Schema.Struct({
|
|
545
|
+
KeyType: Schema.String.annotate({
|
|
546
|
+
description:
|
|
547
|
+
'The role that this key attribute will assume:\n + ``HASH`` - partition key\n + ``RANGE`` - sort key\n \n The partition key of an item is also known as its *hash attribute*. The term "hash attribute" derives from DynamoDB\'s usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.\n The sort key of an item is also known as its *range attribute*. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.',
|
|
548
|
+
}),
|
|
549
|
+
AttributeName: Schema.String.annotate({
|
|
550
|
+
description: "The name of a key attribute.",
|
|
551
|
+
}),
|
|
552
|
+
}).annotate({
|
|
553
|
+
description:
|
|
554
|
+
"Represents *a single element* of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.\n A ``KeySchemaElement`` represents exactly one attribute of the primary key. For example, a simple primary key would be represented by one ``KeySchemaElement`` (for the partition key). A composite primary key would require one ``KeySchemaElement`` for the partition key, and another ``KeySchemaElement`` for the sort key.\n A ``KeySchemaElement`` must be a scalar, top-level attribute (not a nested attribute). The data type must be one of String, Number, or Binary. The attribute cannot be nested within a List or a Map.",
|
|
555
|
+
identifier: "KeySchema",
|
|
556
|
+
});
|
|
557
|
+
|
|
558
|
+
interface GlobalSecondaryIndex {
|
|
559
|
+
readonly IndexName: string;
|
|
560
|
+
readonly OnDemandThroughput?: OnDemandThroughput;
|
|
561
|
+
readonly ContributorInsightsSpecification?: ContributorInsightsSpecification;
|
|
562
|
+
readonly Projection: Projection;
|
|
563
|
+
readonly ProvisionedThroughput?: ProvisionedThroughput;
|
|
564
|
+
readonly KeySchema: globalThis.ReadonlyArray<KeySchema>;
|
|
565
|
+
readonly WarmThroughput?: WarmThroughput;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
const GlobalSecondaryIndex = Schema.Struct({
|
|
569
|
+
IndexName: Schema.String.annotate({
|
|
570
|
+
description:
|
|
571
|
+
"The name of the global secondary index. The name must be unique among all other indexes on this table.",
|
|
572
|
+
}),
|
|
573
|
+
OnDemandThroughput: Schema.optionalKey(OnDemandThroughput),
|
|
574
|
+
ContributorInsightsSpecification: Schema.optionalKey(
|
|
575
|
+
ContributorInsightsSpecification,
|
|
576
|
+
),
|
|
577
|
+
Projection: Projection,
|
|
578
|
+
ProvisionedThroughput: Schema.optionalKey(ProvisionedThroughput),
|
|
579
|
+
KeySchema: Schema.Array(KeySchema)
|
|
580
|
+
.annotate({
|
|
581
|
+
description:
|
|
582
|
+
'The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:\n + ``HASH`` - partition key\n + ``RANGE`` - sort key\n \n The partition key of an item is also known as its *hash attribute*. The term "hash attribute" derives from DynamoDB\'s usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.\n The sort key of an item is also known as its *range attribute*. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.',
|
|
583
|
+
})
|
|
584
|
+
.check(
|
|
585
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
586
|
+
),
|
|
587
|
+
WarmThroughput: Schema.optionalKey(WarmThroughput),
|
|
588
|
+
}).annotate({
|
|
589
|
+
description: "Represents the properties of a global secondary index.",
|
|
590
|
+
identifier: "GlobalSecondaryIndex",
|
|
591
|
+
});
|
|
592
|
+
|
|
593
|
+
type ResourceInputItems_1 = globalThis.ReadonlyArray<GlobalSecondaryIndex>;
|
|
594
|
+
|
|
595
|
+
const ResourceInputItems_1 = Schema.Array(GlobalSecondaryIndex).annotate({
|
|
596
|
+
description:
|
|
597
|
+
"Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.\n If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.\n If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index. \n Updates are not supported. The following are exceptions:\n + If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.\n + You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.",
|
|
598
|
+
});
|
|
599
|
+
|
|
600
|
+
interface LocalSecondaryIndex {
|
|
601
|
+
readonly IndexName: string;
|
|
602
|
+
readonly Projection: Projection;
|
|
603
|
+
readonly KeySchema: globalThis.ReadonlyArray<KeySchema>;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
const LocalSecondaryIndex = Schema.Struct({
|
|
607
|
+
IndexName: Schema.String.annotate({
|
|
608
|
+
description:
|
|
609
|
+
"The name of the local secondary index. The name must be unique among all other indexes on this table.",
|
|
610
|
+
}),
|
|
611
|
+
Projection: Projection,
|
|
612
|
+
KeySchema: Schema.Array(KeySchema)
|
|
613
|
+
.annotate({
|
|
614
|
+
description:
|
|
615
|
+
'The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:\n + ``HASH`` - partition key\n + ``RANGE`` - sort key\n \n The partition key of an item is also known as its *hash attribute*. The term "hash attribute" derives from DynamoDB\'s usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.\n The sort key of an item is also known as its *range attribute*. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.',
|
|
616
|
+
})
|
|
617
|
+
.check(
|
|
618
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
619
|
+
),
|
|
620
|
+
}).annotate({
|
|
621
|
+
description:
|
|
622
|
+
"Represents the properties of a local secondary index. A local secondary index can only be created when its parent table is created.",
|
|
623
|
+
identifier: "LocalSecondaryIndex",
|
|
624
|
+
});
|
|
625
|
+
|
|
626
|
+
type ResourceInputItems_2 = globalThis.ReadonlyArray<LocalSecondaryIndex>;
|
|
627
|
+
|
|
628
|
+
const ResourceInputItems_2 = Schema.Array(LocalSecondaryIndex).annotate({
|
|
629
|
+
description:
|
|
630
|
+
"Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.",
|
|
631
|
+
});
|
|
632
|
+
|
|
633
|
+
type ResourceInputAlternatives_2 =
|
|
634
|
+
| globalThis.ReadonlyArray<KeySchema>
|
|
635
|
+
| {
|
|
636
|
+
readonly [x: string]: Schema.Json;
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
const ResourceInputAlternatives_2 = Schema.Union(
|
|
640
|
+
[
|
|
641
|
+
Schema.Array(KeySchema).check(
|
|
642
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
643
|
+
),
|
|
644
|
+
Schema.Record(
|
|
645
|
+
Schema.String,
|
|
646
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
647
|
+
),
|
|
648
|
+
],
|
|
649
|
+
{ mode: "oneOf" },
|
|
650
|
+
).annotate({
|
|
651
|
+
description:
|
|
652
|
+
"Specifies the attributes that make up the primary key for the table. The attributes in the ``KeySchema`` property must also be defined in the ``AttributeDefinitions`` property.",
|
|
653
|
+
});
|
|
654
|
+
|
|
655
|
+
interface Tag {
|
|
656
|
+
readonly Value: string;
|
|
657
|
+
readonly Key: string;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
const Tag = Schema.Struct({
|
|
661
|
+
Value: Schema.String.annotate({
|
|
662
|
+
description:
|
|
663
|
+
"The value of the tag. Tag values are case-sensitive and can be null.",
|
|
664
|
+
}),
|
|
665
|
+
Key: Schema.String.annotate({
|
|
666
|
+
description:
|
|
667
|
+
"The key of the tag. Tag keys are case sensitive. Each DynamoDB table can only have up to one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value.",
|
|
668
|
+
}),
|
|
669
|
+
}).annotate({
|
|
670
|
+
description:
|
|
671
|
+
"Describes a tag. A tag is a key-value pair. You can add up to 50 tags to a single DynamoDB table. \n AWS-assigned tag names and values are automatically assigned the ``aws:`` prefix, which the user cannot assign. AWS-assigned tag names do not count towards the tag limit of 50. User-assigned tag names have the prefix ``user:`` in the Cost Allocation Report. You cannot backdate the application of a tag.\n For an overview on tagging DynamoDB resources, see [Tagging for DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html) in the *Amazon DynamoDB Developer Guide*.",
|
|
672
|
+
identifier: "Tag",
|
|
673
|
+
});
|
|
674
|
+
|
|
675
|
+
type ResourceInputItems_3 = globalThis.ReadonlyArray<Tag>;
|
|
676
|
+
|
|
677
|
+
const ResourceInputItems_3 = Schema.Array(Tag).annotate({
|
|
678
|
+
description:
|
|
679
|
+
"An array of key-value pairs to apply to this resource.\n For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).",
|
|
680
|
+
});
|
|
681
|
+
|
|
682
|
+
interface TimeToLiveSpecification {
|
|
683
|
+
readonly Enabled: boolean;
|
|
684
|
+
readonly AttributeName?: string;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
const TimeToLiveSpecification = Schema.Struct({
|
|
688
|
+
Enabled: Schema.Boolean.annotate({
|
|
689
|
+
description:
|
|
690
|
+
"Indicates whether TTL is to be enabled (true) or disabled (false) on the table.",
|
|
691
|
+
}),
|
|
692
|
+
AttributeName: Schema.optionalKey(
|
|
693
|
+
Schema.String.annotate({
|
|
694
|
+
description:
|
|
695
|
+
"The name of the TTL attribute used to store the expiration time for items in the table.\n + The ``AttributeName`` property is required when enabling the TTL, or when TTL is already enabled.\n + To update this property, you must first disable TTL and then enable TTL with the new attribute name.",
|
|
696
|
+
}),
|
|
697
|
+
),
|
|
698
|
+
}).annotate({
|
|
699
|
+
description:
|
|
700
|
+
"Represents the settings used to enable or disable Time to Live (TTL) for the specified table.",
|
|
701
|
+
identifier: "TimeToLiveSpecification",
|
|
702
|
+
});
|
|
703
|
+
|
|
704
|
+
interface SSESpecification_1 {
|
|
705
|
+
readonly SSEEnabled: boolean;
|
|
706
|
+
readonly SSEType?: string;
|
|
707
|
+
readonly KMSMasterKeyId?: ResourceInputAlternatives;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
const SSESpecification_1 = Schema.Struct({
|
|
711
|
+
SSEEnabled: Schema.Boolean.annotate({
|
|
712
|
+
description:
|
|
713
|
+
"Indicates whether server-side encryption is done using an AWS managed key or an AWS owned key. If enabled (true), server-side encryption type is set to ``KMS`` and an AWS managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is set to AWS owned key.",
|
|
714
|
+
}),
|
|
715
|
+
SSEType: Schema.optionalKey(
|
|
716
|
+
Schema.String.annotate({
|
|
717
|
+
description:
|
|
718
|
+
"Server-side encryption type. The only supported value is:\n + ``KMS`` - Server-side encryption that uses KMSlong. The key is stored in your account and is managed by KMS (KMS charges apply).",
|
|
719
|
+
}),
|
|
720
|
+
),
|
|
721
|
+
KMSMasterKeyId: Schema.optionalKey(ResourceInputAlternatives),
|
|
722
|
+
}).annotate({
|
|
723
|
+
description: "Represents the settings used to enable server-side encryption.",
|
|
724
|
+
identifier: "SSESpecification_1",
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
interface KinesisStreamSpecification_1 {
|
|
728
|
+
readonly ApproximateCreationDateTimePrecision?: ResourceInputAlternatives_1;
|
|
729
|
+
readonly StreamArn: string;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
const KinesisStreamSpecification_1 = Schema.Struct({
|
|
733
|
+
ApproximateCreationDateTimePrecision: Schema.optionalKey(
|
|
734
|
+
ResourceInputAlternatives_1,
|
|
735
|
+
),
|
|
736
|
+
StreamArn: Schema.String.annotate({
|
|
737
|
+
description:
|
|
738
|
+
"The ARN for a specific Kinesis data stream.\n Length Constraints: Minimum length of 37. Maximum length of 1024.",
|
|
739
|
+
}),
|
|
740
|
+
}).annotate({
|
|
741
|
+
description:
|
|
742
|
+
"The Kinesis Data Streams configuration for the specified table.",
|
|
743
|
+
identifier: "KinesisStreamSpecification_1",
|
|
744
|
+
});
|
|
745
|
+
|
|
746
|
+
export interface AWSTableProps {
|
|
747
|
+
readonly OnDemandThroughput?: OnDemandThroughput;
|
|
748
|
+
readonly SSESpecification?: SSESpecification;
|
|
749
|
+
readonly KinesisStreamSpecification?: KinesisStreamSpecification;
|
|
750
|
+
readonly StreamSpecification?: StreamSpecification;
|
|
751
|
+
readonly ContributorInsightsSpecification?: ContributorInsightsSpecification;
|
|
752
|
+
readonly ImportSourceSpecification?: ImportSourceSpecification;
|
|
753
|
+
readonly PointInTimeRecoverySpecification?: PointInTimeRecoverySpecification;
|
|
754
|
+
readonly ProvisionedThroughput?: ProvisionedThroughput;
|
|
755
|
+
readonly WarmThroughput?: WarmThroughput;
|
|
756
|
+
readonly TableName?: string;
|
|
757
|
+
readonly AttributeDefinitions?: ResourceInputItems;
|
|
758
|
+
readonly GlobalSecondaryIndexes?: ResourceInputItems_1;
|
|
759
|
+
readonly BillingMode?: string;
|
|
760
|
+
readonly ResourcePolicy?: ResourcePolicy;
|
|
761
|
+
readonly LocalSecondaryIndexes?: ResourceInputItems_2;
|
|
762
|
+
readonly KeySchema: ResourceInputAlternatives_2;
|
|
763
|
+
readonly DeletionProtectionEnabled?: boolean;
|
|
764
|
+
readonly TableClass?: string;
|
|
765
|
+
readonly Tags?: ResourceInputItems_3;
|
|
766
|
+
readonly TimeToLiveSpecification?: TimeToLiveSpecification;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
export const AWSTableResourceSchema = ResourceSchemaAnnotationSchema.make({
|
|
770
|
+
provider: "aws",
|
|
771
|
+
service: "dynamodb",
|
|
772
|
+
resource: "table",
|
|
773
|
+
operation: "create",
|
|
774
|
+
stateSecretOutputKeys: [],
|
|
775
|
+
replacement: {
|
|
776
|
+
order: "createBeforeDestroy",
|
|
777
|
+
properties: [["TableName"], ["ImportSourceSpecification"]],
|
|
778
|
+
},
|
|
779
|
+
primaryIdentifier: ["/properties/TableName"],
|
|
780
|
+
});
|
|
781
|
+
|
|
782
|
+
export const AWSTablePropsSchema = annotateResourceSchema(
|
|
783
|
+
Schema.Struct({
|
|
784
|
+
OnDemandThroughput: Schema.optionalKey(OnDemandThroughput),
|
|
785
|
+
SSESpecification: Schema.optionalKey(SSESpecification),
|
|
786
|
+
KinesisStreamSpecification: Schema.optionalKey(KinesisStreamSpecification),
|
|
787
|
+
StreamSpecification: Schema.optionalKey(StreamSpecification),
|
|
788
|
+
ContributorInsightsSpecification: Schema.optionalKey(
|
|
789
|
+
ContributorInsightsSpecification,
|
|
790
|
+
),
|
|
791
|
+
ImportSourceSpecification: Schema.optionalKey(ImportSourceSpecification),
|
|
792
|
+
PointInTimeRecoverySpecification: Schema.optionalKey(
|
|
793
|
+
PointInTimeRecoverySpecification,
|
|
794
|
+
),
|
|
795
|
+
ProvisionedThroughput: Schema.optionalKey(ProvisionedThroughput),
|
|
796
|
+
WarmThroughput: Schema.optionalKey(WarmThroughput),
|
|
797
|
+
TableName: Schema.optionalKey(
|
|
798
|
+
Schema.String.annotate({
|
|
799
|
+
description:
|
|
800
|
+
"A name for the table. If you don't specify a name, CFNlong generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
|
|
801
|
+
}),
|
|
802
|
+
),
|
|
803
|
+
AttributeDefinitions: Schema.optionalKey(ResourceInputItems),
|
|
804
|
+
GlobalSecondaryIndexes: Schema.optionalKey(ResourceInputItems_1),
|
|
805
|
+
BillingMode: Schema.optionalKey(
|
|
806
|
+
Schema.String.annotate({
|
|
807
|
+
description:
|
|
808
|
+
"Specify how you are charged for read and write throughput and how you manage capacity.\n Valid values include:\n + ``PAY_PER_REQUEST`` - We recommend using ``PAY_PER_REQUEST`` for most DynamoDB workloads. ``PAY_PER_REQUEST`` sets the billing mode to [On-demand capacity mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html). \n + ``PROVISIONED`` - We recommend using ``PROVISIONED`` for steady workloads with predictable growth where capacity requirements can be reliably forecasted. ``PROVISIONED`` sets the billing mode to [Provisioned capacity mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html).\n \n If not specified, the default is ``PROVISIONED``.",
|
|
809
|
+
}),
|
|
810
|
+
),
|
|
811
|
+
ResourcePolicy: Schema.optionalKey(ResourcePolicy),
|
|
812
|
+
LocalSecondaryIndexes: Schema.optionalKey(ResourceInputItems_2),
|
|
813
|
+
KeySchema: ResourceInputAlternatives_2,
|
|
814
|
+
DeletionProtectionEnabled: Schema.optionalKey(
|
|
815
|
+
Schema.Boolean.annotate({
|
|
816
|
+
description:
|
|
817
|
+
"Determines if a table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Developer Guide*.",
|
|
818
|
+
}),
|
|
819
|
+
),
|
|
820
|
+
TableClass: Schema.optionalKey(
|
|
821
|
+
Schema.String.annotate({
|
|
822
|
+
description:
|
|
823
|
+
"The table class of the new table. Valid values are ``STANDARD`` and ``STANDARD_INFREQUENT_ACCESS``.",
|
|
824
|
+
}),
|
|
825
|
+
),
|
|
826
|
+
Tags: Schema.optionalKey(ResourceInputItems_3),
|
|
827
|
+
TimeToLiveSpecification: Schema.optionalKey(TimeToLiveSpecification),
|
|
828
|
+
}),
|
|
829
|
+
AWSTableResourceSchema,
|
|
830
|
+
);
|
|
831
|
+
|
|
832
|
+
export interface AWSTableOutputs {
|
|
833
|
+
readonly Arn?: string;
|
|
834
|
+
readonly StreamArn?: string;
|
|
835
|
+
readonly TableName?: string;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
export const AWSTableOutputsSchema = Schema.Struct({
|
|
839
|
+
Arn: Schema.optionalKey(Schema.String.annotate({ description: "" })),
|
|
840
|
+
StreamArn: Schema.optionalKey(Schema.String.annotate({ description: "" })),
|
|
841
|
+
TableName: Schema.optionalKey(
|
|
842
|
+
Schema.String.annotate({
|
|
843
|
+
description:
|
|
844
|
+
"A name for the table. If you don't specify a name, CFNlong generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
|
|
845
|
+
}),
|
|
846
|
+
),
|
|
847
|
+
});
|
|
848
|
+
|
|
849
|
+
export interface AWSTableRequest {
|
|
850
|
+
readonly OnDemandThroughput?: OnDemandThroughput;
|
|
851
|
+
readonly SSESpecification?: SSESpecification_1;
|
|
852
|
+
readonly KinesisStreamSpecification?: KinesisStreamSpecification_1;
|
|
853
|
+
readonly StreamSpecification?: StreamSpecification;
|
|
854
|
+
readonly ContributorInsightsSpecification?: ContributorInsightsSpecification;
|
|
855
|
+
readonly ImportSourceSpecification?: ImportSourceSpecification;
|
|
856
|
+
readonly PointInTimeRecoverySpecification?: PointInTimeRecoverySpecification;
|
|
857
|
+
readonly ProvisionedThroughput?: ProvisionedThroughput;
|
|
858
|
+
readonly WarmThroughput?: WarmThroughput;
|
|
859
|
+
readonly TableName?: string;
|
|
860
|
+
readonly AttributeDefinitions?: ResourceInputItems;
|
|
861
|
+
readonly GlobalSecondaryIndexes?: ResourceInputItems_1;
|
|
862
|
+
readonly BillingMode?: string;
|
|
863
|
+
readonly ResourcePolicy?: ResourcePolicy;
|
|
864
|
+
readonly LocalSecondaryIndexes?: ResourceInputItems_2;
|
|
865
|
+
readonly KeySchema: ResourceInputAlternatives_2;
|
|
866
|
+
readonly DeletionProtectionEnabled?: boolean;
|
|
867
|
+
readonly TableClass?: string;
|
|
868
|
+
readonly Tags?: ResourceInputItems_3;
|
|
869
|
+
readonly TimeToLiveSpecification?: TimeToLiveSpecification;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export const AWSTableRequestSchema = Schema.Struct({
|
|
873
|
+
OnDemandThroughput: Schema.optionalKey(OnDemandThroughput),
|
|
874
|
+
SSESpecification: Schema.optionalKey(SSESpecification_1),
|
|
875
|
+
KinesisStreamSpecification: Schema.optionalKey(KinesisStreamSpecification_1),
|
|
876
|
+
StreamSpecification: Schema.optionalKey(StreamSpecification),
|
|
877
|
+
ContributorInsightsSpecification: Schema.optionalKey(
|
|
878
|
+
ContributorInsightsSpecification,
|
|
879
|
+
),
|
|
880
|
+
ImportSourceSpecification: Schema.optionalKey(ImportSourceSpecification),
|
|
881
|
+
PointInTimeRecoverySpecification: Schema.optionalKey(
|
|
882
|
+
PointInTimeRecoverySpecification,
|
|
883
|
+
),
|
|
884
|
+
ProvisionedThroughput: Schema.optionalKey(ProvisionedThroughput),
|
|
885
|
+
WarmThroughput: Schema.optionalKey(WarmThroughput),
|
|
886
|
+
TableName: Schema.optionalKey(
|
|
887
|
+
Schema.String.annotate({
|
|
888
|
+
description:
|
|
889
|
+
"A name for the table. If you don't specify a name, CFNlong generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
|
|
890
|
+
}),
|
|
891
|
+
),
|
|
892
|
+
AttributeDefinitions: Schema.optionalKey(ResourceInputItems),
|
|
893
|
+
GlobalSecondaryIndexes: Schema.optionalKey(ResourceInputItems_1),
|
|
894
|
+
BillingMode: Schema.optionalKey(
|
|
895
|
+
Schema.String.annotate({
|
|
896
|
+
description:
|
|
897
|
+
"Specify how you are charged for read and write throughput and how you manage capacity.\n Valid values include:\n + ``PAY_PER_REQUEST`` - We recommend using ``PAY_PER_REQUEST`` for most DynamoDB workloads. ``PAY_PER_REQUEST`` sets the billing mode to [On-demand capacity mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html). \n + ``PROVISIONED`` - We recommend using ``PROVISIONED`` for steady workloads with predictable growth where capacity requirements can be reliably forecasted. ``PROVISIONED`` sets the billing mode to [Provisioned capacity mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html).\n \n If not specified, the default is ``PROVISIONED``.",
|
|
898
|
+
}),
|
|
899
|
+
),
|
|
900
|
+
ResourcePolicy: Schema.optionalKey(ResourcePolicy),
|
|
901
|
+
LocalSecondaryIndexes: Schema.optionalKey(ResourceInputItems_2),
|
|
902
|
+
KeySchema: ResourceInputAlternatives_2,
|
|
903
|
+
DeletionProtectionEnabled: Schema.optionalKey(
|
|
904
|
+
Schema.Boolean.annotate({
|
|
905
|
+
description:
|
|
906
|
+
"Determines if a table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Developer Guide*.",
|
|
907
|
+
}),
|
|
908
|
+
),
|
|
909
|
+
TableClass: Schema.optionalKey(
|
|
910
|
+
Schema.String.annotate({
|
|
911
|
+
description:
|
|
912
|
+
"The table class of the new table. Valid values are ``STANDARD`` and ``STANDARD_INFREQUENT_ACCESS``.",
|
|
913
|
+
}),
|
|
914
|
+
),
|
|
915
|
+
Tags: Schema.optionalKey(ResourceInputItems_3),
|
|
916
|
+
TimeToLiveSpecification: Schema.optionalKey(TimeToLiveSpecification),
|
|
917
|
+
});
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* The AWSTableRelationshipIssues array lists inputs that can use several outputs
|
|
921
|
+
* from one source type. Each input retains its provider value until a reviewed
|
|
922
|
+
* mapping chooses an output.
|
|
923
|
+
*/
|
|
924
|
+
export const AWSTableRelationshipIssues = [
|
|
925
|
+
{
|
|
926
|
+
propertyPath: ["SSESpecification", "KMSMasterKeyId"],
|
|
927
|
+
sourceType: "AWS::KMS::Key",
|
|
928
|
+
sourceProperties: [["Arn"], ["KeyId"]],
|
|
929
|
+
message:
|
|
930
|
+
"Choose one of the permitted source properties before using a resource reference",
|
|
931
|
+
},
|
|
932
|
+
];
|
|
933
|
+
|
|
934
|
+
export const AWSTableResourceTypeSchema = Schema.Struct({
|
|
935
|
+
provider: Schema.Literal("aws"),
|
|
936
|
+
service: Schema.Literal("dynamodb"),
|
|
937
|
+
resource: Schema.Literal("table"),
|
|
938
|
+
});
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* The AWSTableResource class retains its owning stack across declarations.
|
|
942
|
+
* Applied output properties are ordinary values maintained by the lifecycle.
|
|
943
|
+
*/
|
|
944
|
+
export class AWSTableResource<Props = AWSTableProps> extends ResourceEntity<{
|
|
945
|
+
readonly provider: "aws";
|
|
946
|
+
readonly service: "dynamodb";
|
|
947
|
+
readonly resource: "table";
|
|
948
|
+
}> {
|
|
949
|
+
constructor(
|
|
950
|
+
key: ResourceKey,
|
|
951
|
+
readonly props: Props,
|
|
952
|
+
private readonly binding?: ResourceOutputBinding,
|
|
953
|
+
) {
|
|
954
|
+
super({
|
|
955
|
+
key,
|
|
956
|
+
resourceType: {
|
|
957
|
+
provider: "aws",
|
|
958
|
+
service: "dynamodb",
|
|
959
|
+
resource: "table",
|
|
960
|
+
},
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
966
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
967
|
+
*/
|
|
968
|
+
get Arn(): Required<AWSTableOutputs>["Arn"] {
|
|
969
|
+
const value: Required<AWSTableOutputs>["Arn"] = ResourceOutputBinding.value(
|
|
970
|
+
this.binding,
|
|
971
|
+
this.key,
|
|
972
|
+
"Arn",
|
|
973
|
+
Schema.requiredKey(AWSTableOutputsSchema.fields.Arn),
|
|
974
|
+
);
|
|
975
|
+
return value;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
980
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
981
|
+
*/
|
|
982
|
+
get StreamArn(): Required<AWSTableOutputs>["StreamArn"] {
|
|
983
|
+
const value: Required<AWSTableOutputs>["StreamArn"] =
|
|
984
|
+
ResourceOutputBinding.value(
|
|
985
|
+
this.binding,
|
|
986
|
+
this.key,
|
|
987
|
+
"StreamArn",
|
|
988
|
+
Schema.requiredKey(AWSTableOutputsSchema.fields.StreamArn),
|
|
989
|
+
);
|
|
990
|
+
return value;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
995
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
996
|
+
*/
|
|
997
|
+
get TableName(): Required<AWSTableOutputs>["TableName"] {
|
|
998
|
+
const value: Required<AWSTableOutputs>["TableName"] =
|
|
999
|
+
ResourceOutputBinding.value(
|
|
1000
|
+
this.binding,
|
|
1001
|
+
this.key,
|
|
1002
|
+
"TableName",
|
|
1003
|
+
Schema.requiredKey(AWSTableOutputsSchema.fields.TableName),
|
|
1004
|
+
);
|
|
1005
|
+
return value;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Callers must validate properties before constructing the declaration.
|
|
1011
|
+
* Compatible resources can depend on it before apply supplies provider values.
|
|
1012
|
+
* Reading applied outputs requires a binding to the owning stack.
|
|
1013
|
+
*/
|
|
1014
|
+
export function createAWSTableDeclaration<Props>(
|
|
1015
|
+
key: ResourceKey,
|
|
1016
|
+
props: Props,
|
|
1017
|
+
binding?: ResourceOutputBinding,
|
|
1018
|
+
): AWSTableResource<Props> {
|
|
1019
|
+
const resource: AWSTableResource<Props> = new AWSTableResource<Props>(
|
|
1020
|
+
key,
|
|
1021
|
+
props,
|
|
1022
|
+
binding,
|
|
1023
|
+
);
|
|
1024
|
+
|
|
1025
|
+
return resource;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* The AWSTable resource factory registers a validated declaration in the
|
|
1030
|
+
* stack graph. Its outputs become available after apply saves the resource.
|
|
1031
|
+
*/
|
|
1032
|
+
export const AWSTable = Effect.fn("AWSTable")(function* (input: {
|
|
1033
|
+
logicalId: string;
|
|
1034
|
+
props: AWSTableProps;
|
|
1035
|
+
}) {
|
|
1036
|
+
const graph = yield* ResourceGraphBuilder;
|
|
1037
|
+
|
|
1038
|
+
const key: ResourceKey = { logicalId: input.logicalId };
|
|
1039
|
+
|
|
1040
|
+
const declaration = yield* graph.resource(key);
|
|
1041
|
+
|
|
1042
|
+
const props = yield* Schema.decodeEffect(AWSTablePropsSchema)(input.props);
|
|
1043
|
+
|
|
1044
|
+
yield* declaration.registerEntity(AWSTableResourceTypeSchema, {
|
|
1045
|
+
propsSchema: AWSTablePropsSchema,
|
|
1046
|
+
requestSchema: AWSTableRequestSchema,
|
|
1047
|
+
outputsSchema: AWSTableOutputsSchema,
|
|
1048
|
+
props,
|
|
1049
|
+
});
|
|
1050
|
+
|
|
1051
|
+
const resource: AWSTableResource = createAWSTableDeclaration(
|
|
1052
|
+
key,
|
|
1053
|
+
props,
|
|
1054
|
+
declaration.outputs,
|
|
1055
|
+
);
|
|
1056
|
+
|
|
1057
|
+
return resource;
|
|
1058
|
+
});
|