nomoss 0.0.4 → 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 +23 -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
|
@@ -25,6 +25,30 @@ const AccelerateConfiguration = Schema.Struct({
|
|
|
25
25
|
identifier: "AccelerateConfiguration",
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
+
type ResourceInputAlternatives =
|
|
29
|
+
| "AuthenticatedRead"
|
|
30
|
+
| "AwsExecRead"
|
|
31
|
+
| "BucketOwnerFullControl"
|
|
32
|
+
| "BucketOwnerRead"
|
|
33
|
+
| "LogDeliveryWrite"
|
|
34
|
+
| "Private"
|
|
35
|
+
| "PublicRead"
|
|
36
|
+
| "PublicReadWrite";
|
|
37
|
+
|
|
38
|
+
const ResourceInputAlternatives = Schema.Literals([
|
|
39
|
+
"AuthenticatedRead",
|
|
40
|
+
"AwsExecRead",
|
|
41
|
+
"BucketOwnerFullControl",
|
|
42
|
+
"BucketOwnerRead",
|
|
43
|
+
"LogDeliveryWrite",
|
|
44
|
+
"Private",
|
|
45
|
+
"PublicRead",
|
|
46
|
+
"PublicReadWrite",
|
|
47
|
+
]).annotate({
|
|
48
|
+
description:
|
|
49
|
+
"This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.\n A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.\n S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.\n The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.",
|
|
50
|
+
});
|
|
51
|
+
|
|
28
52
|
interface TagFilter {
|
|
29
53
|
readonly Value: string;
|
|
30
54
|
readonly Key: string;
|
|
@@ -39,6 +63,28 @@ const TagFilter = Schema.Struct({
|
|
|
39
63
|
identifier: "TagFilter",
|
|
40
64
|
});
|
|
41
65
|
|
|
66
|
+
type ResourceInputItems = globalThis.ReadonlyArray<TagFilter>;
|
|
67
|
+
|
|
68
|
+
const ResourceInputItems = Schema.Array(TagFilter)
|
|
69
|
+
.annotate({
|
|
70
|
+
description:
|
|
71
|
+
"The tags to use when evaluating an analytics filter.\n The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.",
|
|
72
|
+
})
|
|
73
|
+
.check(
|
|
74
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
type ResourceInputAlternatives_1 = "CSV" | "ORC" | "Parquet";
|
|
78
|
+
|
|
79
|
+
const ResourceInputAlternatives_1 = Schema.Literals([
|
|
80
|
+
"CSV",
|
|
81
|
+
"ORC",
|
|
82
|
+
"Parquet",
|
|
83
|
+
]).annotate({
|
|
84
|
+
description:
|
|
85
|
+
"Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
|
|
86
|
+
});
|
|
87
|
+
|
|
42
88
|
interface Destination {
|
|
43
89
|
readonly BucketArn:
|
|
44
90
|
| ResourceEntity<{
|
|
@@ -48,7 +94,7 @@ interface Destination {
|
|
|
48
94
|
}>
|
|
49
95
|
| string;
|
|
50
96
|
readonly BucketAccountId?: string;
|
|
51
|
-
readonly Format:
|
|
97
|
+
readonly Format: ResourceInputAlternatives_1;
|
|
52
98
|
readonly Prefix?: string;
|
|
53
99
|
}
|
|
54
100
|
|
|
@@ -83,10 +129,7 @@ const Destination = Schema.Struct({
|
|
|
83
129
|
"The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
|
|
84
130
|
}),
|
|
85
131
|
),
|
|
86
|
-
Format:
|
|
87
|
-
description:
|
|
88
|
-
"Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
|
|
89
|
-
}),
|
|
132
|
+
Format: ResourceInputAlternatives_1,
|
|
90
133
|
Prefix: Schema.optionalKey(
|
|
91
134
|
Schema.String.annotate({
|
|
92
135
|
description:
|
|
@@ -99,6 +142,71 @@ const Destination = Schema.Struct({
|
|
|
99
142
|
identifier: "Destination",
|
|
100
143
|
});
|
|
101
144
|
|
|
145
|
+
interface DataExport {
|
|
146
|
+
readonly Destination: Destination;
|
|
147
|
+
readonly OutputSchemaVersion: "V_1";
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const DataExport = Schema.Struct({
|
|
151
|
+
Destination: Destination,
|
|
152
|
+
OutputSchemaVersion: Schema.Literal("V_1").annotate({
|
|
153
|
+
description:
|
|
154
|
+
"The version of the output schema to use when exporting data. Must be ``V_1``.",
|
|
155
|
+
}),
|
|
156
|
+
}).annotate({
|
|
157
|
+
description:
|
|
158
|
+
"Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
|
|
159
|
+
identifier: "DataExport",
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
interface StorageClassAnalysis {
|
|
163
|
+
readonly DataExport?: DataExport;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const StorageClassAnalysis = Schema.Struct({
|
|
167
|
+
DataExport: Schema.optionalKey(DataExport),
|
|
168
|
+
}).annotate({
|
|
169
|
+
description:
|
|
170
|
+
"Specifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket.",
|
|
171
|
+
identifier: "StorageClassAnalysis",
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
interface AnalyticsConfiguration {
|
|
175
|
+
readonly TagFilters?: ResourceInputItems;
|
|
176
|
+
readonly StorageClassAnalysis: StorageClassAnalysis;
|
|
177
|
+
readonly Id: string;
|
|
178
|
+
readonly Prefix?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const AnalyticsConfiguration = Schema.Struct({
|
|
182
|
+
TagFilters: Schema.optionalKey(ResourceInputItems),
|
|
183
|
+
StorageClassAnalysis: StorageClassAnalysis,
|
|
184
|
+
Id: Schema.String.annotate({
|
|
185
|
+
description: "The ID that identifies the analytics configuration.",
|
|
186
|
+
}),
|
|
187
|
+
Prefix: Schema.optionalKey(
|
|
188
|
+
Schema.String.annotate({
|
|
189
|
+
description:
|
|
190
|
+
"The prefix that an object must have to be included in the analytics results.",
|
|
191
|
+
}),
|
|
192
|
+
),
|
|
193
|
+
}).annotate({
|
|
194
|
+
description:
|
|
195
|
+
"Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
|
|
196
|
+
identifier: "AnalyticsConfiguration",
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
type ResourceInputAlternatives_2 = "aws:kms" | "AES256" | "aws:kms:dsse";
|
|
200
|
+
|
|
201
|
+
const ResourceInputAlternatives_2 = Schema.Literals([
|
|
202
|
+
"aws:kms",
|
|
203
|
+
"AES256",
|
|
204
|
+
"aws:kms:dsse",
|
|
205
|
+
]).annotate({
|
|
206
|
+
description:
|
|
207
|
+
"Server-side encryption algorithm to use for the default encryption.\n For directory buckets, there are only two supported values for server-side encryption: ``AES256`` and ``aws:kms``.",
|
|
208
|
+
});
|
|
209
|
+
|
|
102
210
|
interface ServerSideEncryptionByDefault {
|
|
103
211
|
readonly KMSMasterKeyID?:
|
|
104
212
|
| ResourceEntity<{
|
|
@@ -107,7 +215,7 @@ interface ServerSideEncryptionByDefault {
|
|
|
107
215
|
readonly resource: "alias";
|
|
108
216
|
}>
|
|
109
217
|
| string;
|
|
110
|
-
readonly SSEAlgorithm:
|
|
218
|
+
readonly SSEAlgorithm: ResourceInputAlternatives_2;
|
|
111
219
|
}
|
|
112
220
|
|
|
113
221
|
const ServerSideEncryptionByDefault = Schema.Struct({
|
|
@@ -137,19 +245,14 @@ const ServerSideEncryptionByDefault = Schema.Struct({
|
|
|
137
245
|
}),
|
|
138
246
|
]),
|
|
139
247
|
),
|
|
140
|
-
SSEAlgorithm:
|
|
141
|
-
{
|
|
142
|
-
description:
|
|
143
|
-
"Server-side encryption algorithm to use for the default encryption.\n For directory buckets, there are only two supported values for server-side encryption: ``AES256`` and ``aws:kms``.",
|
|
144
|
-
},
|
|
145
|
-
),
|
|
248
|
+
SSEAlgorithm: ResourceInputAlternatives_2,
|
|
146
249
|
}).annotate({
|
|
147
250
|
description:
|
|
148
251
|
"Describes the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied. For more information, see [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html).\n + *General purpose buckets* - If you don't specify a customer managed key at configuration, Amazon S3 automatically creates an AWS KMS key (``aws/s3``) in your AWS account the first time that you add an object encrypted with SSE-KMS to a bucket. By default, Amazon S3 uses this KMS key for SSE-KMS. \n + *Directory buckets* - Your SSE-KMS configuration can only support 1 [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) per directory bucket's lifetime. The [managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) (``aws/s3``) isn't supported. \n + *Directory buckets* - For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS.",
|
|
149
252
|
identifier: "ServerSideEncryptionByDefault",
|
|
150
253
|
});
|
|
151
254
|
|
|
152
|
-
type BlockedEncryptionTypeList = ReadonlyArray<"NONE" | "SSE-C">;
|
|
255
|
+
type BlockedEncryptionTypeList = globalThis.ReadonlyArray<"NONE" | "SSE-C">;
|
|
153
256
|
|
|
154
257
|
const BlockedEncryptionTypeList = Schema.Array(
|
|
155
258
|
Schema.Literals(["NONE", "SSE-C"]),
|
|
@@ -162,13 +265,74 @@ const BlockedEncryptionTypeList = Schema.Array(
|
|
|
162
265
|
}),
|
|
163
266
|
);
|
|
164
267
|
|
|
268
|
+
interface BlockedEncryptionTypes {
|
|
269
|
+
readonly EncryptionType?: BlockedEncryptionTypeList;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const BlockedEncryptionTypes = Schema.Struct({
|
|
273
|
+
EncryptionType: Schema.optionalKey(BlockedEncryptionTypeList),
|
|
274
|
+
}).annotate({
|
|
275
|
+
description:
|
|
276
|
+
"A bucket-level setting for Amazon S3 general purpose buckets used to prevent the upload of new objects encrypted with the specified server-side encryption type. For example, blocking an encryption type will block ``PutObject``, ``CopyObject``, ``PostObject``, multipart upload, and replication requests to the bucket for objects with the specified encryption type. However, you can continue to read and list any pre-existing objects already encrypted with the specified encryption type. For more information, see [Blocking or unblocking SSE-C for a general purpose bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html).\n This data type is used with the following actions:\n + [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html) \n + [GetBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html) \n + [DeleteBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html) \n \n + Permissions You must have the s3:PutEncryptionConfiguration permission to block or unblock an encryption type for a bucket. You must have the s3:GetEncryptionConfiguration permission to view a bucket's encryption type.",
|
|
277
|
+
identifier: "BlockedEncryptionTypes",
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
interface ServerSideEncryptionRule {
|
|
281
|
+
readonly BucketKeyEnabled?: boolean;
|
|
282
|
+
readonly ServerSideEncryptionByDefault?: ServerSideEncryptionByDefault;
|
|
283
|
+
readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
const ServerSideEncryptionRule = Schema.Struct({
|
|
287
|
+
BucketKeyEnabled: Schema.optionalKey(
|
|
288
|
+
Schema.Boolean.annotate({
|
|
289
|
+
description:
|
|
290
|
+
"Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the ``BucketKeyEnabled`` element to ``true`` causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.\n For more information, see [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the *Amazon S3 User Guide*.",
|
|
291
|
+
}),
|
|
292
|
+
),
|
|
293
|
+
ServerSideEncryptionByDefault: Schema.optionalKey(
|
|
294
|
+
ServerSideEncryptionByDefault,
|
|
295
|
+
),
|
|
296
|
+
BlockedEncryptionTypes: Schema.optionalKey(BlockedEncryptionTypes),
|
|
297
|
+
}).annotate({
|
|
298
|
+
description:
|
|
299
|
+
"Specifies the default server-side encryption configuration.\n + *General purpose buckets* - If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner.\n + *Directory buckets* - When you specify an [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) for encryption in your directory bucket, only use the key ID or key ARN. The key alias format of the KMS key isn't supported.",
|
|
300
|
+
identifier: "ServerSideEncryptionRule",
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
interface BucketEncryption {
|
|
304
|
+
readonly ServerSideEncryptionConfiguration: globalThis.ReadonlyArray<ServerSideEncryptionRule>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const BucketEncryption = Schema.Struct({
|
|
308
|
+
ServerSideEncryptionConfiguration: Schema.Array(ServerSideEncryptionRule)
|
|
309
|
+
.annotate({
|
|
310
|
+
description:
|
|
311
|
+
"Specifies the default server-side-encryption configuration.",
|
|
312
|
+
})
|
|
313
|
+
.check(
|
|
314
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
315
|
+
),
|
|
316
|
+
}).annotate({
|
|
317
|
+
description:
|
|
318
|
+
"Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.",
|
|
319
|
+
identifier: "BucketEncryption",
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
type ResourceInputAlternatives_3 = "global" | "account-regional";
|
|
323
|
+
|
|
324
|
+
const ResourceInputAlternatives_3 = Schema.Literals([
|
|
325
|
+
"global",
|
|
326
|
+
"account-regional",
|
|
327
|
+
]).annotate({ description: "" });
|
|
328
|
+
|
|
165
329
|
interface CorsRule {
|
|
166
|
-
readonly AllowedHeaders?: ReadonlyArray<string>;
|
|
167
|
-
readonly AllowedMethods: ReadonlyArray<
|
|
330
|
+
readonly AllowedHeaders?: globalThis.ReadonlyArray<string>;
|
|
331
|
+
readonly AllowedMethods: globalThis.ReadonlyArray<
|
|
168
332
|
"GET" | "PUT" | "HEAD" | "POST" | "DELETE"
|
|
169
333
|
>;
|
|
170
|
-
readonly AllowedOrigins: ReadonlyArray<string>;
|
|
171
|
-
readonly ExposedHeaders?: ReadonlyArray<string>;
|
|
334
|
+
readonly AllowedOrigins: globalThis.ReadonlyArray<string>;
|
|
335
|
+
readonly ExposedHeaders?: globalThis.ReadonlyArray<string>;
|
|
172
336
|
readonly Id?: string;
|
|
173
337
|
readonly MaxAge?: number;
|
|
174
338
|
}
|
|
@@ -239,6 +403,25 @@ const CorsRule = Schema.Struct({
|
|
|
239
403
|
identifier: "CorsRule",
|
|
240
404
|
});
|
|
241
405
|
|
|
406
|
+
interface CorsConfiguration {
|
|
407
|
+
readonly CorsRules: globalThis.ReadonlyArray<CorsRule>;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
const CorsConfiguration = Schema.Struct({
|
|
411
|
+
CorsRules: Schema.Array(CorsRule)
|
|
412
|
+
.annotate({
|
|
413
|
+
description:
|
|
414
|
+
"A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.",
|
|
415
|
+
})
|
|
416
|
+
.check(
|
|
417
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
418
|
+
),
|
|
419
|
+
}).annotate({
|
|
420
|
+
description:
|
|
421
|
+
"Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide*.",
|
|
422
|
+
identifier: "CorsConfiguration",
|
|
423
|
+
});
|
|
424
|
+
|
|
242
425
|
interface Tiering {
|
|
243
426
|
readonly AccessTier: "ARCHIVE_ACCESS" | "DEEP_ARCHIVE_ACCESS";
|
|
244
427
|
readonly Days: number;
|
|
@@ -262,6 +445,60 @@ const Tiering = Schema.Struct({
|
|
|
262
445
|
identifier: "Tiering",
|
|
263
446
|
});
|
|
264
447
|
|
|
448
|
+
interface IntelligentTieringConfiguration {
|
|
449
|
+
readonly Id: string;
|
|
450
|
+
readonly Prefix?: string;
|
|
451
|
+
readonly Status: "Disabled" | "Enabled";
|
|
452
|
+
readonly TagFilters?: globalThis.ReadonlyArray<TagFilter>;
|
|
453
|
+
readonly Tierings: globalThis.ReadonlyArray<Tiering>;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
const IntelligentTieringConfiguration = Schema.Struct({
|
|
457
|
+
Id: Schema.String.annotate({
|
|
458
|
+
description:
|
|
459
|
+
"The ID used to identify the S3 Intelligent-Tiering configuration.",
|
|
460
|
+
}),
|
|
461
|
+
Prefix: Schema.optionalKey(
|
|
462
|
+
Schema.String.annotate({
|
|
463
|
+
description:
|
|
464
|
+
"An object key name prefix that identifies the subset of objects to which the rule applies.",
|
|
465
|
+
}),
|
|
466
|
+
),
|
|
467
|
+
Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
|
|
468
|
+
description: "Specifies the status of the configuration.",
|
|
469
|
+
}),
|
|
470
|
+
TagFilters: Schema.optionalKey(
|
|
471
|
+
Schema.Array(TagFilter)
|
|
472
|
+
.annotate({ description: "A container for a key-value pair." })
|
|
473
|
+
.check(
|
|
474
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
475
|
+
),
|
|
476
|
+
),
|
|
477
|
+
Tierings: Schema.Array(Tiering)
|
|
478
|
+
.annotate({
|
|
479
|
+
description:
|
|
480
|
+
"Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration. At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier: ``ARCHIVE_ACCESS`` and ``DEEP_ARCHIVE_ACCESS``.\n You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers.",
|
|
481
|
+
})
|
|
482
|
+
.check(
|
|
483
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
484
|
+
),
|
|
485
|
+
}).annotate({
|
|
486
|
+
description:
|
|
487
|
+
"Specifies the S3 Intelligent-Tiering configuration for an Amazon S3 bucket.\n For information about the S3 Intelligent-Tiering storage class, see [Storage class for automatically optimizing frequently and infrequently accessed objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access).",
|
|
488
|
+
identifier: "IntelligentTieringConfiguration",
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
type ResourceInputItems_1 =
|
|
492
|
+
globalThis.ReadonlyArray<IntelligentTieringConfiguration>;
|
|
493
|
+
|
|
494
|
+
const ResourceInputItems_1 = Schema.Array(IntelligentTieringConfiguration)
|
|
495
|
+
.annotate({
|
|
496
|
+
description: "Defines how Amazon S3 handles Intelligent-Tiering storage.",
|
|
497
|
+
})
|
|
498
|
+
.check(
|
|
499
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
500
|
+
);
|
|
501
|
+
|
|
265
502
|
interface Destination_1 {
|
|
266
503
|
readonly BucketArn:
|
|
267
504
|
| ResourceEntity<{
|
|
@@ -271,7 +508,7 @@ interface Destination_1 {
|
|
|
271
508
|
}>
|
|
272
509
|
| string;
|
|
273
510
|
readonly BucketAccountId?: string;
|
|
274
|
-
readonly Format:
|
|
511
|
+
readonly Format: ResourceInputAlternatives_1;
|
|
275
512
|
readonly Prefix?: string;
|
|
276
513
|
}
|
|
277
514
|
|
|
@@ -306,10 +543,7 @@ const Destination_1 = Schema.Struct({
|
|
|
306
543
|
"The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
|
|
307
544
|
}),
|
|
308
545
|
),
|
|
309
|
-
Format:
|
|
310
|
-
description:
|
|
311
|
-
"Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
|
|
312
|
-
}),
|
|
546
|
+
Format: ResourceInputAlternatives_1,
|
|
313
547
|
Prefix: Schema.optionalKey(
|
|
314
548
|
Schema.String.annotate({
|
|
315
549
|
description:
|
|
@@ -322,6 +556,105 @@ const Destination_1 = Schema.Struct({
|
|
|
322
556
|
identifier: "Destination_1",
|
|
323
557
|
});
|
|
324
558
|
|
|
559
|
+
type ResourceInputAlternatives_4 = "All" | "Current";
|
|
560
|
+
|
|
561
|
+
const ResourceInputAlternatives_4 = Schema.Literals([
|
|
562
|
+
"All",
|
|
563
|
+
"Current",
|
|
564
|
+
]).annotate({
|
|
565
|
+
description:
|
|
566
|
+
"Object versions to include in the inventory list. If set to ``All``, the list includes all the object versions, which adds the version-related fields ``VersionId``, ``IsLatest``, and ``DeleteMarker`` to the list. If set to ``Current``, the list does not contain these version-related fields.",
|
|
567
|
+
});
|
|
568
|
+
|
|
569
|
+
type ResourceInputItems_2 = globalThis.ReadonlyArray<
|
|
570
|
+
| "Size"
|
|
571
|
+
| "LastModifiedDate"
|
|
572
|
+
| "StorageClass"
|
|
573
|
+
| "ETag"
|
|
574
|
+
| "IsMultipartUploaded"
|
|
575
|
+
| "ReplicationStatus"
|
|
576
|
+
| "EncryptionStatus"
|
|
577
|
+
| "ObjectLockRetainUntilDate"
|
|
578
|
+
| "ObjectLockMode"
|
|
579
|
+
| "ObjectLockLegalHoldStatus"
|
|
580
|
+
| "IntelligentTieringAccessTier"
|
|
581
|
+
| "BucketKeyStatus"
|
|
582
|
+
| "ChecksumAlgorithm"
|
|
583
|
+
| "ObjectAccessControlList"
|
|
584
|
+
| "ObjectOwner"
|
|
585
|
+
| "LifecycleExpirationDate"
|
|
586
|
+
>;
|
|
587
|
+
|
|
588
|
+
const ResourceInputItems_2 = Schema.Array(
|
|
589
|
+
Schema.Literals([
|
|
590
|
+
"Size",
|
|
591
|
+
"LastModifiedDate",
|
|
592
|
+
"StorageClass",
|
|
593
|
+
"ETag",
|
|
594
|
+
"IsMultipartUploaded",
|
|
595
|
+
"ReplicationStatus",
|
|
596
|
+
"EncryptionStatus",
|
|
597
|
+
"ObjectLockRetainUntilDate",
|
|
598
|
+
"ObjectLockMode",
|
|
599
|
+
"ObjectLockLegalHoldStatus",
|
|
600
|
+
"IntelligentTieringAccessTier",
|
|
601
|
+
"BucketKeyStatus",
|
|
602
|
+
"ChecksumAlgorithm",
|
|
603
|
+
"ObjectAccessControlList",
|
|
604
|
+
"ObjectOwner",
|
|
605
|
+
"LifecycleExpirationDate",
|
|
606
|
+
]),
|
|
607
|
+
)
|
|
608
|
+
.annotate({
|
|
609
|
+
description:
|
|
610
|
+
"Contains the optional fields that are included in the inventory results.",
|
|
611
|
+
})
|
|
612
|
+
.check(
|
|
613
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
614
|
+
);
|
|
615
|
+
|
|
616
|
+
type ResourceInputAlternatives_5 = "Daily" | "Weekly";
|
|
617
|
+
|
|
618
|
+
const ResourceInputAlternatives_5 = Schema.Literals([
|
|
619
|
+
"Daily",
|
|
620
|
+
"Weekly",
|
|
621
|
+
]).annotate({
|
|
622
|
+
description: "Specifies the schedule for generating inventory results.",
|
|
623
|
+
});
|
|
624
|
+
|
|
625
|
+
interface InventoryConfiguration {
|
|
626
|
+
readonly Destination: Destination_1;
|
|
627
|
+
readonly Enabled: boolean;
|
|
628
|
+
readonly Id: string;
|
|
629
|
+
readonly IncludedObjectVersions: ResourceInputAlternatives_4;
|
|
630
|
+
readonly OptionalFields?: ResourceInputItems_2;
|
|
631
|
+
readonly Prefix?: string;
|
|
632
|
+
readonly ScheduleFrequency: ResourceInputAlternatives_5;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
const InventoryConfiguration = Schema.Struct({
|
|
636
|
+
Destination: Destination_1,
|
|
637
|
+
Enabled: Schema.Boolean.annotate({
|
|
638
|
+
description:
|
|
639
|
+
"Specifies whether the inventory is enabled or disabled. If set to ``True``, an inventory list is generated. If set to ``False``, no inventory list is generated.",
|
|
640
|
+
}),
|
|
641
|
+
Id: Schema.String.annotate({
|
|
642
|
+
description: "The ID used to identify the inventory configuration.",
|
|
643
|
+
}),
|
|
644
|
+
IncludedObjectVersions: ResourceInputAlternatives_4,
|
|
645
|
+
OptionalFields: Schema.optionalKey(ResourceInputItems_2),
|
|
646
|
+
Prefix: Schema.optionalKey(
|
|
647
|
+
Schema.String.annotate({
|
|
648
|
+
description: "Specifies the inventory filter prefix.",
|
|
649
|
+
}),
|
|
650
|
+
),
|
|
651
|
+
ScheduleFrequency: ResourceInputAlternatives_5,
|
|
652
|
+
}).annotate({
|
|
653
|
+
description:
|
|
654
|
+
"Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
|
|
655
|
+
identifier: "InventoryConfiguration",
|
|
656
|
+
});
|
|
657
|
+
|
|
325
658
|
interface AbortIncompleteMultipartUpload {
|
|
326
659
|
readonly DaysAfterInitiation: number;
|
|
327
660
|
}
|
|
@@ -424,612 +757,827 @@ const NoncurrentVersionTransition = Schema.Struct({
|
|
|
424
757
|
identifier: "NoncurrentVersionTransition",
|
|
425
758
|
});
|
|
426
759
|
|
|
427
|
-
interface
|
|
428
|
-
readonly
|
|
760
|
+
interface Transition {
|
|
761
|
+
readonly StorageClass:
|
|
762
|
+
| "DEEP_ARCHIVE"
|
|
763
|
+
| "GLACIER"
|
|
764
|
+
| "Glacier"
|
|
765
|
+
| "GLACIER_IR"
|
|
766
|
+
| "INTELLIGENT_TIERING"
|
|
767
|
+
| "ONEZONE_IA"
|
|
768
|
+
| "STANDARD_IA";
|
|
769
|
+
readonly TransitionDate?: Iso8601UTC;
|
|
770
|
+
readonly TransitionInDays?: number;
|
|
429
771
|
}
|
|
430
772
|
|
|
431
|
-
const
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
identifier: "PartitionedPrefix",
|
|
442
|
-
});
|
|
443
|
-
|
|
444
|
-
interface S3TablesDestination {
|
|
445
|
-
readonly TableBucketArn: string;
|
|
446
|
-
readonly TableName: string;
|
|
447
|
-
readonly TableNamespace?: string;
|
|
448
|
-
readonly TableArn?: string;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
const S3TablesDestination = Schema.Struct({
|
|
452
|
-
TableBucketArn: Schema.String.annotate({
|
|
453
|
-
description:
|
|
454
|
-
"The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. The destination table bucket must be in the same Region and AWS-account as the general purpose bucket.",
|
|
455
|
-
}),
|
|
456
|
-
TableName: Schema.String.annotate({
|
|
773
|
+
const Transition = Schema.Struct({
|
|
774
|
+
StorageClass: Schema.Literals([
|
|
775
|
+
"DEEP_ARCHIVE",
|
|
776
|
+
"GLACIER",
|
|
777
|
+
"Glacier",
|
|
778
|
+
"GLACIER_IR",
|
|
779
|
+
"INTELLIGENT_TIERING",
|
|
780
|
+
"ONEZONE_IA",
|
|
781
|
+
"STANDARD_IA",
|
|
782
|
+
]).annotate({
|
|
457
783
|
description:
|
|
458
|
-
"The
|
|
784
|
+
"The storage class to which you want the object to transition.",
|
|
459
785
|
}),
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
"The table bucket namespace for the metadata table in your metadata table configuration. This value is always ``aws_s3_metadata``.",
|
|
464
|
-
}),
|
|
465
|
-
),
|
|
466
|
-
TableArn: Schema.optionalKey(
|
|
467
|
-
Schema.String.annotate({
|
|
786
|
+
TransitionDate: Schema.optionalKey(Iso8601UTC),
|
|
787
|
+
TransitionInDays: Schema.optionalKey(
|
|
788
|
+
Schema.Number.annotate({
|
|
468
789
|
description:
|
|
469
|
-
"
|
|
470
|
-
}),
|
|
790
|
+
"Indicates the number of days after creation when objects are transitioned to the specified storage class. If the specified storage class is ``INTELLIGENT_TIERING``, ``GLACIER_IR``, ``GLACIER``, or ``DEEP_ARCHIVE``, valid values are ``0`` or positive integers. If the specified storage class is ``STANDARD_IA`` or ``ONEZONE_IA``, valid values are positive integers greater than ``30``. Be aware that some storage classes have a minimum storage duration and that you're charged for transitioning objects before their minimum storage duration. For more information, see [Constraints and considerations for transitions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html#lifecycle-configuration-constraints) in the *Amazon S3 User Guide*.",
|
|
791
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
471
792
|
),
|
|
472
793
|
}).annotate({
|
|
473
794
|
description:
|
|
474
|
-
"
|
|
475
|
-
identifier: "
|
|
795
|
+
"Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see [Transitioning Objects Using Amazon S3 Lifecycle](https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) in the *Amazon S3 User Guide*.",
|
|
796
|
+
identifier: "Transition",
|
|
476
797
|
});
|
|
477
798
|
|
|
478
|
-
interface
|
|
479
|
-
readonly
|
|
480
|
-
readonly
|
|
481
|
-
readonly
|
|
799
|
+
interface Rule {
|
|
800
|
+
readonly AbortIncompleteMultipartUpload?: AbortIncompleteMultipartUpload;
|
|
801
|
+
readonly ExpirationDate?: Iso8601UTC;
|
|
802
|
+
readonly ExpirationInDays?: number;
|
|
803
|
+
readonly ExpiredObjectDeleteMarker?: boolean;
|
|
804
|
+
readonly Id?: string;
|
|
805
|
+
readonly NoncurrentVersionExpirationInDays?: number;
|
|
806
|
+
readonly NoncurrentVersionExpiration?: NoncurrentVersionExpiration;
|
|
807
|
+
readonly NoncurrentVersionTransition?: NoncurrentVersionTransition;
|
|
808
|
+
readonly NoncurrentVersionTransitions?: globalThis.ReadonlyArray<NoncurrentVersionTransition>;
|
|
809
|
+
readonly Prefix?: string;
|
|
810
|
+
readonly Status: "Enabled" | "Disabled";
|
|
811
|
+
readonly TagFilters?: globalThis.ReadonlyArray<TagFilter>;
|
|
812
|
+
readonly ObjectSizeGreaterThan?: string;
|
|
813
|
+
readonly ObjectSizeLessThan?: string;
|
|
814
|
+
readonly Transition?: Transition;
|
|
815
|
+
readonly Transitions?: globalThis.ReadonlyArray<Transition>;
|
|
482
816
|
}
|
|
483
817
|
|
|
484
|
-
const
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
Schema.
|
|
818
|
+
const Rule = Schema.Struct({
|
|
819
|
+
AbortIncompleteMultipartUpload: Schema.optionalKey(
|
|
820
|
+
AbortIncompleteMultipartUpload,
|
|
821
|
+
),
|
|
822
|
+
ExpirationDate: Schema.optionalKey(Iso8601UTC),
|
|
823
|
+
ExpirationInDays: Schema.optionalKey(
|
|
824
|
+
Schema.Number.annotate({
|
|
491
825
|
description:
|
|
492
|
-
"
|
|
826
|
+
"Indicates the number of days after creation when objects are deleted from Amazon S3 and Amazon S3 Glacier. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.",
|
|
827
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
828
|
+
),
|
|
829
|
+
ExpiredObjectDeleteMarker: Schema.optionalKey(
|
|
830
|
+
Schema.Boolean.annotate({
|
|
831
|
+
description:
|
|
832
|
+
"Indicates whether Amazon S3 will remove a delete marker without any noncurrent versions. If set to true, the delete marker will be removed if there are no noncurrent versions. This cannot be specified with ``ExpirationInDays``, ``ExpirationDate``, or ``TagFilters``.",
|
|
493
833
|
}),
|
|
494
834
|
),
|
|
495
|
-
|
|
835
|
+
Id: Schema.optionalKey(
|
|
496
836
|
Schema.String.annotate({
|
|
497
837
|
description:
|
|
498
|
-
"
|
|
499
|
-
})
|
|
838
|
+
"Unique identifier for the rule. The value can't be longer than 255 characters.",
|
|
839
|
+
}).check(
|
|
840
|
+
Schema.isMaxCodePoints(255).annotate({
|
|
841
|
+
expected: "a string with at most 255 code points",
|
|
842
|
+
}),
|
|
843
|
+
),
|
|
500
844
|
),
|
|
501
|
-
|
|
502
|
-
description: "The destination information for the S3 Metadata configuration.",
|
|
503
|
-
identifier: "MetadataDestination",
|
|
504
|
-
});
|
|
505
|
-
|
|
506
|
-
interface RecordExpiration {
|
|
507
|
-
readonly Expiration: "ENABLED" | "DISABLED";
|
|
508
|
-
readonly Days?: number;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
const RecordExpiration = Schema.Struct({
|
|
512
|
-
Expiration: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
|
|
513
|
-
description:
|
|
514
|
-
"Specifies whether journal table record expiration is enabled or disabled.",
|
|
515
|
-
}),
|
|
516
|
-
Days: Schema.optionalKey(
|
|
845
|
+
NoncurrentVersionExpirationInDays: Schema.optionalKey(
|
|
517
846
|
Schema.Number.annotate({
|
|
518
847
|
description:
|
|
519
|
-
"
|
|
848
|
+
"(Deprecated.) For buckets with versioning enabled (or suspended), specifies the time, in days, between when a new version of the object is uploaded to the bucket and when old versions of the object expire. When object versions expire, Amazon S3 permanently deletes them. If you specify a transition and expiration time, the expiration time must be later than the transition time.",
|
|
520
849
|
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
521
850
|
),
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
description:
|
|
536
|
-
"The encryption type specified for a metadata table. To specify server-side encryption with KMSlong (KMS) keys (SSE-KMS), use the ``aws:kms`` value. To specify server-side encryption with Amazon S3 managed keys (SSE-S3), use the ``AES256`` value.",
|
|
537
|
-
}),
|
|
538
|
-
KmsKeyArn: Schema.optionalKey(
|
|
851
|
+
NoncurrentVersionExpiration: Schema.optionalKey(NoncurrentVersionExpiration),
|
|
852
|
+
NoncurrentVersionTransition: Schema.optionalKey(NoncurrentVersionTransition),
|
|
853
|
+
NoncurrentVersionTransitions: Schema.optionalKey(
|
|
854
|
+
Schema.Array(NoncurrentVersionTransition)
|
|
855
|
+
.annotate({
|
|
856
|
+
description:
|
|
857
|
+
"For buckets with versioning enabled (or suspended), one or more transition rules that specify when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the ``NoncurrentVersionTransition`` property.",
|
|
858
|
+
})
|
|
859
|
+
.check(
|
|
860
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
861
|
+
),
|
|
862
|
+
),
|
|
863
|
+
Prefix: Schema.optionalKey(
|
|
539
864
|
Schema.String.annotate({
|
|
540
865
|
description:
|
|
541
|
-
"
|
|
866
|
+
"Object key prefix that identifies one or more objects to which this rule applies.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
|
|
542
867
|
}),
|
|
543
868
|
),
|
|
544
|
-
|
|
545
|
-
description:
|
|
546
|
-
"The encryption settings for an S3 Metadata journal table or inventory table configuration.",
|
|
547
|
-
identifier: "MetadataTableEncryptionConfiguration",
|
|
548
|
-
});
|
|
549
|
-
|
|
550
|
-
interface EventBridgeConfiguration {
|
|
551
|
-
readonly EventBridgeEnabled: boolean;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
const EventBridgeConfiguration = Schema.Struct({
|
|
555
|
-
EventBridgeEnabled: Schema.Boolean.annotate({
|
|
556
|
-
description: "Enables delivery of events to Amazon EventBridge.",
|
|
557
|
-
}),
|
|
558
|
-
}).annotate({
|
|
559
|
-
description:
|
|
560
|
-
"Amazon S3 can send events to Amazon EventBridge whenever certain events happen in your bucket, see [Using EventBridge](https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventBridge.html) in the *Amazon S3 User Guide*.\n Unlike other destinations, delivery of events to EventBridge can be either enabled or disabled for a bucket. If enabled, all events will be sent to EventBridge and you can use EventBridge rules to route events to additional targets. For more information, see [What Is Amazon EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html) in the *Amazon EventBridge User Guide*",
|
|
561
|
-
identifier: "EventBridgeConfiguration",
|
|
562
|
-
});
|
|
563
|
-
|
|
564
|
-
interface FilterRule {
|
|
565
|
-
readonly Name: string;
|
|
566
|
-
readonly Value: string;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
const FilterRule = Schema.Struct({
|
|
570
|
-
Name: Schema.String.annotate({
|
|
869
|
+
Status: Schema.Literals(["Enabled", "Disabled"]).annotate({
|
|
571
870
|
description:
|
|
572
|
-
"
|
|
573
|
-
}).check(
|
|
574
|
-
Schema.isMaxCodePoints(1024).annotate({
|
|
575
|
-
expected: "a string with at most 1024 code points",
|
|
576
|
-
}),
|
|
577
|
-
),
|
|
578
|
-
Value: Schema.String.annotate({
|
|
579
|
-
description: "The value that the filter searches for in object key names.",
|
|
871
|
+
"If ``Enabled``, the rule is currently being applied. If ``Disabled``, the rule is not currently being applied.",
|
|
580
872
|
}),
|
|
873
|
+
TagFilters: Schema.optionalKey(
|
|
874
|
+
Schema.Array(TagFilter)
|
|
875
|
+
.annotate({
|
|
876
|
+
description:
|
|
877
|
+
"Tags to use to identify a subset of objects to which the lifecycle rule applies.",
|
|
878
|
+
})
|
|
879
|
+
.check(
|
|
880
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
881
|
+
),
|
|
882
|
+
),
|
|
883
|
+
ObjectSizeGreaterThan: Schema.optionalKey(
|
|
884
|
+
Schema.String.annotate({
|
|
885
|
+
description:
|
|
886
|
+
"Specifies the minimum object size in bytes for this rule to apply to. Objects must be larger than this value in bytes. For more information about size based rules, see [Lifecycle configuration using size-based rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html#lc-size-rules) in the *Amazon S3 User Guide*.",
|
|
887
|
+
})
|
|
888
|
+
.check(
|
|
889
|
+
Schema.isMaxCodePoints(20).annotate({
|
|
890
|
+
expected: "a string with at most 20 code points",
|
|
891
|
+
}),
|
|
892
|
+
)
|
|
893
|
+
.check(
|
|
894
|
+
Schema.isPattern(new globalThis.RegExp("[0-9]+", "u")).annotate({
|
|
895
|
+
expected: "a string matching the RegExp [0-9]+",
|
|
896
|
+
}),
|
|
897
|
+
),
|
|
898
|
+
),
|
|
899
|
+
ObjectSizeLessThan: Schema.optionalKey(
|
|
900
|
+
Schema.String.annotate({
|
|
901
|
+
description:
|
|
902
|
+
"Specifies the maximum object size in bytes for this rule to apply to. Objects must be smaller than this value in bytes. For more information about sized based rules, see [Lifecycle configuration using size-based rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html#lc-size-rules) in the *Amazon S3 User Guide*.",
|
|
903
|
+
})
|
|
904
|
+
.check(
|
|
905
|
+
Schema.isMaxCodePoints(20).annotate({
|
|
906
|
+
expected: "a string with at most 20 code points",
|
|
907
|
+
}),
|
|
908
|
+
)
|
|
909
|
+
.check(
|
|
910
|
+
Schema.isPattern(new globalThis.RegExp("[0-9]+", "u")).annotate({
|
|
911
|
+
expected: "a string matching the RegExp [0-9]+",
|
|
912
|
+
}),
|
|
913
|
+
),
|
|
914
|
+
),
|
|
915
|
+
Transition: Schema.optionalKey(Transition),
|
|
916
|
+
Transitions: Schema.optionalKey(
|
|
917
|
+
Schema.Array(Transition)
|
|
918
|
+
.annotate({
|
|
919
|
+
description:
|
|
920
|
+
"One or more transition rules that specify when an object transitions to a specified storage class. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time. If you specify this property, don't specify the ``Transition`` property.",
|
|
921
|
+
})
|
|
922
|
+
.check(
|
|
923
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
924
|
+
),
|
|
925
|
+
),
|
|
581
926
|
}).annotate({
|
|
582
927
|
description:
|
|
583
|
-
"Specifies
|
|
584
|
-
identifier: "
|
|
928
|
+
"Specifies lifecycle rules for an Amazon S3 bucket. For more information, see [Put Bucket Lifecycle Configuration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html) in the *Amazon S3 API Reference*.\n You must specify at least one of the following properties: ``AbortIncompleteMultipartUpload``, ``ExpirationDate``, ``ExpirationInDays``, ``NoncurrentVersionExpirationInDays``, ``NoncurrentVersionTransition``, ``NoncurrentVersionTransitions``, ``Transition``, or ``Transitions``.",
|
|
929
|
+
identifier: "Rule",
|
|
585
930
|
});
|
|
586
931
|
|
|
587
|
-
interface
|
|
588
|
-
readonly
|
|
589
|
-
readonly
|
|
590
|
-
|
|
932
|
+
interface LifecycleConfiguration {
|
|
933
|
+
readonly Rules: globalThis.ReadonlyArray<Rule>;
|
|
934
|
+
readonly TransitionDefaultMinimumObjectSize?:
|
|
935
|
+
| "varies_by_storage_class"
|
|
936
|
+
| "all_storage_classes_128K";
|
|
591
937
|
}
|
|
592
938
|
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
description:
|
|
597
|
-
"The number of years that you want to specify for the default retention period. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.",
|
|
598
|
-
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
599
|
-
),
|
|
600
|
-
Days: Schema.optionalKey(
|
|
601
|
-
Schema.Number.annotate({
|
|
939
|
+
const LifecycleConfiguration = Schema.Struct({
|
|
940
|
+
Rules: Schema.Array(Rule)
|
|
941
|
+
.annotate({
|
|
602
942
|
description:
|
|
603
|
-
"
|
|
604
|
-
})
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
943
|
+
"A lifecycle rule for individual objects in an Amazon S3 bucket.",
|
|
944
|
+
})
|
|
945
|
+
.check(
|
|
946
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
947
|
+
),
|
|
948
|
+
TransitionDefaultMinimumObjectSize: Schema.optionalKey(
|
|
949
|
+
Schema.Literals([
|
|
950
|
+
"varies_by_storage_class",
|
|
951
|
+
"all_storage_classes_128K",
|
|
952
|
+
]).annotate({
|
|
608
953
|
description:
|
|
609
|
-
"
|
|
954
|
+
"Indicates which default minimum object size behavior is applied to the lifecycle configuration.\n This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.\n + ``all_storage_classes_128K`` - Objects smaller than 128 KB will not transition to any storage class by default.\n + ``varies_by_storage_class`` - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB. \n \n To customize the minimum object size for any transition you can add a filter that specifies a custom ``ObjectSizeGreaterThan`` or ``ObjectSizeLessThan`` in the body of your transition rule. Custom filters always take precedence over the default transition behavior.",
|
|
610
955
|
}),
|
|
611
956
|
),
|
|
612
957
|
}).annotate({
|
|
613
958
|
description:
|
|
614
|
-
"
|
|
615
|
-
identifier: "
|
|
959
|
+
"Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see [Object Lifecycle Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in the *Amazon S3 User Guide*.",
|
|
960
|
+
identifier: "LifecycleConfiguration",
|
|
616
961
|
});
|
|
617
962
|
|
|
618
|
-
interface
|
|
619
|
-
readonly
|
|
620
|
-
| "ObjectWriter"
|
|
621
|
-
| "BucketOwnerPreferred"
|
|
622
|
-
| "BucketOwnerEnforced";
|
|
963
|
+
interface PartitionedPrefix {
|
|
964
|
+
readonly PartitionDateSource?: "EventTime" | "DeliveryTime";
|
|
623
965
|
}
|
|
624
966
|
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
Schema.Literals([
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
]).annotate({ description: "Specifies an object ownership rule." }),
|
|
967
|
+
const PartitionedPrefix = Schema.Struct({
|
|
968
|
+
PartitionDateSource: Schema.optionalKey(
|
|
969
|
+
Schema.Literals(["EventTime", "DeliveryTime"]).annotate({
|
|
970
|
+
description:
|
|
971
|
+
"Specifies the partition date source for the partitioned prefix. ``PartitionDateSource`` can be ``EventTime`` or ``DeliveryTime``.\n For ``DeliveryTime``, the time in the log file names corresponds to the delivery time for the log files. \n For ``EventTime``, The logs delivered are for a specific day only. The year, month, and day correspond to the day on which the event occurred, and the hour, minutes and seconds are set to 00 in the key.",
|
|
972
|
+
}),
|
|
632
973
|
),
|
|
633
974
|
}).annotate({
|
|
634
975
|
description:
|
|
635
|
-
"
|
|
636
|
-
identifier: "
|
|
976
|
+
"Amazon S3 keys for log objects are partitioned in the following format:\n ``[DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]`` \n PartitionedPrefix defaults to EventTime delivery when server access logs are delivered.",
|
|
977
|
+
identifier: "PartitionedPrefix",
|
|
637
978
|
});
|
|
638
979
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}
|
|
980
|
+
type TargetObjectKeyFormat =
|
|
981
|
+
| {
|
|
982
|
+
readonly SimplePrefix: {
|
|
983
|
+
readonly [x: string]: never;
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
| {
|
|
987
|
+
readonly PartitionedPrefix: PartitionedPrefix;
|
|
988
|
+
};
|
|
645
989
|
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
Schema.
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
Schema.Boolean.annotate({
|
|
990
|
+
const TargetObjectKeyFormat = Schema.Union(
|
|
991
|
+
[
|
|
992
|
+
Schema.Struct({
|
|
993
|
+
SimplePrefix: Schema.Record(Schema.String, Schema.Never).annotate({
|
|
994
|
+
description:
|
|
995
|
+
"This format defaults the prefix to the given log file prefix for delivering server access log file.",
|
|
996
|
+
}),
|
|
997
|
+
}).annotate({
|
|
655
998
|
description:
|
|
656
|
-
"
|
|
999
|
+
"Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.",
|
|
657
1000
|
}),
|
|
658
|
-
|
|
659
|
-
IgnorePublicAcls: Schema.optionalKey(
|
|
660
|
-
Schema.Boolean.annotate({
|
|
1001
|
+
Schema.Struct({ PartitionedPrefix: PartitionedPrefix }).annotate({
|
|
661
1002
|
description:
|
|
662
|
-
"
|
|
1003
|
+
"Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.",
|
|
663
1004
|
}),
|
|
1005
|
+
],
|
|
1006
|
+
{ mode: "oneOf" },
|
|
1007
|
+
).annotate({ identifier: "TargetObjectKeyFormat" });
|
|
1008
|
+
|
|
1009
|
+
interface LoggingConfiguration {
|
|
1010
|
+
readonly DestinationBucketName?:
|
|
1011
|
+
| ResourceEntity<{
|
|
1012
|
+
readonly provider: "aws";
|
|
1013
|
+
readonly service: "s3";
|
|
1014
|
+
readonly resource: "bucket";
|
|
1015
|
+
}>
|
|
1016
|
+
| string;
|
|
1017
|
+
readonly LogFilePrefix?: string;
|
|
1018
|
+
readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
const LoggingConfiguration = Schema.Struct({
|
|
1022
|
+
DestinationBucketName: Schema.optionalKey(
|
|
1023
|
+
Schema.Union([
|
|
1024
|
+
Schema.Union([
|
|
1025
|
+
ResourceReferenceSchema(
|
|
1026
|
+
Schema.Struct({
|
|
1027
|
+
provider: Schema.Literal("aws"),
|
|
1028
|
+
service: Schema.Literal("s3"),
|
|
1029
|
+
resource: Schema.Literal("bucket"),
|
|
1030
|
+
}),
|
|
1031
|
+
{
|
|
1032
|
+
value: null,
|
|
1033
|
+
outputs: [
|
|
1034
|
+
{
|
|
1035
|
+
source: ["BucketName"],
|
|
1036
|
+
target: [],
|
|
1037
|
+
},
|
|
1038
|
+
],
|
|
1039
|
+
},
|
|
1040
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1041
|
+
]),
|
|
1042
|
+
Schema.String.annotate({
|
|
1043
|
+
description:
|
|
1044
|
+
"The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the ``LoggingConfiguration`` property is defined.",
|
|
1045
|
+
}),
|
|
1046
|
+
]),
|
|
664
1047
|
),
|
|
665
|
-
|
|
666
|
-
Schema.
|
|
1048
|
+
LogFilePrefix: Schema.optionalKey(
|
|
1049
|
+
Schema.String.annotate({
|
|
667
1050
|
description:
|
|
668
|
-
"
|
|
1051
|
+
"A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.",
|
|
669
1052
|
}),
|
|
670
1053
|
),
|
|
1054
|
+
TargetObjectKeyFormat: Schema.optionalKey(TargetObjectKeyFormat),
|
|
671
1055
|
}).annotate({
|
|
672
1056
|
description:
|
|
673
|
-
|
|
674
|
-
identifier: "
|
|
1057
|
+
"Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For examples and more information, see [PUT Bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html) in the *Amazon S3 API Reference*.\n To successfully complete the ``AWS::S3::Bucket LoggingConfiguration`` request, you must have ``s3:PutObject`` and ``s3:PutObjectAcl`` in your IAM permissions.",
|
|
1058
|
+
identifier: "LoggingConfiguration",
|
|
675
1059
|
});
|
|
676
1060
|
|
|
677
|
-
interface
|
|
678
|
-
readonly
|
|
1061
|
+
interface MetricsConfiguration {
|
|
1062
|
+
readonly AccessPointArn?: string;
|
|
1063
|
+
readonly Id: string;
|
|
1064
|
+
readonly Prefix?: string;
|
|
1065
|
+
readonly TagFilters?: globalThis.ReadonlyArray<TagFilter>;
|
|
679
1066
|
}
|
|
680
1067
|
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
Schema.
|
|
684
|
-
description:
|
|
1068
|
+
const MetricsConfiguration = Schema.Struct({
|
|
1069
|
+
AccessPointArn: Schema.optionalKey(
|
|
1070
|
+
Schema.String.annotate({
|
|
1071
|
+
description:
|
|
1072
|
+
"The access point that was used while performing operations on the object. The metrics configuration only includes objects that meet the filter's criteria.",
|
|
1073
|
+
}),
|
|
1074
|
+
),
|
|
1075
|
+
Id: Schema.String.annotate({
|
|
1076
|
+
description:
|
|
1077
|
+
"The ID used to identify the metrics configuration. This can be any value you choose that helps you identify your metrics configuration.",
|
|
1078
|
+
}),
|
|
1079
|
+
Prefix: Schema.optionalKey(
|
|
1080
|
+
Schema.String.annotate({
|
|
1081
|
+
description:
|
|
1082
|
+
"The prefix that an object must have to be included in the metrics results.",
|
|
685
1083
|
}),
|
|
686
1084
|
),
|
|
1085
|
+
TagFilters: Schema.optionalKey(
|
|
1086
|
+
Schema.Array(TagFilter)
|
|
1087
|
+
.annotate({
|
|
1088
|
+
description:
|
|
1089
|
+
"Specifies a list of tag filters to use as a metrics configuration filter. The metrics configuration includes only objects that meet the filter's criteria.",
|
|
1090
|
+
})
|
|
1091
|
+
.check(
|
|
1092
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1093
|
+
),
|
|
1094
|
+
),
|
|
687
1095
|
}).annotate({
|
|
688
1096
|
description:
|
|
689
|
-
"Specifies
|
|
690
|
-
identifier: "
|
|
1097
|
+
"Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For examples, see [AWS::S3::Bucket](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#aws-properties-s3-bucket--examples). For more information, see [PUT Bucket metrics](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html) in the *Amazon S3 API Reference*.",
|
|
1098
|
+
identifier: "MetricsConfiguration",
|
|
691
1099
|
});
|
|
692
1100
|
|
|
693
|
-
|
|
694
|
-
|
|
1101
|
+
type ResourceInputItems_3 = globalThis.ReadonlyArray<MetricsConfiguration>;
|
|
1102
|
+
|
|
1103
|
+
const ResourceInputItems_3 = Schema.Array(MetricsConfiguration)
|
|
1104
|
+
.annotate({
|
|
1105
|
+
description:
|
|
1106
|
+
"Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).",
|
|
1107
|
+
})
|
|
1108
|
+
.check(
|
|
1109
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1110
|
+
);
|
|
1111
|
+
|
|
1112
|
+
interface S3TablesDestination {
|
|
1113
|
+
readonly TableBucketArn: string;
|
|
1114
|
+
readonly TableName: string;
|
|
1115
|
+
readonly TableNamespace?: string;
|
|
1116
|
+
readonly TableArn?: string;
|
|
695
1117
|
}
|
|
696
1118
|
|
|
697
|
-
const
|
|
698
|
-
|
|
1119
|
+
const S3TablesDestination = Schema.Struct({
|
|
1120
|
+
TableBucketArn: Schema.String.annotate({
|
|
699
1121
|
description:
|
|
700
|
-
"
|
|
1122
|
+
"The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. The destination table bucket must be in the same Region and AWS-account as the general purpose bucket.",
|
|
1123
|
+
}),
|
|
1124
|
+
TableName: Schema.String.annotate({
|
|
1125
|
+
description:
|
|
1126
|
+
"The name for the metadata table in your metadata table configuration. The specified metadata table name must be unique within the ``aws_s3_metadata`` namespace in the destination table bucket.",
|
|
701
1127
|
}),
|
|
1128
|
+
TableNamespace: Schema.optionalKey(
|
|
1129
|
+
Schema.String.annotate({
|
|
1130
|
+
description:
|
|
1131
|
+
"The table bucket namespace for the metadata table in your metadata table configuration. This value is always ``aws_s3_metadata``.",
|
|
1132
|
+
}),
|
|
1133
|
+
),
|
|
1134
|
+
TableArn: Schema.optionalKey(
|
|
1135
|
+
Schema.String.annotate({
|
|
1136
|
+
description:
|
|
1137
|
+
"The Amazon Resource Name (ARN) for the metadata table in the metadata table configuration. The specified metadata table name must be unique within the ``aws_s3_metadata`` namespace in the destination table bucket.",
|
|
1138
|
+
}),
|
|
1139
|
+
),
|
|
702
1140
|
}).annotate({
|
|
703
1141
|
description:
|
|
704
|
-
"
|
|
705
|
-
identifier: "
|
|
1142
|
+
"The destination information for a V1 S3 Metadata configuration. The destination table bucket must be in the same Region and AWS-account as the general purpose bucket. The specified metadata table name must be unique within the ``aws_s3_metadata`` namespace in the destination table bucket.",
|
|
1143
|
+
identifier: "S3TablesDestination",
|
|
706
1144
|
});
|
|
707
1145
|
|
|
708
|
-
interface
|
|
709
|
-
readonly
|
|
710
|
-
| ResourceEntity<{
|
|
711
|
-
readonly provider: "aws";
|
|
712
|
-
readonly service: "kms";
|
|
713
|
-
readonly resource: "key";
|
|
714
|
-
}>
|
|
715
|
-
| string;
|
|
1146
|
+
interface MetadataTableConfiguration {
|
|
1147
|
+
readonly S3TablesDestination: S3TablesDestination;
|
|
716
1148
|
}
|
|
717
1149
|
|
|
718
|
-
const
|
|
719
|
-
|
|
720
|
-
Schema.Union([
|
|
721
|
-
ResourceReferenceSchema(
|
|
722
|
-
Schema.Struct({
|
|
723
|
-
provider: Schema.Literal("aws"),
|
|
724
|
-
service: Schema.Literal("kms"),
|
|
725
|
-
resource: Schema.Literal("key"),
|
|
726
|
-
}),
|
|
727
|
-
{
|
|
728
|
-
value: null,
|
|
729
|
-
outputs: [
|
|
730
|
-
{
|
|
731
|
-
source: ["Arn"],
|
|
732
|
-
target: [],
|
|
733
|
-
},
|
|
734
|
-
],
|
|
735
|
-
},
|
|
736
|
-
).annotate({ expected: "ResourceEntity" }),
|
|
737
|
-
]),
|
|
738
|
-
Schema.String.annotate({
|
|
739
|
-
description:
|
|
740
|
-
"Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
|
|
741
|
-
}),
|
|
742
|
-
]),
|
|
1150
|
+
const MetadataTableConfiguration = Schema.Struct({
|
|
1151
|
+
S3TablesDestination: S3TablesDestination,
|
|
743
1152
|
}).annotate({
|
|
744
1153
|
description:
|
|
745
|
-
"
|
|
746
|
-
identifier: "
|
|
1154
|
+
"We recommend that you create your S3 Metadata configurations by using the V2 [MetadataConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-s3-bucket-metadataconfiguration.html) resource type. We no longer recommend using the V1 ``MetadataTableConfiguration`` resource type. \n If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using the [MetadataConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-s3-bucket-metadataconfiguration.html) resource type so that you can expire journal table records and create a live inventory table.\n Creates a V1 S3 Metadata configuration for a general purpose bucket. For more information, see [Accelerating data discovery with S3 Metadata](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html) in the *Amazon S3 User Guide*.",
|
|
1155
|
+
identifier: "MetadataTableConfiguration",
|
|
747
1156
|
});
|
|
748
1157
|
|
|
749
|
-
interface
|
|
750
|
-
readonly
|
|
1158
|
+
interface MetadataDestination {
|
|
1159
|
+
readonly TableBucketType: "aws" | "customer";
|
|
1160
|
+
readonly TableBucketArn?: string;
|
|
1161
|
+
readonly TableNamespace?: string;
|
|
751
1162
|
}
|
|
752
1163
|
|
|
753
|
-
const
|
|
754
|
-
|
|
1164
|
+
const MetadataDestination = Schema.Struct({
|
|
1165
|
+
TableBucketType: Schema.Literals(["aws", "customer"]).annotate({
|
|
755
1166
|
description:
|
|
756
|
-
"
|
|
757
|
-
})
|
|
1167
|
+
"The type of the table bucket where the metadata configuration is stored. The ``aws`` value indicates an AWS managed table bucket, and the ``customer`` value indicates a customer-managed table bucket. V2 metadata configurations are stored in AWS managed table buckets, and V1 metadata configurations are stored in customer-managed table buckets.",
|
|
1168
|
+
}),
|
|
1169
|
+
TableBucketArn: Schema.optionalKey(
|
|
1170
|
+
Schema.String.annotate({
|
|
1171
|
+
description:
|
|
1172
|
+
"The Amazon Resource Name (ARN) of the table bucket where the metadata configuration is stored.",
|
|
1173
|
+
}),
|
|
1174
|
+
),
|
|
1175
|
+
TableNamespace: Schema.optionalKey(
|
|
1176
|
+
Schema.String.annotate({
|
|
1177
|
+
description:
|
|
1178
|
+
"The namespace in the table bucket where the metadata tables for a metadata configuration are stored.",
|
|
1179
|
+
}),
|
|
1180
|
+
),
|
|
758
1181
|
}).annotate({
|
|
759
|
-
description:
|
|
760
|
-
|
|
761
|
-
identifier: "ReplicationTimeValue",
|
|
1182
|
+
description: "The destination information for the S3 Metadata configuration.",
|
|
1183
|
+
identifier: "MetadataDestination",
|
|
762
1184
|
});
|
|
763
1185
|
|
|
764
|
-
interface
|
|
765
|
-
readonly
|
|
1186
|
+
interface RecordExpiration {
|
|
1187
|
+
readonly Expiration: "ENABLED" | "DISABLED";
|
|
1188
|
+
readonly Days?: number;
|
|
766
1189
|
}
|
|
767
1190
|
|
|
768
|
-
const
|
|
769
|
-
|
|
1191
|
+
const RecordExpiration = Schema.Struct({
|
|
1192
|
+
Expiration: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
|
|
770
1193
|
description:
|
|
771
|
-
"Specifies whether
|
|
1194
|
+
"Specifies whether journal table record expiration is enabled or disabled.",
|
|
772
1195
|
}),
|
|
1196
|
+
Days: Schema.optionalKey(
|
|
1197
|
+
Schema.Number.annotate({
|
|
1198
|
+
description:
|
|
1199
|
+
"If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from ``7`` to ``2147483647``. For example, to retain your journal table records for one year, set this value to ``365``.",
|
|
1200
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1201
|
+
),
|
|
773
1202
|
}).annotate({
|
|
774
1203
|
description:
|
|
775
|
-
"
|
|
776
|
-
identifier: "
|
|
1204
|
+
"The journal table record expiration settings for a journal table in an S3 Metadata configuration.",
|
|
1205
|
+
identifier: "RecordExpiration",
|
|
777
1206
|
});
|
|
778
1207
|
|
|
779
|
-
interface
|
|
780
|
-
readonly
|
|
1208
|
+
interface MetadataTableEncryptionConfiguration {
|
|
1209
|
+
readonly SseAlgorithm: "aws:kms" | "AES256";
|
|
1210
|
+
readonly KmsKeyArn?: string;
|
|
781
1211
|
}
|
|
782
1212
|
|
|
783
|
-
const
|
|
784
|
-
|
|
1213
|
+
const MetadataTableEncryptionConfiguration = Schema.Struct({
|
|
1214
|
+
SseAlgorithm: Schema.Literals(["aws:kms", "AES256"]).annotate({
|
|
785
1215
|
description:
|
|
786
|
-
"
|
|
1216
|
+
"The encryption type specified for a metadata table. To specify server-side encryption with KMSlong (KMS) keys (SSE-KMS), use the ``aws:kms`` value. To specify server-side encryption with Amazon S3 managed keys (SSE-S3), use the ``AES256`` value.",
|
|
787
1217
|
}),
|
|
1218
|
+
KmsKeyArn: Schema.optionalKey(
|
|
1219
|
+
Schema.String.annotate({
|
|
1220
|
+
description:
|
|
1221
|
+
"If server-side encryption with KMSlong (KMS) keys (SSE-KMS) is specified, you must also specify the KMS key Amazon Resource Name (ARN). You must specify a customer-managed KMS key that's located in the same Region as the general purpose bucket that corresponds to the metadata table configuration.",
|
|
1222
|
+
}),
|
|
1223
|
+
),
|
|
788
1224
|
}).annotate({
|
|
789
1225
|
description:
|
|
790
|
-
"
|
|
791
|
-
identifier: "
|
|
1226
|
+
"The encryption settings for an S3 Metadata journal table or inventory table configuration.",
|
|
1227
|
+
identifier: "MetadataTableEncryptionConfiguration",
|
|
792
1228
|
});
|
|
793
1229
|
|
|
794
|
-
interface
|
|
795
|
-
readonly
|
|
796
|
-
readonly
|
|
1230
|
+
interface JournalTableConfiguration {
|
|
1231
|
+
readonly TableName?: string;
|
|
1232
|
+
readonly TableArn?: string;
|
|
1233
|
+
readonly RecordExpiration: RecordExpiration;
|
|
1234
|
+
readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
|
|
797
1235
|
}
|
|
798
1236
|
|
|
799
|
-
const
|
|
800
|
-
|
|
801
|
-
.
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
.check(
|
|
807
|
-
Schema.isMaxCodePoints(128).annotate({
|
|
808
|
-
expected: "a string with at most 128 code points",
|
|
809
|
-
}),
|
|
810
|
-
),
|
|
811
|
-
Value: Schema.String.annotate({ description: "Value of the tag." }).check(
|
|
812
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
813
|
-
expected: "a string with at most 256 code points",
|
|
1237
|
+
const JournalTableConfiguration = Schema.Struct({
|
|
1238
|
+
TableName: Schema.optionalKey(
|
|
1239
|
+
Schema.String.annotate({ description: "The name of the journal table." }),
|
|
1240
|
+
),
|
|
1241
|
+
TableArn: Schema.optionalKey(
|
|
1242
|
+
Schema.String.annotate({
|
|
1243
|
+
description: "The Amazon Resource Name (ARN) for the journal table.",
|
|
814
1244
|
}),
|
|
815
1245
|
),
|
|
1246
|
+
RecordExpiration: RecordExpiration,
|
|
1247
|
+
EncryptionConfiguration: Schema.optionalKey(
|
|
1248
|
+
MetadataTableEncryptionConfiguration,
|
|
1249
|
+
),
|
|
816
1250
|
}).annotate({
|
|
817
|
-
description:
|
|
818
|
-
|
|
1251
|
+
description:
|
|
1252
|
+
"The journal table configuration for an S3 Metadata configuration.",
|
|
1253
|
+
identifier: "JournalTableConfiguration",
|
|
819
1254
|
});
|
|
820
1255
|
|
|
821
|
-
interface
|
|
822
|
-
readonly
|
|
1256
|
+
interface InventoryTableConfiguration {
|
|
1257
|
+
readonly TableName?: string;
|
|
1258
|
+
readonly TableArn?: string;
|
|
1259
|
+
readonly ConfigurationState: "ENABLED" | "DISABLED";
|
|
1260
|
+
readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
|
|
823
1261
|
}
|
|
824
1262
|
|
|
825
|
-
const
|
|
826
|
-
|
|
827
|
-
description: "The
|
|
1263
|
+
const InventoryTableConfiguration = Schema.Struct({
|
|
1264
|
+
TableName: Schema.optionalKey(
|
|
1265
|
+
Schema.String.annotate({ description: "The name of the inventory table." }),
|
|
1266
|
+
),
|
|
1267
|
+
TableArn: Schema.optionalKey(
|
|
1268
|
+
Schema.String.annotate({
|
|
1269
|
+
description: "The Amazon Resource Name (ARN) for the inventory table.",
|
|
1270
|
+
}),
|
|
1271
|
+
),
|
|
1272
|
+
ConfigurationState: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
|
|
1273
|
+
description:
|
|
1274
|
+
"The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.",
|
|
828
1275
|
}),
|
|
1276
|
+
EncryptionConfiguration: Schema.optionalKey(
|
|
1277
|
+
MetadataTableEncryptionConfiguration,
|
|
1278
|
+
),
|
|
829
1279
|
}).annotate({
|
|
830
1280
|
description:
|
|
831
|
-
"
|
|
832
|
-
identifier: "
|
|
1281
|
+
"The inventory table configuration for an S3 Metadata configuration.",
|
|
1282
|
+
identifier: "InventoryTableConfiguration",
|
|
833
1283
|
});
|
|
834
1284
|
|
|
835
|
-
interface
|
|
836
|
-
readonly
|
|
837
|
-
readonly
|
|
838
|
-
readonly
|
|
839
|
-
readonly
|
|
840
|
-
readonly
|
|
1285
|
+
interface AnnotationTableConfiguration {
|
|
1286
|
+
readonly TableName?: string;
|
|
1287
|
+
readonly TableArn?: string;
|
|
1288
|
+
readonly ConfigurationState: "ENABLED" | "DISABLED";
|
|
1289
|
+
readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
|
|
1290
|
+
readonly Role?: string;
|
|
841
1291
|
}
|
|
842
1292
|
|
|
843
|
-
const
|
|
844
|
-
|
|
1293
|
+
const AnnotationTableConfiguration = Schema.Struct({
|
|
1294
|
+
TableName: Schema.optionalKey(
|
|
845
1295
|
Schema.String.annotate({
|
|
846
|
-
description: "The
|
|
1296
|
+
description: "The name of the annotation table.",
|
|
847
1297
|
}),
|
|
848
1298
|
),
|
|
849
|
-
|
|
850
|
-
Schema.String.annotate({
|
|
851
|
-
description:
|
|
852
|
-
"The HTTP redirect code to use on the response. Not required if one of the siblings is present.",
|
|
853
|
-
}),
|
|
1299
|
+
TableArn: Schema.optionalKey(
|
|
1300
|
+
Schema.String.annotate({ description: "The ARN of the annotation table." }),
|
|
854
1301
|
),
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
1302
|
+
ConfigurationState: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
|
|
1303
|
+
description:
|
|
1304
|
+
"Specifies whether annotation table configuration is enabled or disabled.",
|
|
1305
|
+
}),
|
|
1306
|
+
EncryptionConfiguration: Schema.optionalKey(
|
|
1307
|
+
MetadataTableEncryptionConfiguration,
|
|
860
1308
|
),
|
|
861
|
-
|
|
1309
|
+
Role: Schema.optionalKey(
|
|
862
1310
|
Schema.String.annotate({
|
|
863
1311
|
description:
|
|
864
|
-
"The
|
|
1312
|
+
"The ARN of the IAM role that grants Amazon S3 Metadata permission to read annotations from your bucket.",
|
|
865
1313
|
}),
|
|
866
1314
|
),
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
1315
|
+
}).annotate({ description: "", identifier: "AnnotationTableConfiguration" });
|
|
1316
|
+
|
|
1317
|
+
interface MetadataConfiguration {
|
|
1318
|
+
readonly Destination?: MetadataDestination;
|
|
1319
|
+
readonly JournalTableConfiguration: JournalTableConfiguration;
|
|
1320
|
+
readonly InventoryTableConfiguration?: InventoryTableConfiguration;
|
|
1321
|
+
readonly AnnotationTableConfiguration?: AnnotationTableConfiguration;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
const MetadataConfiguration = Schema.Struct({
|
|
1325
|
+
Destination: Schema.optionalKey(MetadataDestination),
|
|
1326
|
+
JournalTableConfiguration: JournalTableConfiguration,
|
|
1327
|
+
InventoryTableConfiguration: Schema.optionalKey(InventoryTableConfiguration),
|
|
1328
|
+
AnnotationTableConfiguration: Schema.optionalKey(
|
|
1329
|
+
AnnotationTableConfiguration,
|
|
872
1330
|
),
|
|
873
1331
|
}).annotate({
|
|
874
1332
|
description:
|
|
875
|
-
"
|
|
876
|
-
identifier: "
|
|
1333
|
+
"Creates a V2 S3 Metadata configuration of a general purpose bucket. For more information, see [Accelerating data discovery with S3 Metadata](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html) in the *Amazon S3 User Guide*.",
|
|
1334
|
+
identifier: "MetadataConfiguration",
|
|
877
1335
|
});
|
|
878
1336
|
|
|
879
|
-
interface
|
|
880
|
-
readonly
|
|
881
|
-
readonly HttpErrorCodeReturnedEquals?: string;
|
|
1337
|
+
interface EventBridgeConfiguration {
|
|
1338
|
+
readonly EventBridgeEnabled: boolean;
|
|
882
1339
|
}
|
|
883
1340
|
|
|
884
|
-
const
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
1341
|
+
const EventBridgeConfiguration = Schema.Struct({
|
|
1342
|
+
EventBridgeEnabled: Schema.Boolean.annotate({
|
|
1343
|
+
description: "Enables delivery of events to Amazon EventBridge.",
|
|
1344
|
+
}),
|
|
1345
|
+
}).annotate({
|
|
1346
|
+
description:
|
|
1347
|
+
"Amazon S3 can send events to Amazon EventBridge whenever certain events happen in your bucket, see [Using EventBridge](https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventBridge.html) in the *Amazon S3 User Guide*.\n Unlike other destinations, delivery of events to EventBridge can be either enabled or disabled for a bucket. If enabled, all events will be sent to EventBridge and you can use EventBridge rules to route events to additional targets. For more information, see [What Is Amazon EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html) in the *Amazon EventBridge User Guide*",
|
|
1348
|
+
identifier: "EventBridgeConfiguration",
|
|
1349
|
+
});
|
|
1350
|
+
|
|
1351
|
+
interface FilterRule {
|
|
1352
|
+
readonly Name: string;
|
|
1353
|
+
readonly Value: string;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
const FilterRule = Schema.Struct({
|
|
1357
|
+
Name: Schema.String.annotate({
|
|
1358
|
+
description:
|
|
1359
|
+
"The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see [Configuring Event Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
|
|
1360
|
+
}).check(
|
|
1361
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
1362
|
+
expected: "a string with at most 1024 code points",
|
|
895
1363
|
}),
|
|
896
1364
|
),
|
|
1365
|
+
Value: Schema.String.annotate({
|
|
1366
|
+
description: "The value that the filter searches for in object key names.",
|
|
1367
|
+
}),
|
|
897
1368
|
}).annotate({
|
|
898
1369
|
description:
|
|
899
|
-
"
|
|
900
|
-
identifier: "
|
|
1370
|
+
"Specifies the Amazon S3 object key name to filter on. An object key name is the name assigned to an object in your Amazon S3 bucket. You specify whether to filter on the suffix or prefix of the object key name. A prefix is a specific string of characters at the beginning of an object key name, which you can use to organize objects. For example, you can start the key names of related objects with a prefix, such as ``2023-`` or ``engineering/``. Then, you can use ``FilterRule`` to find objects in a bucket with key names that have the same prefix. A suffix is similar to a prefix, but it is at the end of the object key name instead of at the beginning.",
|
|
1371
|
+
identifier: "FilterRule",
|
|
901
1372
|
});
|
|
902
1373
|
|
|
903
|
-
interface
|
|
904
|
-
readonly
|
|
905
|
-
readonly Protocol?: "http" | "https";
|
|
1374
|
+
interface S3KeyFilter {
|
|
1375
|
+
readonly Rules: globalThis.ReadonlyArray<FilterRule>;
|
|
906
1376
|
}
|
|
907
1377
|
|
|
908
|
-
const
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
}),
|
|
912
|
-
Protocol: Schema.optionalKey(
|
|
913
|
-
Schema.Literals(["http", "https"]).annotate({
|
|
1378
|
+
const S3KeyFilter = Schema.Struct({
|
|
1379
|
+
Rules: Schema.Array(FilterRule)
|
|
1380
|
+
.annotate({
|
|
914
1381
|
description:
|
|
915
|
-
"
|
|
916
|
-
})
|
|
917
|
-
|
|
1382
|
+
"A list of containers for the key-value pair that defines the criteria for the filter rule.",
|
|
1383
|
+
})
|
|
1384
|
+
.check(
|
|
1385
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1386
|
+
),
|
|
918
1387
|
}).annotate({
|
|
919
1388
|
description:
|
|
920
|
-
"
|
|
921
|
-
identifier: "
|
|
1389
|
+
"A container for object key name prefix and suffix filtering rules. For more information about object key name filtering, see [Configuring event notifications using object key name filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) in the *Amazon S3 User Guide*.\n The same type of filter rule cannot be used more than once. For example, you cannot specify two prefix rules.",
|
|
1390
|
+
identifier: "S3KeyFilter",
|
|
922
1391
|
});
|
|
923
1392
|
|
|
924
|
-
|
|
1393
|
+
interface NotificationFilter {
|
|
1394
|
+
readonly S3Key: S3KeyFilter;
|
|
1395
|
+
}
|
|
925
1396
|
|
|
926
|
-
const
|
|
927
|
-
description:
|
|
928
|
-
|
|
1397
|
+
const NotificationFilter = Schema.Struct({ S3Key: S3KeyFilter }).annotate({
|
|
1398
|
+
description:
|
|
1399
|
+
"Specifies object key name filtering rules. For information about key name filtering, see [Configuring event notifications using object key name filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) in the *Amazon S3 User Guide*.",
|
|
1400
|
+
identifier: "NotificationFilter",
|
|
929
1401
|
});
|
|
930
1402
|
|
|
931
|
-
interface
|
|
932
|
-
readonly
|
|
933
|
-
readonly
|
|
934
|
-
readonly
|
|
935
|
-
|
|
1403
|
+
interface LambdaConfiguration {
|
|
1404
|
+
readonly Event: string;
|
|
1405
|
+
readonly Filter?: NotificationFilter;
|
|
1406
|
+
readonly Function:
|
|
1407
|
+
| ResourceEntity<{
|
|
1408
|
+
readonly provider: "aws";
|
|
1409
|
+
readonly service: "lambda";
|
|
1410
|
+
readonly resource: "function";
|
|
1411
|
+
}>
|
|
1412
|
+
| string;
|
|
936
1413
|
}
|
|
937
1414
|
|
|
938
|
-
const
|
|
939
|
-
|
|
940
|
-
description:
|
|
941
|
-
"The Amazon Resource Name (ARN) of the bucket to which data is exported.",
|
|
942
|
-
}),
|
|
943
|
-
BucketAccountId: Schema.optionalKey(
|
|
944
|
-
Schema.String.annotate({
|
|
945
|
-
description:
|
|
946
|
-
"The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
|
|
947
|
-
}),
|
|
948
|
-
),
|
|
949
|
-
Format: Schema.Literals(["CSV", "ORC", "Parquet"]).annotate({
|
|
1415
|
+
const LambdaConfiguration = Schema.Struct({
|
|
1416
|
+
Event: Schema.String.annotate({
|
|
950
1417
|
description:
|
|
951
|
-
"
|
|
1418
|
+
"The Amazon S3 bucket event for which to invoke the LAMlong function. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
|
|
952
1419
|
}),
|
|
953
|
-
|
|
1420
|
+
Filter: Schema.optionalKey(NotificationFilter),
|
|
1421
|
+
Function: Schema.Union([
|
|
1422
|
+
Schema.Union([
|
|
1423
|
+
ResourceReferenceSchema(
|
|
1424
|
+
Schema.Struct({
|
|
1425
|
+
provider: Schema.Literal("aws"),
|
|
1426
|
+
service: Schema.Literal("lambda"),
|
|
1427
|
+
resource: Schema.Literal("function"),
|
|
1428
|
+
}),
|
|
1429
|
+
{
|
|
1430
|
+
value: null,
|
|
1431
|
+
outputs: [
|
|
1432
|
+
{
|
|
1433
|
+
source: ["Arn"],
|
|
1434
|
+
target: [],
|
|
1435
|
+
},
|
|
1436
|
+
],
|
|
1437
|
+
},
|
|
1438
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1439
|
+
]),
|
|
954
1440
|
Schema.String.annotate({
|
|
955
1441
|
description:
|
|
956
|
-
"The
|
|
1442
|
+
"The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.",
|
|
957
1443
|
}),
|
|
958
|
-
),
|
|
1444
|
+
]),
|
|
959
1445
|
}).annotate({
|
|
960
1446
|
description:
|
|
961
|
-
"
|
|
962
|
-
identifier: "
|
|
1447
|
+
"Describes the LAMlong functions to invoke and the events for which to invoke them.",
|
|
1448
|
+
identifier: "LambdaConfiguration",
|
|
963
1449
|
});
|
|
964
1450
|
|
|
965
|
-
interface
|
|
966
|
-
readonly
|
|
967
|
-
readonly
|
|
1451
|
+
interface QueueConfiguration {
|
|
1452
|
+
readonly Event: string;
|
|
1453
|
+
readonly Filter?: NotificationFilter;
|
|
1454
|
+
readonly Queue:
|
|
1455
|
+
| ResourceEntity<{
|
|
1456
|
+
readonly provider: "aws";
|
|
1457
|
+
readonly service: "sqs";
|
|
1458
|
+
readonly resource: "queue";
|
|
1459
|
+
}>
|
|
1460
|
+
| string;
|
|
968
1461
|
}
|
|
969
1462
|
|
|
970
|
-
const
|
|
971
|
-
|
|
1463
|
+
const QueueConfiguration = Schema.Struct({
|
|
1464
|
+
Event: Schema.String.annotate({
|
|
1465
|
+
description:
|
|
1466
|
+
"The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
|
|
1467
|
+
}),
|
|
1468
|
+
Filter: Schema.optionalKey(NotificationFilter),
|
|
1469
|
+
Queue: Schema.Union([
|
|
1470
|
+
Schema.Union([
|
|
1471
|
+
ResourceReferenceSchema(
|
|
1472
|
+
Schema.Struct({
|
|
1473
|
+
provider: Schema.Literal("aws"),
|
|
1474
|
+
service: Schema.Literal("sqs"),
|
|
1475
|
+
resource: Schema.Literal("queue"),
|
|
1476
|
+
}),
|
|
1477
|
+
{
|
|
1478
|
+
value: null,
|
|
1479
|
+
outputs: [
|
|
1480
|
+
{
|
|
1481
|
+
source: ["Arn"],
|
|
1482
|
+
target: [],
|
|
1483
|
+
},
|
|
1484
|
+
],
|
|
1485
|
+
},
|
|
1486
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1487
|
+
]),
|
|
972
1488
|
Schema.String.annotate({
|
|
973
1489
|
description:
|
|
974
|
-
"
|
|
1490
|
+
"The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination.",
|
|
975
1491
|
}),
|
|
976
|
-
),
|
|
977
|
-
SSEAlgorithm: Schema.Literals(["aws:kms", "AES256", "aws:kms:dsse"]).annotate(
|
|
978
|
-
{
|
|
979
|
-
description:
|
|
980
|
-
"Server-side encryption algorithm to use for the default encryption.\n For directory buckets, there are only two supported values for server-side encryption: ``AES256`` and ``aws:kms``.",
|
|
981
|
-
},
|
|
982
|
-
),
|
|
1492
|
+
]),
|
|
983
1493
|
}).annotate({
|
|
984
1494
|
description:
|
|
985
|
-
"
|
|
986
|
-
identifier: "
|
|
1495
|
+
"Specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.",
|
|
1496
|
+
identifier: "QueueConfiguration",
|
|
987
1497
|
});
|
|
988
1498
|
|
|
989
|
-
interface
|
|
990
|
-
readonly
|
|
1499
|
+
interface TopicConfiguration {
|
|
1500
|
+
readonly Event: string;
|
|
1501
|
+
readonly Filter?: NotificationFilter;
|
|
1502
|
+
readonly Topic:
|
|
1503
|
+
| ResourceEntity<{
|
|
1504
|
+
readonly provider: "aws";
|
|
1505
|
+
readonly service: "sns";
|
|
1506
|
+
readonly resource: "topic";
|
|
1507
|
+
}>
|
|
1508
|
+
| string;
|
|
991
1509
|
}
|
|
992
1510
|
|
|
993
|
-
const
|
|
994
|
-
|
|
1511
|
+
const TopicConfiguration = Schema.Struct({
|
|
1512
|
+
Event: Schema.String.annotate({
|
|
995
1513
|
description:
|
|
996
|
-
"
|
|
1514
|
+
"The Amazon S3 bucket event about which to send notifications. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
|
|
997
1515
|
}),
|
|
1516
|
+
Filter: Schema.optionalKey(NotificationFilter),
|
|
1517
|
+
Topic: Schema.Union([
|
|
1518
|
+
Schema.Union([
|
|
1519
|
+
ResourceReferenceSchema(
|
|
1520
|
+
Schema.Struct({
|
|
1521
|
+
provider: Schema.Literal("aws"),
|
|
1522
|
+
service: Schema.Literal("sns"),
|
|
1523
|
+
resource: Schema.Literal("topic"),
|
|
1524
|
+
}),
|
|
1525
|
+
{
|
|
1526
|
+
value: null,
|
|
1527
|
+
outputs: [
|
|
1528
|
+
{
|
|
1529
|
+
source: ["TopicArn"],
|
|
1530
|
+
target: [],
|
|
1531
|
+
},
|
|
1532
|
+
],
|
|
1533
|
+
},
|
|
1534
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1535
|
+
]),
|
|
1536
|
+
Schema.String.annotate({
|
|
1537
|
+
description:
|
|
1538
|
+
"The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.",
|
|
1539
|
+
}),
|
|
1540
|
+
]),
|
|
998
1541
|
}).annotate({
|
|
999
1542
|
description:
|
|
1000
|
-
"
|
|
1001
|
-
identifier: "
|
|
1543
|
+
"A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.",
|
|
1544
|
+
identifier: "TopicConfiguration",
|
|
1002
1545
|
});
|
|
1003
1546
|
|
|
1004
|
-
interface
|
|
1005
|
-
readonly
|
|
1006
|
-
readonly
|
|
1007
|
-
readonly
|
|
1008
|
-
readonly
|
|
1547
|
+
interface NotificationConfiguration {
|
|
1548
|
+
readonly EventBridgeConfiguration?: EventBridgeConfiguration;
|
|
1549
|
+
readonly LambdaConfigurations?: globalThis.ReadonlyArray<LambdaConfiguration>;
|
|
1550
|
+
readonly QueueConfigurations?: globalThis.ReadonlyArray<QueueConfiguration>;
|
|
1551
|
+
readonly TopicConfigurations?: globalThis.ReadonlyArray<TopicConfiguration>;
|
|
1009
1552
|
}
|
|
1010
1553
|
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1554
|
+
const NotificationConfiguration = Schema.Struct({
|
|
1555
|
+
EventBridgeConfiguration: Schema.optionalKey(EventBridgeConfiguration),
|
|
1556
|
+
LambdaConfigurations: Schema.optionalKey(
|
|
1557
|
+
Schema.Array(LambdaConfiguration)
|
|
1558
|
+
.annotate({
|
|
1559
|
+
description:
|
|
1560
|
+
"Describes the LAMlong functions to invoke and the events for which to invoke them.",
|
|
1561
|
+
})
|
|
1562
|
+
.check(
|
|
1563
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1564
|
+
),
|
|
1017
1565
|
),
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1566
|
+
QueueConfigurations: Schema.optionalKey(
|
|
1567
|
+
Schema.Array(QueueConfiguration)
|
|
1568
|
+
.annotate({
|
|
1569
|
+
description:
|
|
1570
|
+
"The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages.",
|
|
1571
|
+
})
|
|
1572
|
+
.check(
|
|
1573
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1574
|
+
),
|
|
1027
1575
|
),
|
|
1028
|
-
|
|
1029
|
-
Schema.Array(
|
|
1576
|
+
TopicConfigurations: Schema.optionalKey(
|
|
1577
|
+
Schema.Array(TopicConfiguration)
|
|
1030
1578
|
.annotate({
|
|
1031
1579
|
description:
|
|
1032
|
-
"
|
|
1580
|
+
"The topic to which notifications are sent and the events for which notifications are generated.",
|
|
1033
1581
|
})
|
|
1034
1582
|
.check(
|
|
1035
1583
|
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
@@ -1037,426 +1585,235 @@ const MetricsConfiguration = Schema.Struct({
|
|
|
1037
1585
|
),
|
|
1038
1586
|
}).annotate({
|
|
1039
1587
|
description:
|
|
1040
|
-
"
|
|
1041
|
-
identifier: "
|
|
1588
|
+
"Describes the notification configuration for an Amazon S3 bucket.\n If you create the target resource and related permissions in the same template, you might have a circular dependency.\n For example, you might use the ``AWS::Lambda::Permission`` resource to grant the bucket permission to invoke an AWS Lambda function. However, AWS CloudFormation can't create the bucket until the bucket has permission to invoke the function (AWS CloudFormation checks whether the bucket can invoke the function). If you're using Refs to pass the bucket name, this leads to a circular dependency.\n To avoid this dependency, you can create all resources without specifying the notification configuration. Then, update the stack with a notification configuration.\n For more information on permissions, see [AWS::Lambda::Permission](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html) and [Granting Permissions to Publish Event Notification Messages to a Destination](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#grant-destinations-permissions-to-s3).",
|
|
1589
|
+
identifier: "NotificationConfiguration",
|
|
1042
1590
|
});
|
|
1043
1591
|
|
|
1044
|
-
interface
|
|
1045
|
-
readonly
|
|
1046
|
-
readonly
|
|
1592
|
+
interface DefaultRetention {
|
|
1593
|
+
readonly Years?: number;
|
|
1594
|
+
readonly Days?: number;
|
|
1595
|
+
readonly Mode?: "COMPLIANCE" | "GOVERNANCE";
|
|
1047
1596
|
}
|
|
1048
1597
|
|
|
1049
|
-
const
|
|
1050
|
-
|
|
1051
|
-
Schema.
|
|
1598
|
+
const DefaultRetention = Schema.Struct({
|
|
1599
|
+
Years: Schema.optionalKey(
|
|
1600
|
+
Schema.Number.annotate({
|
|
1052
1601
|
description:
|
|
1053
|
-
"
|
|
1054
|
-
}),
|
|
1602
|
+
"The number of years that you want to specify for the default retention period. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.",
|
|
1603
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1055
1604
|
),
|
|
1056
|
-
|
|
1057
|
-
Schema.
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1605
|
+
Days: Schema.optionalKey(
|
|
1606
|
+
Schema.Number.annotate({
|
|
1607
|
+
description:
|
|
1608
|
+
"The number of days that you want to specify for the default retention period. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.",
|
|
1609
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1610
|
+
),
|
|
1611
|
+
Mode: Schema.optionalKey(
|
|
1612
|
+
Schema.Literals(["COMPLIANCE", "GOVERNANCE"]).annotate({
|
|
1613
|
+
description:
|
|
1614
|
+
"The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.",
|
|
1615
|
+
}),
|
|
1064
1616
|
),
|
|
1065
1617
|
}).annotate({
|
|
1066
1618
|
description:
|
|
1067
|
-
"
|
|
1068
|
-
identifier: "
|
|
1619
|
+
"The container element for optionally specifying the default Object Lock retention settings for new objects placed in the specified bucket.\n + The ``DefaultRetention`` settings require both a mode and a period.\n + The ``DefaultRetention`` period can be either ``Days`` or ``Years`` but you must select one. You cannot specify ``Days`` and ``Years`` at the same time.",
|
|
1620
|
+
identifier: "DefaultRetention",
|
|
1069
1621
|
});
|
|
1070
1622
|
|
|
1071
|
-
interface
|
|
1072
|
-
readonly
|
|
1073
|
-
readonly OutputSchemaVersion: "V_1";
|
|
1623
|
+
interface ObjectLockRule {
|
|
1624
|
+
readonly DefaultRetention?: DefaultRetention;
|
|
1074
1625
|
}
|
|
1075
1626
|
|
|
1076
|
-
const
|
|
1077
|
-
|
|
1078
|
-
OutputSchemaVersion: Schema.Literal("V_1").annotate({
|
|
1079
|
-
description:
|
|
1080
|
-
"The version of the output schema to use when exporting data. Must be ``V_1``.",
|
|
1081
|
-
}),
|
|
1627
|
+
const ObjectLockRule = Schema.Struct({
|
|
1628
|
+
DefaultRetention: Schema.optionalKey(DefaultRetention),
|
|
1082
1629
|
}).annotate({
|
|
1083
1630
|
description:
|
|
1084
|
-
"Specifies
|
|
1085
|
-
identifier: "
|
|
1631
|
+
"Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ``ObjectLockConfiguration`` to a bucket.",
|
|
1632
|
+
identifier: "ObjectLockRule",
|
|
1086
1633
|
});
|
|
1087
1634
|
|
|
1088
|
-
interface
|
|
1089
|
-
readonly
|
|
1635
|
+
interface ObjectLockConfiguration {
|
|
1636
|
+
readonly ObjectLockEnabled?: "Enabled";
|
|
1637
|
+
readonly Rule?: ObjectLockRule;
|
|
1090
1638
|
}
|
|
1091
1639
|
|
|
1092
|
-
const
|
|
1093
|
-
|
|
1640
|
+
const ObjectLockConfiguration = Schema.Struct({
|
|
1641
|
+
ObjectLockEnabled: Schema.optionalKey(
|
|
1642
|
+
Schema.Literal("Enabled").annotate({
|
|
1643
|
+
description:
|
|
1644
|
+
"Indicates whether this bucket has an Object Lock configuration enabled. Enable ``ObjectLockEnabled`` when you apply ``ObjectLockConfiguration`` to a bucket.",
|
|
1645
|
+
}),
|
|
1646
|
+
),
|
|
1647
|
+
Rule: Schema.optionalKey(ObjectLockRule),
|
|
1094
1648
|
}).annotate({
|
|
1095
1649
|
description:
|
|
1096
|
-
"
|
|
1097
|
-
identifier: "
|
|
1650
|
+
"Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see [Locking Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).",
|
|
1651
|
+
identifier: "ObjectLockConfiguration",
|
|
1098
1652
|
});
|
|
1099
1653
|
|
|
1100
|
-
interface
|
|
1101
|
-
readonly
|
|
1654
|
+
interface OwnershipControlsRule {
|
|
1655
|
+
readonly ObjectOwnership?:
|
|
1656
|
+
| "ObjectWriter"
|
|
1657
|
+
| "BucketOwnerPreferred"
|
|
1658
|
+
| "BucketOwnerEnforced";
|
|
1102
1659
|
}
|
|
1103
1660
|
|
|
1104
|
-
const
|
|
1105
|
-
|
|
1106
|
-
.
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
.
|
|
1111
|
-
|
|
1112
|
-
),
|
|
1661
|
+
const OwnershipControlsRule = Schema.Struct({
|
|
1662
|
+
ObjectOwnership: Schema.optionalKey(
|
|
1663
|
+
Schema.Literals([
|
|
1664
|
+
"ObjectWriter",
|
|
1665
|
+
"BucketOwnerPreferred",
|
|
1666
|
+
"BucketOwnerEnforced",
|
|
1667
|
+
]).annotate({ description: "Specifies an object ownership rule." }),
|
|
1668
|
+
),
|
|
1113
1669
|
}).annotate({
|
|
1114
1670
|
description:
|
|
1115
|
-
"
|
|
1116
|
-
identifier: "
|
|
1671
|
+
"Specifies an Object Ownership rule.\n S3 Object Ownership is an Amazon S3 bucket-level setting that you can use to disable access control lists (ACLs) and take ownership of every object in your bucket, simplifying access management for data stored in Amazon S3. For more information, see [Controlling ownership of objects and disabling ACLs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.",
|
|
1672
|
+
identifier: "OwnershipControlsRule",
|
|
1117
1673
|
});
|
|
1118
1674
|
|
|
1119
|
-
interface
|
|
1120
|
-
readonly
|
|
1121
|
-
readonly Prefix?: string;
|
|
1122
|
-
readonly Status: "Disabled" | "Enabled";
|
|
1123
|
-
readonly TagFilters?: ReadonlyArray<TagFilter>;
|
|
1124
|
-
readonly Tierings: ReadonlyArray<Tiering>;
|
|
1675
|
+
interface OwnershipControls {
|
|
1676
|
+
readonly Rules: globalThis.ReadonlyArray<OwnershipControlsRule>;
|
|
1125
1677
|
}
|
|
1126
1678
|
|
|
1127
|
-
const
|
|
1128
|
-
|
|
1129
|
-
description:
|
|
1130
|
-
"The ID used to identify the S3 Intelligent-Tiering configuration.",
|
|
1131
|
-
}),
|
|
1132
|
-
Prefix: Schema.optionalKey(
|
|
1133
|
-
Schema.String.annotate({
|
|
1134
|
-
description:
|
|
1135
|
-
"An object key name prefix that identifies the subset of objects to which the rule applies.",
|
|
1136
|
-
}),
|
|
1137
|
-
),
|
|
1138
|
-
Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
|
|
1139
|
-
description: "Specifies the status of the configuration.",
|
|
1140
|
-
}),
|
|
1141
|
-
TagFilters: Schema.optionalKey(
|
|
1142
|
-
Schema.Array(TagFilter)
|
|
1143
|
-
.annotate({ description: "A container for a key-value pair." })
|
|
1144
|
-
.check(
|
|
1145
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1146
|
-
),
|
|
1147
|
-
),
|
|
1148
|
-
Tierings: Schema.Array(Tiering)
|
|
1679
|
+
const OwnershipControls = Schema.Struct({
|
|
1680
|
+
Rules: Schema.Array(OwnershipControlsRule)
|
|
1149
1681
|
.annotate({
|
|
1150
1682
|
description:
|
|
1151
|
-
"Specifies
|
|
1683
|
+
"Specifies the container element for Object Ownership rules.",
|
|
1152
1684
|
})
|
|
1153
1685
|
.check(
|
|
1154
1686
|
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1155
1687
|
),
|
|
1156
1688
|
}).annotate({
|
|
1157
1689
|
description:
|
|
1158
|
-
"Specifies the S3
|
|
1159
|
-
identifier: "
|
|
1160
|
-
});
|
|
1161
|
-
|
|
1162
|
-
interface InventoryConfiguration {
|
|
1163
|
-
readonly Destination: Destination_1;
|
|
1164
|
-
readonly Enabled: boolean;
|
|
1165
|
-
readonly Id: string;
|
|
1166
|
-
readonly IncludedObjectVersions: "All" | "Current";
|
|
1167
|
-
readonly OptionalFields?: ReadonlyArray<
|
|
1168
|
-
| "Size"
|
|
1169
|
-
| "LastModifiedDate"
|
|
1170
|
-
| "StorageClass"
|
|
1171
|
-
| "ETag"
|
|
1172
|
-
| "IsMultipartUploaded"
|
|
1173
|
-
| "ReplicationStatus"
|
|
1174
|
-
| "EncryptionStatus"
|
|
1175
|
-
| "ObjectLockRetainUntilDate"
|
|
1176
|
-
| "ObjectLockMode"
|
|
1177
|
-
| "ObjectLockLegalHoldStatus"
|
|
1178
|
-
| "IntelligentTieringAccessTier"
|
|
1179
|
-
| "BucketKeyStatus"
|
|
1180
|
-
| "ChecksumAlgorithm"
|
|
1181
|
-
| "ObjectAccessControlList"
|
|
1182
|
-
| "ObjectOwner"
|
|
1183
|
-
| "LifecycleExpirationDate"
|
|
1184
|
-
>;
|
|
1185
|
-
readonly Prefix?: string;
|
|
1186
|
-
readonly ScheduleFrequency: "Daily" | "Weekly";
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
const InventoryConfiguration = Schema.Struct({
|
|
1190
|
-
Destination: Destination_1,
|
|
1191
|
-
Enabled: Schema.Boolean.annotate({
|
|
1192
|
-
description:
|
|
1193
|
-
"Specifies whether the inventory is enabled or disabled. If set to ``True``, an inventory list is generated. If set to ``False``, no inventory list is generated.",
|
|
1194
|
-
}),
|
|
1195
|
-
Id: Schema.String.annotate({
|
|
1196
|
-
description: "The ID used to identify the inventory configuration.",
|
|
1197
|
-
}),
|
|
1198
|
-
IncludedObjectVersions: Schema.Literals(["All", "Current"]).annotate({
|
|
1199
|
-
description:
|
|
1200
|
-
"Object versions to include in the inventory list. If set to ``All``, the list includes all the object versions, which adds the version-related fields ``VersionId``, ``IsLatest``, and ``DeleteMarker`` to the list. If set to ``Current``, the list does not contain these version-related fields.",
|
|
1201
|
-
}),
|
|
1202
|
-
OptionalFields: Schema.optionalKey(
|
|
1203
|
-
Schema.Array(
|
|
1204
|
-
Schema.Literals([
|
|
1205
|
-
"Size",
|
|
1206
|
-
"LastModifiedDate",
|
|
1207
|
-
"StorageClass",
|
|
1208
|
-
"ETag",
|
|
1209
|
-
"IsMultipartUploaded",
|
|
1210
|
-
"ReplicationStatus",
|
|
1211
|
-
"EncryptionStatus",
|
|
1212
|
-
"ObjectLockRetainUntilDate",
|
|
1213
|
-
"ObjectLockMode",
|
|
1214
|
-
"ObjectLockLegalHoldStatus",
|
|
1215
|
-
"IntelligentTieringAccessTier",
|
|
1216
|
-
"BucketKeyStatus",
|
|
1217
|
-
"ChecksumAlgorithm",
|
|
1218
|
-
"ObjectAccessControlList",
|
|
1219
|
-
"ObjectOwner",
|
|
1220
|
-
"LifecycleExpirationDate",
|
|
1221
|
-
]),
|
|
1222
|
-
)
|
|
1223
|
-
.annotate({
|
|
1224
|
-
description:
|
|
1225
|
-
"Contains the optional fields that are included in the inventory results.",
|
|
1226
|
-
})
|
|
1227
|
-
.check(
|
|
1228
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1229
|
-
),
|
|
1230
|
-
),
|
|
1231
|
-
Prefix: Schema.optionalKey(
|
|
1232
|
-
Schema.String.annotate({
|
|
1233
|
-
description: "Specifies the inventory filter prefix.",
|
|
1234
|
-
}),
|
|
1235
|
-
),
|
|
1236
|
-
ScheduleFrequency: Schema.Literals(["Daily", "Weekly"]).annotate({
|
|
1237
|
-
description: "Specifies the schedule for generating inventory results.",
|
|
1238
|
-
}),
|
|
1239
|
-
}).annotate({
|
|
1240
|
-
description:
|
|
1241
|
-
"Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
|
|
1242
|
-
identifier: "InventoryConfiguration",
|
|
1690
|
+
"Specifies the container element for Object Ownership rules.\n S3 Object Ownership is an Amazon S3 bucket-level setting that you can use to disable access control lists (ACLs) and take ownership of every object in your bucket, simplifying access management for data stored in Amazon S3. For more information, see [Controlling ownership of objects and disabling ACLs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.",
|
|
1691
|
+
identifier: "OwnershipControls",
|
|
1243
1692
|
});
|
|
1244
1693
|
|
|
1245
|
-
interface
|
|
1246
|
-
readonly
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
| "GLACIER_IR"
|
|
1251
|
-
| "INTELLIGENT_TIERING"
|
|
1252
|
-
| "ONEZONE_IA"
|
|
1253
|
-
| "STANDARD_IA";
|
|
1254
|
-
readonly TransitionDate?: Iso8601UTC;
|
|
1255
|
-
readonly TransitionInDays?: number;
|
|
1694
|
+
interface PublicAccessBlockConfiguration {
|
|
1695
|
+
readonly BlockPublicAcls?: boolean;
|
|
1696
|
+
readonly BlockPublicPolicy?: boolean;
|
|
1697
|
+
readonly IgnorePublicAcls?: boolean;
|
|
1698
|
+
readonly RestrictPublicBuckets?: boolean;
|
|
1256
1699
|
}
|
|
1257
1700
|
|
|
1258
|
-
const
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
"GLACIER",
|
|
1262
|
-
"Glacier",
|
|
1263
|
-
"GLACIER_IR",
|
|
1264
|
-
"INTELLIGENT_TIERING",
|
|
1265
|
-
"ONEZONE_IA",
|
|
1266
|
-
"STANDARD_IA",
|
|
1267
|
-
]).annotate({
|
|
1268
|
-
description:
|
|
1269
|
-
"The storage class to which you want the object to transition.",
|
|
1270
|
-
}),
|
|
1271
|
-
TransitionDate: Schema.optionalKey(Iso8601UTC),
|
|
1272
|
-
TransitionInDays: Schema.optionalKey(
|
|
1273
|
-
Schema.Number.annotate({
|
|
1701
|
+
const PublicAccessBlockConfiguration = Schema.Struct({
|
|
1702
|
+
BlockPublicAcls: Schema.optionalKey(
|
|
1703
|
+
Schema.Boolean.annotate({
|
|
1274
1704
|
description:
|
|
1275
|
-
"
|
|
1276
|
-
})
|
|
1705
|
+
"Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. Setting this element to ``TRUE`` causes the following behavior:\n + PUT Bucket ACL and PUT Object ACL calls fail if the specified ACL is public.\n + PUT Object calls fail if the request includes a public ACL.\n + PUT Bucket calls fail if the request includes a public ACL.\n \n Enabling this setting doesn't affect existing policies or ACLs.",
|
|
1706
|
+
}),
|
|
1277
1707
|
),
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
"Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see [Transitioning Objects Using Amazon S3 Lifecycle](https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) in the *Amazon S3 User Guide*.",
|
|
1281
|
-
identifier: "Transition",
|
|
1282
|
-
});
|
|
1283
|
-
|
|
1284
|
-
type TargetObjectKeyFormat =
|
|
1285
|
-
| {
|
|
1286
|
-
readonly SimplePrefix: {
|
|
1287
|
-
readonly [x: string]: never;
|
|
1288
|
-
};
|
|
1289
|
-
}
|
|
1290
|
-
| {
|
|
1291
|
-
readonly PartitionedPrefix: PartitionedPrefix;
|
|
1292
|
-
};
|
|
1293
|
-
|
|
1294
|
-
const TargetObjectKeyFormat = Schema.Union(
|
|
1295
|
-
[
|
|
1296
|
-
Schema.Struct({
|
|
1297
|
-
SimplePrefix: Schema.Record(Schema.String, Schema.Never).annotate({
|
|
1298
|
-
description:
|
|
1299
|
-
"This format defaults the prefix to the given log file prefix for delivering server access log file.",
|
|
1300
|
-
}),
|
|
1301
|
-
}).annotate({
|
|
1708
|
+
BlockPublicPolicy: Schema.optionalKey(
|
|
1709
|
+
Schema.Boolean.annotate({
|
|
1302
1710
|
description:
|
|
1303
|
-
"
|
|
1711
|
+
"Specifies whether Amazon S3 should block public bucket policies for this bucket. Setting this element to ``TRUE`` causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access. \n Enabling this setting doesn't affect existing bucket policies.",
|
|
1304
1712
|
}),
|
|
1305
|
-
|
|
1713
|
+
),
|
|
1714
|
+
IgnorePublicAcls: Schema.optionalKey(
|
|
1715
|
+
Schema.Boolean.annotate({
|
|
1306
1716
|
description:
|
|
1307
|
-
"
|
|
1717
|
+
"Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. Setting this element to ``TRUE`` causes Amazon S3 to ignore all public ACLs on this bucket and objects in this bucket.\n Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.",
|
|
1308
1718
|
}),
|
|
1309
|
-
],
|
|
1310
|
-
{ mode: "oneOf" },
|
|
1311
|
-
).annotate({ identifier: "TargetObjectKeyFormat" });
|
|
1312
|
-
|
|
1313
|
-
interface MetadataTableConfiguration {
|
|
1314
|
-
readonly S3TablesDestination: S3TablesDestination;
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
const MetadataTableConfiguration = Schema.Struct({
|
|
1318
|
-
S3TablesDestination: S3TablesDestination,
|
|
1319
|
-
}).annotate({
|
|
1320
|
-
description:
|
|
1321
|
-
"We recommend that you create your S3 Metadata configurations by using the V2 [MetadataConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-s3-bucket-metadataconfiguration.html) resource type. We no longer recommend using the V1 ``MetadataTableConfiguration`` resource type. \n If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using the [MetadataConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-s3-bucket-metadataconfiguration.html) resource type so that you can expire journal table records and create a live inventory table.\n Creates a V1 S3 Metadata configuration for a general purpose bucket. For more information, see [Accelerating data discovery with S3 Metadata](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html) in the *Amazon S3 User Guide*.",
|
|
1322
|
-
identifier: "MetadataTableConfiguration",
|
|
1323
|
-
});
|
|
1324
|
-
|
|
1325
|
-
interface JournalTableConfiguration {
|
|
1326
|
-
readonly TableName?: string;
|
|
1327
|
-
readonly TableArn?: string;
|
|
1328
|
-
readonly RecordExpiration: RecordExpiration;
|
|
1329
|
-
readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
const JournalTableConfiguration = Schema.Struct({
|
|
1333
|
-
TableName: Schema.optionalKey(
|
|
1334
|
-
Schema.String.annotate({ description: "The name of the journal table." }),
|
|
1335
1719
|
),
|
|
1336
|
-
|
|
1337
|
-
Schema.
|
|
1338
|
-
description:
|
|
1720
|
+
RestrictPublicBuckets: Schema.optionalKey(
|
|
1721
|
+
Schema.Boolean.annotate({
|
|
1722
|
+
description:
|
|
1723
|
+
"Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to ``TRUE`` restricts access to this bucket to only AWS-service principals and authorized users within this account if the bucket has a public policy.\n Enabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.",
|
|
1339
1724
|
}),
|
|
1340
1725
|
),
|
|
1341
|
-
RecordExpiration: RecordExpiration,
|
|
1342
|
-
EncryptionConfiguration: Schema.optionalKey(
|
|
1343
|
-
MetadataTableEncryptionConfiguration,
|
|
1344
|
-
),
|
|
1345
1726
|
}).annotate({
|
|
1346
1727
|
description:
|
|
1347
|
-
|
|
1348
|
-
identifier: "
|
|
1728
|
+
'The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. Bucket-level settings work alongside account-level settings (which may inherit from organization-level policies). For more information about when Amazon S3 considers a bucket or object public, see [The Meaning of "Public"](https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) in the *Amazon S3 User Guide*.',
|
|
1729
|
+
identifier: "PublicAccessBlockConfiguration",
|
|
1349
1730
|
});
|
|
1350
1731
|
|
|
1351
|
-
interface
|
|
1352
|
-
readonly
|
|
1353
|
-
readonly TableArn?: string;
|
|
1354
|
-
readonly ConfigurationState: "ENABLED" | "DISABLED";
|
|
1355
|
-
readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
|
|
1732
|
+
interface DeleteMarkerReplication {
|
|
1733
|
+
readonly Status?: "Disabled" | "Enabled";
|
|
1356
1734
|
}
|
|
1357
1735
|
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1360
|
-
Schema.
|
|
1361
|
-
|
|
1362
|
-
TableArn: Schema.optionalKey(
|
|
1363
|
-
Schema.String.annotate({
|
|
1364
|
-
description: "The Amazon Resource Name (ARN) for the inventory table.",
|
|
1736
|
+
const DeleteMarkerReplication = Schema.Struct({
|
|
1737
|
+
Status: Schema.optionalKey(
|
|
1738
|
+
Schema.Literals(["Disabled", "Enabled"]).annotate({
|
|
1739
|
+
description: "Indicates whether to replicate delete markers.",
|
|
1365
1740
|
}),
|
|
1366
1741
|
),
|
|
1367
|
-
ConfigurationState: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
|
|
1368
|
-
description:
|
|
1369
|
-
"The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.",
|
|
1370
|
-
}),
|
|
1371
|
-
EncryptionConfiguration: Schema.optionalKey(
|
|
1372
|
-
MetadataTableEncryptionConfiguration,
|
|
1373
|
-
),
|
|
1374
1742
|
}).annotate({
|
|
1375
1743
|
description:
|
|
1376
|
-
"
|
|
1377
|
-
identifier: "
|
|
1744
|
+
"Specifies whether Amazon S3 replicates delete markers. If you specify a ``Filter`` in your replication configuration, you must also include a ``DeleteMarkerReplication`` element. If your ``Filter`` includes a ``Tag`` element, the ``DeleteMarkerReplication````Status`` must be set to Disabled, because Amazon S3 does not support replicating delete markers for tag-based rules. For an example configuration, see [Basic Rule Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config). \n For more information about delete marker replication, see [Basic Rule Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-marker-replication.html). \n If you are using an earlier version of the replication configuration, Amazon S3 handles replication of delete markers differently. For more information, see [Backward Compatibility](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations).",
|
|
1745
|
+
identifier: "DeleteMarkerReplication",
|
|
1378
1746
|
});
|
|
1379
1747
|
|
|
1380
|
-
interface
|
|
1381
|
-
readonly
|
|
1382
|
-
readonly TableArn?: string;
|
|
1383
|
-
readonly ConfigurationState: "ENABLED" | "DISABLED";
|
|
1384
|
-
readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
|
|
1385
|
-
readonly Role?: string;
|
|
1748
|
+
interface AccessControlTranslation {
|
|
1749
|
+
readonly Owner: "Destination";
|
|
1386
1750
|
}
|
|
1387
1751
|
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1390
|
-
Schema.String.annotate({
|
|
1391
|
-
description: "The name of the annotation table.",
|
|
1392
|
-
}),
|
|
1393
|
-
),
|
|
1394
|
-
TableArn: Schema.optionalKey(
|
|
1395
|
-
Schema.String.annotate({ description: "The ARN of the annotation table." }),
|
|
1396
|
-
),
|
|
1397
|
-
ConfigurationState: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
|
|
1752
|
+
const AccessControlTranslation = Schema.Struct({
|
|
1753
|
+
Owner: Schema.Literal("Destination").annotate({
|
|
1398
1754
|
description:
|
|
1399
|
-
"Specifies
|
|
1755
|
+
"Specifies the replica ownership. For default and valid values, see [PUT bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) in the *Amazon S3 API Reference*.",
|
|
1400
1756
|
}),
|
|
1401
|
-
EncryptionConfiguration: Schema.optionalKey(
|
|
1402
|
-
MetadataTableEncryptionConfiguration,
|
|
1403
|
-
),
|
|
1404
|
-
Role: Schema.optionalKey(
|
|
1405
|
-
Schema.String.annotate({
|
|
1406
|
-
description:
|
|
1407
|
-
"The ARN of the IAM role that grants Amazon S3 Metadata permission to read annotations from your bucket.",
|
|
1408
|
-
}),
|
|
1409
|
-
),
|
|
1410
|
-
}).annotate({ description: "", identifier: "AnnotationTableConfiguration" });
|
|
1411
|
-
|
|
1412
|
-
interface S3KeyFilter {
|
|
1413
|
-
readonly Rules: ReadonlyArray<FilterRule>;
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
const S3KeyFilter = Schema.Struct({
|
|
1417
|
-
Rules: Schema.Array(FilterRule)
|
|
1418
|
-
.annotate({
|
|
1419
|
-
description:
|
|
1420
|
-
"A list of containers for the key-value pair that defines the criteria for the filter rule.",
|
|
1421
|
-
})
|
|
1422
|
-
.check(
|
|
1423
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1424
|
-
),
|
|
1425
1757
|
}).annotate({
|
|
1426
1758
|
description:
|
|
1427
|
-
"
|
|
1428
|
-
identifier: "
|
|
1759
|
+
"Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS-account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS-account that owns the source object.",
|
|
1760
|
+
identifier: "AccessControlTranslation",
|
|
1429
1761
|
});
|
|
1430
1762
|
|
|
1431
|
-
interface
|
|
1432
|
-
readonly
|
|
1763
|
+
interface EncryptionConfiguration {
|
|
1764
|
+
readonly ReplicaKmsKeyID:
|
|
1765
|
+
| ResourceEntity<{
|
|
1766
|
+
readonly provider: "aws";
|
|
1767
|
+
readonly service: "kms";
|
|
1768
|
+
readonly resource: "key";
|
|
1769
|
+
}>
|
|
1770
|
+
| string;
|
|
1433
1771
|
}
|
|
1434
1772
|
|
|
1435
|
-
const
|
|
1436
|
-
|
|
1773
|
+
const EncryptionConfiguration = Schema.Struct({
|
|
1774
|
+
ReplicaKmsKeyID: Schema.Union([
|
|
1775
|
+
Schema.Union([
|
|
1776
|
+
ResourceReferenceSchema(
|
|
1777
|
+
Schema.Struct({
|
|
1778
|
+
provider: Schema.Literal("aws"),
|
|
1779
|
+
service: Schema.Literal("kms"),
|
|
1780
|
+
resource: Schema.Literal("key"),
|
|
1781
|
+
}),
|
|
1782
|
+
{
|
|
1783
|
+
value: null,
|
|
1784
|
+
outputs: [
|
|
1785
|
+
{
|
|
1786
|
+
source: ["Arn"],
|
|
1787
|
+
target: [],
|
|
1788
|
+
},
|
|
1789
|
+
],
|
|
1790
|
+
},
|
|
1791
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1792
|
+
]),
|
|
1793
|
+
Schema.String.annotate({
|
|
1794
|
+
description:
|
|
1795
|
+
"Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
|
|
1796
|
+
}),
|
|
1797
|
+
]),
|
|
1437
1798
|
}).annotate({
|
|
1438
1799
|
description:
|
|
1439
|
-
"Specifies
|
|
1440
|
-
identifier: "
|
|
1800
|
+
"Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects.\n If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner.",
|
|
1801
|
+
identifier: "EncryptionConfiguration",
|
|
1441
1802
|
});
|
|
1442
1803
|
|
|
1443
|
-
interface
|
|
1444
|
-
readonly
|
|
1804
|
+
interface ReplicationTimeValue {
|
|
1805
|
+
readonly Minutes: number;
|
|
1445
1806
|
}
|
|
1446
1807
|
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
})
|
|
1453
|
-
.check(
|
|
1454
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1455
|
-
),
|
|
1808
|
+
const ReplicationTimeValue = Schema.Struct({
|
|
1809
|
+
Minutes: Schema.Number.annotate({
|
|
1810
|
+
description:
|
|
1811
|
+
"Contains an integer specifying time in minutes. \n Valid value: 15",
|
|
1812
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1456
1813
|
}).annotate({
|
|
1457
1814
|
description:
|
|
1458
|
-
"
|
|
1459
|
-
identifier: "
|
|
1815
|
+
"A container specifying the time value for S3 Replication Time Control (S3 RTC) and replication metrics ``EventThreshold``.",
|
|
1816
|
+
identifier: "ReplicationTimeValue",
|
|
1460
1817
|
});
|
|
1461
1818
|
|
|
1462
1819
|
interface Metrics {
|
|
@@ -1491,132 +1848,113 @@ const ReplicationTime = Schema.Struct({
|
|
|
1491
1848
|
identifier: "ReplicationTime",
|
|
1492
1849
|
});
|
|
1493
1850
|
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
description:
|
|
1504
|
-
"A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects.",
|
|
1505
|
-
identifier: "SourceSelectionCriteria",
|
|
1506
|
-
});
|
|
1507
|
-
|
|
1508
|
-
interface RoutingRule {
|
|
1509
|
-
readonly RedirectRule: RedirectRule;
|
|
1510
|
-
readonly RoutingRuleCondition?: RoutingRuleCondition;
|
|
1511
|
-
}
|
|
1851
|
+
type ResourceInputAlternatives_6 =
|
|
1852
|
+
| "DEEP_ARCHIVE"
|
|
1853
|
+
| "GLACIER"
|
|
1854
|
+
| "GLACIER_IR"
|
|
1855
|
+
| "INTELLIGENT_TIERING"
|
|
1856
|
+
| "ONEZONE_IA"
|
|
1857
|
+
| "REDUCED_REDUNDANCY"
|
|
1858
|
+
| "STANDARD"
|
|
1859
|
+
| "STANDARD_IA";
|
|
1512
1860
|
|
|
1513
|
-
const
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1861
|
+
const ResourceInputAlternatives_6 = Schema.Literals([
|
|
1862
|
+
"DEEP_ARCHIVE",
|
|
1863
|
+
"GLACIER",
|
|
1864
|
+
"GLACIER_IR",
|
|
1865
|
+
"INTELLIGENT_TIERING",
|
|
1866
|
+
"ONEZONE_IA",
|
|
1867
|
+
"REDUCED_REDUNDANCY",
|
|
1868
|
+
"STANDARD",
|
|
1869
|
+
"STANDARD_IA",
|
|
1870
|
+
]).annotate({
|
|
1517
1871
|
description:
|
|
1518
|
-
"
|
|
1519
|
-
identifier: "RoutingRule",
|
|
1872
|
+
"The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica. \n For valid values, see the ``StorageClass`` element of the [PUT Bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) action in the *Amazon S3 API Reference*.\n ``FSX_OPENZFS`` is not an accepted value when replicating objects.",
|
|
1520
1873
|
});
|
|
1521
1874
|
|
|
1522
|
-
interface
|
|
1523
|
-
readonly
|
|
1524
|
-
readonly
|
|
1875
|
+
interface ReplicationDestination {
|
|
1876
|
+
readonly AccessControlTranslation?: AccessControlTranslation;
|
|
1877
|
+
readonly Account?: string;
|
|
1878
|
+
readonly Bucket:
|
|
1879
|
+
| ResourceEntity<{
|
|
1880
|
+
readonly provider: "aws";
|
|
1881
|
+
readonly service: "s3";
|
|
1882
|
+
readonly resource: "bucket";
|
|
1883
|
+
}>
|
|
1884
|
+
| string;
|
|
1885
|
+
readonly EncryptionConfiguration?: EncryptionConfiguration;
|
|
1886
|
+
readonly Metrics?: Metrics;
|
|
1887
|
+
readonly ReplicationTime?: ReplicationTime;
|
|
1888
|
+
readonly StorageClass?: ResourceInputAlternatives_6;
|
|
1525
1889
|
}
|
|
1526
1890
|
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1891
|
+
const ReplicationDestination = Schema.Struct({
|
|
1892
|
+
AccessControlTranslation: Schema.optionalKey(AccessControlTranslation),
|
|
1893
|
+
Account: Schema.optionalKey(
|
|
1894
|
+
Schema.String.annotate({
|
|
1895
|
+
description:
|
|
1896
|
+
"Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the AWS-account that owns the destination bucket by specifying the ``AccessControlTranslation`` property, this is the account ID of the destination bucket owner. For more information, see [Cross-Region Replication Additional Configuration: Change Replica Owner](https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-change-owner.html) in the *Amazon S3 User Guide*.\n If you specify the ``AccessControlTranslation`` property, the ``Account`` property is required.",
|
|
1897
|
+
}),
|
|
1898
|
+
),
|
|
1899
|
+
Bucket: Schema.Union([
|
|
1900
|
+
Schema.Union([
|
|
1901
|
+
ResourceReferenceSchema(
|
|
1902
|
+
Schema.Struct({
|
|
1903
|
+
provider: Schema.Literal("aws"),
|
|
1904
|
+
service: Schema.Literal("s3"),
|
|
1905
|
+
resource: Schema.Literal("bucket"),
|
|
1906
|
+
}),
|
|
1907
|
+
{
|
|
1908
|
+
value: null,
|
|
1909
|
+
outputs: [
|
|
1910
|
+
{
|
|
1911
|
+
source: ["Arn"],
|
|
1912
|
+
target: [],
|
|
1913
|
+
},
|
|
1914
|
+
],
|
|
1915
|
+
},
|
|
1916
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1917
|
+
]),
|
|
1918
|
+
Schema.String.annotate({
|
|
1919
|
+
description:
|
|
1920
|
+
"The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.",
|
|
1921
|
+
}),
|
|
1922
|
+
]),
|
|
1923
|
+
EncryptionConfiguration: Schema.optionalKey(EncryptionConfiguration),
|
|
1924
|
+
Metrics: Schema.optionalKey(Metrics),
|
|
1925
|
+
ReplicationTime: Schema.optionalKey(ReplicationTime),
|
|
1926
|
+
StorageClass: Schema.optionalKey(ResourceInputAlternatives_6),
|
|
1533
1927
|
}).annotate({
|
|
1534
1928
|
description:
|
|
1535
|
-
"
|
|
1536
|
-
identifier: "
|
|
1929
|
+
"A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).",
|
|
1930
|
+
identifier: "ReplicationDestination",
|
|
1537
1931
|
});
|
|
1538
1932
|
|
|
1539
|
-
interface
|
|
1540
|
-
readonly Destination: Destination_2;
|
|
1541
|
-
readonly Enabled: boolean;
|
|
1542
|
-
readonly Id: string;
|
|
1543
|
-
readonly IncludedObjectVersions: "All" | "Current";
|
|
1544
|
-
readonly OptionalFields?: ReadonlyArray<
|
|
1545
|
-
| "Size"
|
|
1546
|
-
| "LastModifiedDate"
|
|
1547
|
-
| "StorageClass"
|
|
1548
|
-
| "ETag"
|
|
1549
|
-
| "IsMultipartUploaded"
|
|
1550
|
-
| "ReplicationStatus"
|
|
1551
|
-
| "EncryptionStatus"
|
|
1552
|
-
| "ObjectLockRetainUntilDate"
|
|
1553
|
-
| "ObjectLockMode"
|
|
1554
|
-
| "ObjectLockLegalHoldStatus"
|
|
1555
|
-
| "IntelligentTieringAccessTier"
|
|
1556
|
-
| "BucketKeyStatus"
|
|
1557
|
-
| "ChecksumAlgorithm"
|
|
1558
|
-
| "ObjectAccessControlList"
|
|
1559
|
-
| "ObjectOwner"
|
|
1560
|
-
| "LifecycleExpirationDate"
|
|
1561
|
-
>;
|
|
1933
|
+
interface ReplicationRuleAndOperator {
|
|
1562
1934
|
readonly Prefix?: string;
|
|
1563
|
-
readonly
|
|
1935
|
+
readonly TagFilters?: globalThis.ReadonlyArray<TagFilter>;
|
|
1564
1936
|
}
|
|
1565
1937
|
|
|
1566
|
-
const
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
IncludedObjectVersions: Schema.Literals(["All", "Current"]).annotate({
|
|
1576
|
-
description:
|
|
1577
|
-
"Object versions to include in the inventory list. If set to ``All``, the list includes all the object versions, which adds the version-related fields ``VersionId``, ``IsLatest``, and ``DeleteMarker`` to the list. If set to ``Current``, the list does not contain these version-related fields.",
|
|
1578
|
-
}),
|
|
1579
|
-
OptionalFields: Schema.optionalKey(
|
|
1580
|
-
Schema.Array(
|
|
1581
|
-
Schema.Literals([
|
|
1582
|
-
"Size",
|
|
1583
|
-
"LastModifiedDate",
|
|
1584
|
-
"StorageClass",
|
|
1585
|
-
"ETag",
|
|
1586
|
-
"IsMultipartUploaded",
|
|
1587
|
-
"ReplicationStatus",
|
|
1588
|
-
"EncryptionStatus",
|
|
1589
|
-
"ObjectLockRetainUntilDate",
|
|
1590
|
-
"ObjectLockMode",
|
|
1591
|
-
"ObjectLockLegalHoldStatus",
|
|
1592
|
-
"IntelligentTieringAccessTier",
|
|
1593
|
-
"BucketKeyStatus",
|
|
1594
|
-
"ChecksumAlgorithm",
|
|
1595
|
-
"ObjectAccessControlList",
|
|
1596
|
-
"ObjectOwner",
|
|
1597
|
-
"LifecycleExpirationDate",
|
|
1598
|
-
]),
|
|
1599
|
-
)
|
|
1938
|
+
const ReplicationRuleAndOperator = Schema.Struct({
|
|
1939
|
+
Prefix: Schema.optionalKey(
|
|
1940
|
+
Schema.String.annotate({
|
|
1941
|
+
description:
|
|
1942
|
+
"An object key name prefix that identifies the subset of objects to which the rule applies.",
|
|
1943
|
+
}),
|
|
1944
|
+
),
|
|
1945
|
+
TagFilters: Schema.optionalKey(
|
|
1946
|
+
Schema.Array(TagFilter)
|
|
1600
1947
|
.annotate({
|
|
1601
|
-
description:
|
|
1602
|
-
"Contains the optional fields that are included in the inventory results.",
|
|
1948
|
+
description: "An array of tags containing key and value pairs.",
|
|
1603
1949
|
})
|
|
1604
1950
|
.check(
|
|
1605
1951
|
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1606
1952
|
),
|
|
1607
1953
|
),
|
|
1608
|
-
Prefix: Schema.optionalKey(
|
|
1609
|
-
Schema.String.annotate({
|
|
1610
|
-
description: "Specifies the inventory filter prefix.",
|
|
1611
|
-
}),
|
|
1612
|
-
),
|
|
1613
|
-
ScheduleFrequency: Schema.Literals(["Daily", "Weekly"]).annotate({
|
|
1614
|
-
description: "Specifies the schedule for generating inventory results.",
|
|
1615
|
-
}),
|
|
1616
1954
|
}).annotate({
|
|
1617
1955
|
description:
|
|
1618
|
-
"
|
|
1619
|
-
identifier: "
|
|
1956
|
+
"A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. \n For example:\n + If you specify both a ``Prefix`` and a ``TagFilter``, wrap these filters in an ``And`` tag. \n + If you specify a filter based on multiple tags, wrap the ``TagFilter`` elements in an ``And`` tag",
|
|
1957
|
+
identifier: "ReplicationRuleAndOperator",
|
|
1620
1958
|
});
|
|
1621
1959
|
|
|
1622
1960
|
interface ReplicationRuleFilter {
|
|
@@ -1640,462 +1978,320 @@ const ReplicationRuleFilter = Schema.Struct({
|
|
|
1640
1978
|
identifier: "ReplicationRuleFilter",
|
|
1641
1979
|
});
|
|
1642
1980
|
|
|
1643
|
-
interface
|
|
1644
|
-
readonly
|
|
1981
|
+
interface ReplicaModifications {
|
|
1982
|
+
readonly Status: "Enabled" | "Disabled";
|
|
1645
1983
|
}
|
|
1646
1984
|
|
|
1647
|
-
const
|
|
1648
|
-
|
|
1985
|
+
const ReplicaModifications = Schema.Struct({
|
|
1986
|
+
Status: Schema.Literals(["Enabled", "Disabled"]).annotate({
|
|
1987
|
+
description:
|
|
1988
|
+
"Specifies whether Amazon S3 replicates modifications on replicas.\n *Allowed values*: ``Enabled`` | ``Disabled``",
|
|
1989
|
+
}),
|
|
1649
1990
|
}).annotate({
|
|
1650
1991
|
description:
|
|
1651
|
-
"
|
|
1652
|
-
identifier: "
|
|
1992
|
+
"A filter that you can specify for selection for modifications on replicas.",
|
|
1993
|
+
identifier: "ReplicaModifications",
|
|
1653
1994
|
});
|
|
1654
1995
|
|
|
1655
|
-
interface
|
|
1656
|
-
readonly
|
|
1657
|
-
readonly ServerSideEncryptionByDefault?: ServerSideEncryptionByDefault;
|
|
1658
|
-
readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
|
|
1996
|
+
interface SseKmsEncryptedObjects {
|
|
1997
|
+
readonly Status: "Disabled" | "Enabled";
|
|
1659
1998
|
}
|
|
1660
1999
|
|
|
1661
|
-
const
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
}),
|
|
1667
|
-
),
|
|
1668
|
-
ServerSideEncryptionByDefault: Schema.optionalKey(
|
|
1669
|
-
ServerSideEncryptionByDefault,
|
|
1670
|
-
),
|
|
1671
|
-
BlockedEncryptionTypes: Schema.optionalKey(BlockedEncryptionTypes),
|
|
2000
|
+
const SseKmsEncryptedObjects = Schema.Struct({
|
|
2001
|
+
Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
|
|
2002
|
+
description:
|
|
2003
|
+
"Specifies whether Amazon S3 replicates objects created with server-side encryption using an AWS KMS key stored in AWS Key Management Service.",
|
|
2004
|
+
}),
|
|
1672
2005
|
}).annotate({
|
|
1673
2006
|
description:
|
|
1674
|
-
"
|
|
1675
|
-
identifier: "
|
|
2007
|
+
"A container for filter information for the selection of S3 objects encrypted with AWS KMS.",
|
|
2008
|
+
identifier: "SseKmsEncryptedObjects",
|
|
1676
2009
|
});
|
|
1677
2010
|
|
|
1678
|
-
interface
|
|
1679
|
-
readonly
|
|
1680
|
-
readonly
|
|
1681
|
-
readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
|
|
2011
|
+
interface SourceSelectionCriteria {
|
|
2012
|
+
readonly ReplicaModifications?: ReplicaModifications;
|
|
2013
|
+
readonly SseKmsEncryptedObjects?: SseKmsEncryptedObjects;
|
|
1682
2014
|
}
|
|
1683
2015
|
|
|
1684
|
-
const
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
description:
|
|
1688
|
-
"Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the ``BucketKeyEnabled`` element to ``true`` causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.\n For more information, see [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the *Amazon S3 User Guide*.",
|
|
1689
|
-
}),
|
|
1690
|
-
),
|
|
1691
|
-
ServerSideEncryptionByDefault: Schema.optionalKey(
|
|
1692
|
-
ServerSideEncryptionByDefault_1,
|
|
1693
|
-
),
|
|
1694
|
-
BlockedEncryptionTypes: Schema.optionalKey(BlockedEncryptionTypes),
|
|
2016
|
+
const SourceSelectionCriteria = Schema.Struct({
|
|
2017
|
+
ReplicaModifications: Schema.optionalKey(ReplicaModifications),
|
|
2018
|
+
SseKmsEncryptedObjects: Schema.optionalKey(SseKmsEncryptedObjects),
|
|
1695
2019
|
}).annotate({
|
|
1696
2020
|
description:
|
|
1697
|
-
"
|
|
1698
|
-
identifier: "
|
|
2021
|
+
"A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects.",
|
|
2022
|
+
identifier: "SourceSelectionCriteria",
|
|
1699
2023
|
});
|
|
1700
2024
|
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
2025
|
+
type ResourceInputAlternatives_7 = "Disabled" | "Enabled";
|
|
2026
|
+
|
|
2027
|
+
const ResourceInputAlternatives_7 = Schema.Literals([
|
|
2028
|
+
"Disabled",
|
|
2029
|
+
"Enabled",
|
|
2030
|
+
]).annotate({ description: "Specifies whether the rule is enabled." });
|
|
2031
|
+
|
|
2032
|
+
interface ReplicationRule {
|
|
2033
|
+
readonly DeleteMarkerReplication?: DeleteMarkerReplication;
|
|
2034
|
+
readonly Destination: ReplicationDestination;
|
|
2035
|
+
readonly Filter?: ReplicationRuleFilter;
|
|
1706
2036
|
readonly Id?: string;
|
|
1707
|
-
readonly NoncurrentVersionExpirationInDays?: number;
|
|
1708
|
-
readonly NoncurrentVersionExpiration?: NoncurrentVersionExpiration;
|
|
1709
|
-
readonly NoncurrentVersionTransition?: NoncurrentVersionTransition;
|
|
1710
|
-
readonly NoncurrentVersionTransitions?: ReadonlyArray<NoncurrentVersionTransition>;
|
|
1711
2037
|
readonly Prefix?: string;
|
|
1712
|
-
readonly
|
|
1713
|
-
readonly
|
|
1714
|
-
readonly
|
|
1715
|
-
readonly ObjectSizeLessThan?: string;
|
|
1716
|
-
readonly Transition?: Transition;
|
|
1717
|
-
readonly Transitions?: ReadonlyArray<Transition>;
|
|
2038
|
+
readonly Priority?: number;
|
|
2039
|
+
readonly SourceSelectionCriteria?: SourceSelectionCriteria;
|
|
2040
|
+
readonly Status: ResourceInputAlternatives_7;
|
|
1718
2041
|
}
|
|
1719
2042
|
|
|
1720
|
-
const
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
),
|
|
1724
|
-
ExpirationDate: Schema.optionalKey(Iso8601UTC),
|
|
1725
|
-
ExpirationInDays: Schema.optionalKey(
|
|
1726
|
-
Schema.Number.annotate({
|
|
1727
|
-
description:
|
|
1728
|
-
"Indicates the number of days after creation when objects are deleted from Amazon S3 and Amazon S3 Glacier. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.",
|
|
1729
|
-
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1730
|
-
),
|
|
1731
|
-
ExpiredObjectDeleteMarker: Schema.optionalKey(
|
|
1732
|
-
Schema.Boolean.annotate({
|
|
1733
|
-
description:
|
|
1734
|
-
"Indicates whether Amazon S3 will remove a delete marker without any noncurrent versions. If set to true, the delete marker will be removed if there are no noncurrent versions. This cannot be specified with ``ExpirationInDays``, ``ExpirationDate``, or ``TagFilters``.",
|
|
1735
|
-
}),
|
|
1736
|
-
),
|
|
2043
|
+
const ReplicationRule = Schema.Struct({
|
|
2044
|
+
DeleteMarkerReplication: Schema.optionalKey(DeleteMarkerReplication),
|
|
2045
|
+
Destination: ReplicationDestination,
|
|
2046
|
+
Filter: Schema.optionalKey(ReplicationRuleFilter),
|
|
1737
2047
|
Id: Schema.optionalKey(
|
|
1738
2048
|
Schema.String.annotate({
|
|
1739
2049
|
description:
|
|
1740
|
-
|
|
2050
|
+
'A unique identifier for the rule. The maximum value is 255 characters. If you don\'t specify a value, AWS CloudFormation generates a random ID. When using a V2 replication configuration this property is capitalized as "ID".',
|
|
1741
2051
|
}).check(
|
|
1742
2052
|
Schema.isMaxCodePoints(255).annotate({
|
|
1743
2053
|
expected: "a string with at most 255 code points",
|
|
1744
2054
|
}),
|
|
1745
2055
|
),
|
|
1746
2056
|
),
|
|
1747
|
-
NoncurrentVersionExpirationInDays: Schema.optionalKey(
|
|
1748
|
-
Schema.Number.annotate({
|
|
1749
|
-
description:
|
|
1750
|
-
"(Deprecated.) For buckets with versioning enabled (or suspended), specifies the time, in days, between when a new version of the object is uploaded to the bucket and when old versions of the object expire. When object versions expire, Amazon S3 permanently deletes them. If you specify a transition and expiration time, the expiration time must be later than the transition time.",
|
|
1751
|
-
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1752
|
-
),
|
|
1753
|
-
NoncurrentVersionExpiration: Schema.optionalKey(NoncurrentVersionExpiration),
|
|
1754
|
-
NoncurrentVersionTransition: Schema.optionalKey(NoncurrentVersionTransition),
|
|
1755
|
-
NoncurrentVersionTransitions: Schema.optionalKey(
|
|
1756
|
-
Schema.Array(NoncurrentVersionTransition)
|
|
1757
|
-
.annotate({
|
|
1758
|
-
description:
|
|
1759
|
-
"For buckets with versioning enabled (or suspended), one or more transition rules that specify when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the ``NoncurrentVersionTransition`` property.",
|
|
1760
|
-
})
|
|
1761
|
-
.check(
|
|
1762
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1763
|
-
),
|
|
1764
|
-
),
|
|
1765
2057
|
Prefix: Schema.optionalKey(
|
|
1766
2058
|
Schema.String.annotate({
|
|
1767
2059
|
description:
|
|
1768
|
-
"
|
|
1769
|
-
})
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
}),
|
|
1775
|
-
TagFilters: Schema.optionalKey(
|
|
1776
|
-
Schema.Array(TagFilter)
|
|
1777
|
-
.annotate({
|
|
1778
|
-
description:
|
|
1779
|
-
"Tags to use to identify a subset of objects to which the lifecycle rule applies.",
|
|
1780
|
-
})
|
|
1781
|
-
.check(
|
|
1782
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1783
|
-
),
|
|
1784
|
-
),
|
|
1785
|
-
ObjectSizeGreaterThan: Schema.optionalKey(
|
|
1786
|
-
Schema.String.annotate({
|
|
1787
|
-
description:
|
|
1788
|
-
"Specifies the minimum object size in bytes for this rule to apply to. Objects must be larger than this value in bytes. For more information about size based rules, see [Lifecycle configuration using size-based rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html#lc-size-rules) in the *Amazon S3 User Guide*.",
|
|
1789
|
-
})
|
|
1790
|
-
.check(
|
|
1791
|
-
Schema.isMaxCodePoints(20).annotate({
|
|
1792
|
-
expected: "a string with at most 20 code points",
|
|
1793
|
-
}),
|
|
1794
|
-
)
|
|
1795
|
-
.check(
|
|
1796
|
-
Schema.isPattern(new globalThis.RegExp("[0-9]+", "u")).annotate({
|
|
1797
|
-
expected: "a string matching the RegExp [0-9]+",
|
|
1798
|
-
}),
|
|
1799
|
-
),
|
|
2060
|
+
"An object key name prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters. To include all objects in a bucket, specify an empty string. To filter using a V1 replication configuration, add the ``Prefix`` directly as a child element of the ``Rule`` element.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
|
|
2061
|
+
}).check(
|
|
2062
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
2063
|
+
expected: "a string with at most 1024 code points",
|
|
2064
|
+
}),
|
|
2065
|
+
),
|
|
1800
2066
|
),
|
|
1801
|
-
|
|
1802
|
-
Schema.
|
|
2067
|
+
Priority: Schema.optionalKey(
|
|
2068
|
+
Schema.Number.annotate({
|
|
1803
2069
|
description:
|
|
1804
|
-
"
|
|
1805
|
-
})
|
|
1806
|
-
.check(
|
|
1807
|
-
Schema.isMaxCodePoints(20).annotate({
|
|
1808
|
-
expected: "a string with at most 20 code points",
|
|
1809
|
-
}),
|
|
1810
|
-
)
|
|
1811
|
-
.check(
|
|
1812
|
-
Schema.isPattern(new globalThis.RegExp("[0-9]+", "u")).annotate({
|
|
1813
|
-
expected: "a string matching the RegExp [0-9]+",
|
|
1814
|
-
}),
|
|
1815
|
-
),
|
|
1816
|
-
),
|
|
1817
|
-
Transition: Schema.optionalKey(Transition),
|
|
1818
|
-
Transitions: Schema.optionalKey(
|
|
1819
|
-
Schema.Array(Transition)
|
|
1820
|
-
.annotate({
|
|
1821
|
-
description:
|
|
1822
|
-
"One or more transition rules that specify when an object transitions to a specified storage class. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time. If you specify this property, don't specify the ``Transition`` property.",
|
|
1823
|
-
})
|
|
1824
|
-
.check(
|
|
1825
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
1826
|
-
),
|
|
2070
|
+
"The priority indicates which rule has precedence whenever two or more replication rules conflict. Amazon S3 will attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority. \n For more information, see [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the *Amazon S3 User Guide*.",
|
|
2071
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1827
2072
|
),
|
|
2073
|
+
SourceSelectionCriteria: Schema.optionalKey(SourceSelectionCriteria),
|
|
2074
|
+
Status: ResourceInputAlternatives_7,
|
|
1828
2075
|
}).annotate({
|
|
1829
2076
|
description:
|
|
1830
|
-
"Specifies
|
|
1831
|
-
identifier: "
|
|
2077
|
+
"Specifies which Amazon S3 objects to replicate and where to store the replicas.",
|
|
2078
|
+
identifier: "ReplicationRule",
|
|
1832
2079
|
});
|
|
1833
2080
|
|
|
1834
|
-
interface
|
|
1835
|
-
readonly
|
|
2081
|
+
interface ReplicationConfiguration {
|
|
2082
|
+
readonly Role:
|
|
1836
2083
|
| ResourceEntity<{
|
|
1837
2084
|
readonly provider: "aws";
|
|
1838
|
-
readonly service: "
|
|
1839
|
-
readonly resource: "
|
|
2085
|
+
readonly service: "iam";
|
|
2086
|
+
readonly resource: "role";
|
|
1840
2087
|
}>
|
|
1841
2088
|
| string;
|
|
1842
|
-
readonly
|
|
1843
|
-
readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
|
|
2089
|
+
readonly Rules: globalThis.ReadonlyArray<ReplicationRule>;
|
|
1844
2090
|
}
|
|
1845
2091
|
|
|
1846
|
-
const
|
|
1847
|
-
|
|
2092
|
+
const ReplicationConfiguration = Schema.Struct({
|
|
2093
|
+
Role: Schema.Union([
|
|
1848
2094
|
Schema.Union([
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
Schema.
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
).annotate({ expected: "ResourceEntity" }),
|
|
1866
|
-
]),
|
|
1867
|
-
Schema.String.annotate({
|
|
1868
|
-
description:
|
|
1869
|
-
"The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the ``LoggingConfiguration`` property is defined.",
|
|
1870
|
-
}),
|
|
2095
|
+
ResourceReferenceSchema(
|
|
2096
|
+
Schema.Struct({
|
|
2097
|
+
provider: Schema.Literal("aws"),
|
|
2098
|
+
service: Schema.Literal("iam"),
|
|
2099
|
+
resource: Schema.Literal("role"),
|
|
2100
|
+
}),
|
|
2101
|
+
{
|
|
2102
|
+
value: null,
|
|
2103
|
+
outputs: [
|
|
2104
|
+
{
|
|
2105
|
+
source: ["Arn"],
|
|
2106
|
+
target: [],
|
|
2107
|
+
},
|
|
2108
|
+
],
|
|
2109
|
+
},
|
|
2110
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1871
2111
|
]),
|
|
1872
|
-
),
|
|
1873
|
-
LogFilePrefix: Schema.optionalKey(
|
|
1874
2112
|
Schema.String.annotate({
|
|
1875
2113
|
description:
|
|
1876
|
-
"
|
|
2114
|
+
"The Amazon Resource Name (ARN) of the IAMlong (IAM) role that Amazon S3 assumes when replicating objects. For more information, see [How to Set Up Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-how-setup.html) in the *Amazon S3 User Guide*.",
|
|
1877
2115
|
}),
|
|
1878
|
-
),
|
|
1879
|
-
|
|
2116
|
+
]),
|
|
2117
|
+
Rules: Schema.Array(ReplicationRule)
|
|
2118
|
+
.annotate({
|
|
2119
|
+
description:
|
|
2120
|
+
"A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.",
|
|
2121
|
+
})
|
|
2122
|
+
.check(
|
|
2123
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
2124
|
+
),
|
|
1880
2125
|
}).annotate({
|
|
1881
2126
|
description:
|
|
1882
|
-
"
|
|
1883
|
-
identifier: "
|
|
2127
|
+
"A container for replication rules. You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB. The latest version of the replication configuration XML is V2. For more information about XML V2 replication configurations, see [Replication configuration](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-add-config.html) in the *Amazon S3 User Guide*.",
|
|
2128
|
+
identifier: "ReplicationConfiguration",
|
|
1884
2129
|
});
|
|
1885
2130
|
|
|
1886
|
-
interface
|
|
1887
|
-
readonly
|
|
1888
|
-
readonly
|
|
1889
|
-
readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
|
|
2131
|
+
interface Tag {
|
|
2132
|
+
readonly Key: string;
|
|
2133
|
+
readonly Value: string;
|
|
1890
2134
|
}
|
|
1891
2135
|
|
|
1892
|
-
const
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
"
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
2136
|
+
const Tag = Schema.Struct({
|
|
2137
|
+
Key: Schema.String.annotate({ description: "Name of the object key." })
|
|
2138
|
+
.check(
|
|
2139
|
+
Schema.isMinLength(1).annotate({
|
|
2140
|
+
expected: "a value with a length of at least 1",
|
|
2141
|
+
}),
|
|
2142
|
+
)
|
|
2143
|
+
.check(
|
|
2144
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
2145
|
+
expected: "a string with at most 128 code points",
|
|
2146
|
+
}),
|
|
2147
|
+
),
|
|
2148
|
+
Value: Schema.String.annotate({ description: "Value of the tag." }).check(
|
|
2149
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
2150
|
+
expected: "a string with at most 256 code points",
|
|
1903
2151
|
}),
|
|
1904
2152
|
),
|
|
1905
|
-
TargetObjectKeyFormat: Schema.optionalKey(TargetObjectKeyFormat),
|
|
1906
2153
|
}).annotate({
|
|
1907
|
-
description:
|
|
1908
|
-
|
|
1909
|
-
identifier: "LoggingConfiguration_1",
|
|
2154
|
+
description: "A container of a key value name pair.",
|
|
2155
|
+
identifier: "Tag",
|
|
1910
2156
|
});
|
|
1911
2157
|
|
|
1912
|
-
|
|
1913
|
-
readonly Destination?: MetadataDestination;
|
|
1914
|
-
readonly JournalTableConfiguration: JournalTableConfiguration;
|
|
1915
|
-
readonly InventoryTableConfiguration?: InventoryTableConfiguration;
|
|
1916
|
-
readonly AnnotationTableConfiguration?: AnnotationTableConfiguration;
|
|
1917
|
-
}
|
|
2158
|
+
type ResourceInputItems_4 = globalThis.ReadonlyArray<Tag>;
|
|
1918
2159
|
|
|
1919
|
-
const
|
|
1920
|
-
|
|
1921
|
-
JournalTableConfiguration: JournalTableConfiguration,
|
|
1922
|
-
InventoryTableConfiguration: Schema.optionalKey(InventoryTableConfiguration),
|
|
1923
|
-
AnnotationTableConfiguration: Schema.optionalKey(
|
|
1924
|
-
AnnotationTableConfiguration,
|
|
1925
|
-
),
|
|
1926
|
-
}).annotate({
|
|
1927
|
-
description:
|
|
1928
|
-
"Creates a V2 S3 Metadata configuration of a general purpose bucket. For more information, see [Accelerating data discovery with S3 Metadata](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html) in the *Amazon S3 User Guide*.",
|
|
1929
|
-
identifier: "MetadataConfiguration",
|
|
2160
|
+
const ResourceInputItems_4 = Schema.Array(Tag).annotate({
|
|
2161
|
+
description: "An arbitrary set of tags (key-value pairs) for this S3 bucket.",
|
|
1930
2162
|
});
|
|
1931
2163
|
|
|
1932
|
-
|
|
1933
|
-
readonly S3Key: S3KeyFilter;
|
|
1934
|
-
}
|
|
2164
|
+
type ResourceInputAlternatives_8 = "Enabled" | "Disabled";
|
|
1935
2165
|
|
|
1936
|
-
const
|
|
2166
|
+
const ResourceInputAlternatives_8 = Schema.Literals([
|
|
2167
|
+
"Enabled",
|
|
2168
|
+
"Disabled",
|
|
2169
|
+
]).annotate({
|
|
1937
2170
|
description:
|
|
1938
|
-
"
|
|
1939
|
-
identifier: "NotificationFilter",
|
|
2171
|
+
"The ABAC status of the general purpose bucket. When ABAC is enabled for the general purpose bucket, you can use tags to manage access to the general purpose buckets as well as for cost tracking purposes. When ABAC is disabled for the general purpose buckets, you can only use tags for cost tracking purposes. For more information, see [Using tags with S3 general purpose buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html).",
|
|
1940
2172
|
});
|
|
1941
2173
|
|
|
1942
|
-
interface
|
|
1943
|
-
readonly
|
|
1944
|
-
readonly Rule?: ObjectLockRule;
|
|
2174
|
+
interface VersioningConfiguration {
|
|
2175
|
+
readonly Status: "Enabled" | "Suspended";
|
|
1945
2176
|
}
|
|
1946
2177
|
|
|
1947
|
-
const
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
"Indicates whether this bucket has an Object Lock configuration enabled. Enable ``ObjectLockEnabled`` when you apply ``ObjectLockConfiguration`` to a bucket.",
|
|
1952
|
-
}),
|
|
1953
|
-
),
|
|
1954
|
-
Rule: Schema.optionalKey(ObjectLockRule),
|
|
2178
|
+
const VersioningConfiguration = Schema.Struct({
|
|
2179
|
+
Status: Schema.Literals(["Enabled", "Suspended"]).annotate({
|
|
2180
|
+
description: "The versioning state of the bucket.",
|
|
2181
|
+
}),
|
|
1955
2182
|
}).annotate({
|
|
1956
2183
|
description:
|
|
1957
|
-
"
|
|
1958
|
-
identifier: "
|
|
2184
|
+
"Describes the versioning state of an Amazon S3 bucket. For more information, see [PUT Bucket versioning](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html) in the *Amazon S3 API Reference*.\n Keep the following timing in mind when enabling, suspending, or transitioning between versioning states:\n + *Enabling versioning* - Changes may take up to 15 minutes to propagate across all AWS regions for full consistency.\n + *Suspending versioning* - Takes effect immediately with no propagation delay.\n + *Transitioning between states* - Any change from Suspended to Enabled has a 15-minute delay.",
|
|
2185
|
+
identifier: "VersioningConfiguration",
|
|
1959
2186
|
});
|
|
1960
2187
|
|
|
1961
|
-
interface
|
|
1962
|
-
readonly
|
|
1963
|
-
readonly
|
|
1964
|
-
readonly
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
readonly service: "s3";
|
|
1968
|
-
readonly resource: "bucket";
|
|
1969
|
-
}>
|
|
1970
|
-
| string;
|
|
1971
|
-
readonly EncryptionConfiguration?: EncryptionConfiguration;
|
|
1972
|
-
readonly Metrics?: Metrics;
|
|
1973
|
-
readonly ReplicationTime?: ReplicationTime;
|
|
1974
|
-
readonly StorageClass?:
|
|
1975
|
-
| "DEEP_ARCHIVE"
|
|
1976
|
-
| "GLACIER"
|
|
1977
|
-
| "GLACIER_IR"
|
|
1978
|
-
| "INTELLIGENT_TIERING"
|
|
1979
|
-
| "ONEZONE_IA"
|
|
1980
|
-
| "REDUCED_REDUNDANCY"
|
|
1981
|
-
| "STANDARD"
|
|
1982
|
-
| "STANDARD_IA";
|
|
2188
|
+
interface RedirectRule {
|
|
2189
|
+
readonly HostName?: string;
|
|
2190
|
+
readonly HttpRedirectCode?: string;
|
|
2191
|
+
readonly Protocol?: "http" | "https";
|
|
2192
|
+
readonly ReplaceKeyPrefixWith?: string;
|
|
2193
|
+
readonly ReplaceKeyWith?: string;
|
|
1983
2194
|
}
|
|
1984
2195
|
|
|
1985
|
-
const
|
|
1986
|
-
|
|
1987
|
-
|
|
2196
|
+
const RedirectRule = Schema.Struct({
|
|
2197
|
+
HostName: Schema.optionalKey(
|
|
2198
|
+
Schema.String.annotate({
|
|
2199
|
+
description: "The host name to use in the redirect request.",
|
|
2200
|
+
}),
|
|
2201
|
+
),
|
|
2202
|
+
HttpRedirectCode: Schema.optionalKey(
|
|
1988
2203
|
Schema.String.annotate({
|
|
1989
2204
|
description:
|
|
1990
|
-
"
|
|
2205
|
+
"The HTTP redirect code to use on the response. Not required if one of the siblings is present.",
|
|
1991
2206
|
}),
|
|
1992
2207
|
),
|
|
1993
|
-
|
|
1994
|
-
Schema.
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
}),
|
|
2001
|
-
{
|
|
2002
|
-
value: null,
|
|
2003
|
-
outputs: [
|
|
2004
|
-
{
|
|
2005
|
-
source: ["Arn"],
|
|
2006
|
-
target: [],
|
|
2007
|
-
},
|
|
2008
|
-
],
|
|
2009
|
-
},
|
|
2010
|
-
).annotate({ expected: "ResourceEntity" }),
|
|
2011
|
-
]),
|
|
2208
|
+
Protocol: Schema.optionalKey(
|
|
2209
|
+
Schema.Literals(["http", "https"]).annotate({
|
|
2210
|
+
description:
|
|
2211
|
+
"Protocol to use when redirecting requests. The default is the protocol that is used in the original request.",
|
|
2212
|
+
}),
|
|
2213
|
+
),
|
|
2214
|
+
ReplaceKeyPrefixWith: Schema.optionalKey(
|
|
2012
2215
|
Schema.String.annotate({
|
|
2013
2216
|
description:
|
|
2014
|
-
"The
|
|
2217
|
+
"The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix ``docs/`` (objects in the ``docs/`` folder) to ``documents/``, you can set a condition block with ``KeyPrefixEquals`` set to ``docs/`` and in the Redirect set ``ReplaceKeyPrefixWith`` to ``/documents``. Not required if one of the siblings is present. Can be present only if ``ReplaceKeyWith`` is not provided.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
|
|
2015
2218
|
}),
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
ReplicationTime: Schema.optionalKey(ReplicationTime),
|
|
2020
|
-
StorageClass: Schema.optionalKey(
|
|
2021
|
-
Schema.Literals([
|
|
2022
|
-
"DEEP_ARCHIVE",
|
|
2023
|
-
"GLACIER",
|
|
2024
|
-
"GLACIER_IR",
|
|
2025
|
-
"INTELLIGENT_TIERING",
|
|
2026
|
-
"ONEZONE_IA",
|
|
2027
|
-
"REDUCED_REDUNDANCY",
|
|
2028
|
-
"STANDARD",
|
|
2029
|
-
"STANDARD_IA",
|
|
2030
|
-
]).annotate({
|
|
2219
|
+
),
|
|
2220
|
+
ReplaceKeyWith: Schema.optionalKey(
|
|
2221
|
+
Schema.String.annotate({
|
|
2031
2222
|
description:
|
|
2032
|
-
"The
|
|
2223
|
+
"The specific object key to use in the redirect request. For example, redirect request to ``error.html``. Not required if one of the siblings is present. Can be present only if ``ReplaceKeyPrefixWith`` is not provided.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
|
|
2033
2224
|
}),
|
|
2034
2225
|
),
|
|
2035
2226
|
}).annotate({
|
|
2036
2227
|
description:
|
|
2037
|
-
"
|
|
2038
|
-
identifier: "
|
|
2228
|
+
"Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.",
|
|
2229
|
+
identifier: "RedirectRule",
|
|
2039
2230
|
});
|
|
2040
2231
|
|
|
2041
|
-
interface
|
|
2042
|
-
readonly
|
|
2043
|
-
readonly
|
|
2044
|
-
readonly Bucket: string;
|
|
2045
|
-
readonly EncryptionConfiguration?: EncryptionConfiguration_1;
|
|
2046
|
-
readonly Metrics?: Metrics;
|
|
2047
|
-
readonly ReplicationTime?: ReplicationTime;
|
|
2048
|
-
readonly StorageClass?:
|
|
2049
|
-
| "DEEP_ARCHIVE"
|
|
2050
|
-
| "GLACIER"
|
|
2051
|
-
| "GLACIER_IR"
|
|
2052
|
-
| "INTELLIGENT_TIERING"
|
|
2053
|
-
| "ONEZONE_IA"
|
|
2054
|
-
| "REDUCED_REDUNDANCY"
|
|
2055
|
-
| "STANDARD"
|
|
2056
|
-
| "STANDARD_IA";
|
|
2232
|
+
interface RoutingRuleCondition {
|
|
2233
|
+
readonly KeyPrefixEquals?: string;
|
|
2234
|
+
readonly HttpErrorCodeReturnedEquals?: string;
|
|
2057
2235
|
}
|
|
2058
2236
|
|
|
2059
|
-
const
|
|
2060
|
-
|
|
2061
|
-
Account: Schema.optionalKey(
|
|
2237
|
+
const RoutingRuleCondition = Schema.Struct({
|
|
2238
|
+
KeyPrefixEquals: Schema.optionalKey(
|
|
2062
2239
|
Schema.String.annotate({
|
|
2063
2240
|
description:
|
|
2064
|
-
"
|
|
2241
|
+
"The object key name prefix when the redirect is applied. For example, to redirect requests for ``ExamplePage.html``, the key prefix will be ``ExamplePage.html``. To redirect request for all pages with the prefix ``docs/``, the key prefix will be ``docs/``, which identifies all objects in the docs/ folder.\n Required when the parent element ``Condition`` is specified and sibling ``HttpErrorCodeReturnedEquals`` is not specified. If both conditions are specified, both must be true for the redirect to be applied.",
|
|
2065
2242
|
}),
|
|
2066
2243
|
),
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2244
|
+
HttpErrorCodeReturnedEquals: Schema.optionalKey(
|
|
2245
|
+
Schema.String.annotate({
|
|
2246
|
+
description:
|
|
2247
|
+
"The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.\n Required when parent element ``Condition`` is specified and sibling ``KeyPrefixEquals`` is not specified. If both are specified, then both must be true for the redirect to be applied.",
|
|
2248
|
+
}),
|
|
2249
|
+
),
|
|
2250
|
+
}).annotate({
|
|
2251
|
+
description:
|
|
2252
|
+
"A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.",
|
|
2253
|
+
identifier: "RoutingRuleCondition",
|
|
2254
|
+
});
|
|
2255
|
+
|
|
2256
|
+
interface RoutingRule {
|
|
2257
|
+
readonly RedirectRule: RedirectRule;
|
|
2258
|
+
readonly RoutingRuleCondition?: RoutingRuleCondition;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
const RoutingRule = Schema.Struct({
|
|
2262
|
+
RedirectRule: RedirectRule,
|
|
2263
|
+
RoutingRuleCondition: Schema.optionalKey(RoutingRuleCondition),
|
|
2264
|
+
}).annotate({
|
|
2265
|
+
description:
|
|
2266
|
+
"Specifies the redirect behavior and when a redirect is applied. For more information about routing rules, see [Configuring advanced conditional redirects](https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html#advanced-conditional-redirects) in the *Amazon S3 User Guide*.",
|
|
2267
|
+
identifier: "RoutingRule",
|
|
2268
|
+
});
|
|
2269
|
+
|
|
2270
|
+
interface RedirectAllRequestsTo {
|
|
2271
|
+
readonly HostName: string;
|
|
2272
|
+
readonly Protocol?: "http" | "https";
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
const RedirectAllRequestsTo = Schema.Struct({
|
|
2276
|
+
HostName: Schema.String.annotate({
|
|
2277
|
+
description: "Name of the host where requests are redirected.",
|
|
2278
|
+
}),
|
|
2279
|
+
Protocol: Schema.optionalKey(
|
|
2280
|
+
Schema.Literals(["http", "https"]).annotate({
|
|
2085
2281
|
description:
|
|
2086
|
-
"
|
|
2282
|
+
"Protocol to use when redirecting requests. The default is the protocol that is used in the original request.",
|
|
2087
2283
|
}),
|
|
2088
2284
|
),
|
|
2089
2285
|
}).annotate({
|
|
2090
2286
|
description:
|
|
2091
|
-
"
|
|
2092
|
-
identifier: "
|
|
2287
|
+
"Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.",
|
|
2288
|
+
identifier: "RedirectAllRequestsTo",
|
|
2093
2289
|
});
|
|
2094
2290
|
|
|
2095
2291
|
interface WebsiteConfiguration {
|
|
2096
2292
|
readonly ErrorDocument?: string;
|
|
2097
2293
|
readonly IndexDocument?: string;
|
|
2098
|
-
readonly RoutingRules?: ReadonlyArray<RoutingRule>;
|
|
2294
|
+
readonly RoutingRules?: globalThis.ReadonlyArray<RoutingRule>;
|
|
2099
2295
|
readonly RedirectAllRequestsTo?: RedirectAllRequestsTo;
|
|
2100
2296
|
}
|
|
2101
2297
|
|
|
@@ -2123,517 +2319,289 @@ const WebsiteConfiguration = Schema.Struct({
|
|
|
2123
2319
|
identifier: "WebsiteConfiguration",
|
|
2124
2320
|
});
|
|
2125
2321
|
|
|
2126
|
-
|
|
2127
|
-
readonly DataExport?: DataExport_1;
|
|
2128
|
-
}
|
|
2322
|
+
type Arn = string;
|
|
2129
2323
|
|
|
2130
|
-
const
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
description:
|
|
2134
|
-
"Specifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket.",
|
|
2135
|
-
identifier: "StorageClassAnalysis_1",
|
|
2324
|
+
const Arn = Schema.String.annotate({
|
|
2325
|
+
description: "the Amazon Resource Name (ARN) of the specified bucket.",
|
|
2326
|
+
identifier: "Arn",
|
|
2136
2327
|
});
|
|
2137
2328
|
|
|
2138
|
-
interface
|
|
2139
|
-
readonly
|
|
2140
|
-
readonly
|
|
2141
|
-
readonly
|
|
2329
|
+
interface Destination_2 {
|
|
2330
|
+
readonly BucketArn: string;
|
|
2331
|
+
readonly BucketAccountId?: string;
|
|
2332
|
+
readonly Format: ResourceInputAlternatives_1;
|
|
2142
2333
|
readonly Prefix?: string;
|
|
2143
2334
|
}
|
|
2144
2335
|
|
|
2145
|
-
const
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
.
|
|
2149
|
-
description:
|
|
2150
|
-
"The tags to use when evaluating an analytics filter.\n The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.",
|
|
2151
|
-
})
|
|
2152
|
-
.check(
|
|
2153
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
2154
|
-
),
|
|
2155
|
-
),
|
|
2156
|
-
StorageClassAnalysis: StorageClassAnalysis,
|
|
2157
|
-
Id: Schema.String.annotate({
|
|
2158
|
-
description: "The ID that identifies the analytics configuration.",
|
|
2336
|
+
const Destination_2 = Schema.Struct({
|
|
2337
|
+
BucketArn: Schema.String.annotate({
|
|
2338
|
+
description:
|
|
2339
|
+
"The Amazon Resource Name (ARN) of the bucket to which data is exported.",
|
|
2159
2340
|
}),
|
|
2160
|
-
|
|
2341
|
+
BucketAccountId: Schema.optionalKey(
|
|
2161
2342
|
Schema.String.annotate({
|
|
2162
2343
|
description:
|
|
2163
|
-
"The
|
|
2344
|
+
"The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
|
|
2164
2345
|
}),
|
|
2165
2346
|
),
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
identifier: "AnalyticsConfiguration",
|
|
2170
|
-
});
|
|
2171
|
-
|
|
2172
|
-
interface BucketEncryption {
|
|
2173
|
-
readonly ServerSideEncryptionConfiguration: ReadonlyArray<ServerSideEncryptionRule>;
|
|
2174
|
-
}
|
|
2175
|
-
|
|
2176
|
-
const BucketEncryption = Schema.Struct({
|
|
2177
|
-
ServerSideEncryptionConfiguration: Schema.Array(ServerSideEncryptionRule)
|
|
2178
|
-
.annotate({
|
|
2179
|
-
description:
|
|
2180
|
-
"Specifies the default server-side-encryption configuration.",
|
|
2181
|
-
})
|
|
2182
|
-
.check(
|
|
2183
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
2184
|
-
),
|
|
2185
|
-
}).annotate({
|
|
2186
|
-
description:
|
|
2187
|
-
"Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.",
|
|
2188
|
-
identifier: "BucketEncryption",
|
|
2189
|
-
});
|
|
2190
|
-
|
|
2191
|
-
interface BucketEncryption_1 {
|
|
2192
|
-
readonly ServerSideEncryptionConfiguration: ReadonlyArray<ServerSideEncryptionRule_1>;
|
|
2193
|
-
}
|
|
2194
|
-
|
|
2195
|
-
const BucketEncryption_1 = Schema.Struct({
|
|
2196
|
-
ServerSideEncryptionConfiguration: Schema.Array(ServerSideEncryptionRule_1)
|
|
2197
|
-
.annotate({
|
|
2198
|
-
description:
|
|
2199
|
-
"Specifies the default server-side-encryption configuration.",
|
|
2200
|
-
})
|
|
2201
|
-
.check(
|
|
2202
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
2203
|
-
),
|
|
2204
|
-
}).annotate({
|
|
2205
|
-
description:
|
|
2206
|
-
"Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.",
|
|
2207
|
-
identifier: "BucketEncryption_1",
|
|
2208
|
-
});
|
|
2209
|
-
|
|
2210
|
-
interface LifecycleConfiguration {
|
|
2211
|
-
readonly Rules: ReadonlyArray<Rule>;
|
|
2212
|
-
readonly TransitionDefaultMinimumObjectSize?:
|
|
2213
|
-
| "varies_by_storage_class"
|
|
2214
|
-
| "all_storage_classes_128K";
|
|
2215
|
-
}
|
|
2216
|
-
|
|
2217
|
-
const LifecycleConfiguration = Schema.Struct({
|
|
2218
|
-
Rules: Schema.Array(Rule)
|
|
2219
|
-
.annotate({
|
|
2220
|
-
description:
|
|
2221
|
-
"A lifecycle rule for individual objects in an Amazon S3 bucket.",
|
|
2222
|
-
})
|
|
2223
|
-
.check(
|
|
2224
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
2225
|
-
),
|
|
2226
|
-
TransitionDefaultMinimumObjectSize: Schema.optionalKey(
|
|
2227
|
-
Schema.Literals([
|
|
2228
|
-
"varies_by_storage_class",
|
|
2229
|
-
"all_storage_classes_128K",
|
|
2230
|
-
]).annotate({
|
|
2347
|
+
Format: ResourceInputAlternatives_1,
|
|
2348
|
+
Prefix: Schema.optionalKey(
|
|
2349
|
+
Schema.String.annotate({
|
|
2231
2350
|
description:
|
|
2232
|
-
"
|
|
2351
|
+
"The prefix to use when exporting data. The prefix is prepended to all results.",
|
|
2233
2352
|
}),
|
|
2234
2353
|
),
|
|
2235
2354
|
}).annotate({
|
|
2236
2355
|
description:
|
|
2237
|
-
"Specifies
|
|
2238
|
-
identifier: "
|
|
2356
|
+
"Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket.",
|
|
2357
|
+
identifier: "Destination_2",
|
|
2239
2358
|
});
|
|
2240
2359
|
|
|
2241
|
-
interface
|
|
2242
|
-
readonly
|
|
2243
|
-
readonly
|
|
2244
|
-
readonly Function:
|
|
2245
|
-
| ResourceEntity<{
|
|
2246
|
-
readonly provider: "aws";
|
|
2247
|
-
readonly service: "lambda";
|
|
2248
|
-
readonly resource: "function";
|
|
2249
|
-
}>
|
|
2250
|
-
| string;
|
|
2360
|
+
interface DataExport_1 {
|
|
2361
|
+
readonly Destination: Destination_2;
|
|
2362
|
+
readonly OutputSchemaVersion: "V_1";
|
|
2251
2363
|
}
|
|
2252
2364
|
|
|
2253
|
-
const
|
|
2254
|
-
|
|
2365
|
+
const DataExport_1 = Schema.Struct({
|
|
2366
|
+
Destination: Destination_2,
|
|
2367
|
+
OutputSchemaVersion: Schema.Literal("V_1").annotate({
|
|
2255
2368
|
description:
|
|
2256
|
-
"The
|
|
2369
|
+
"The version of the output schema to use when exporting data. Must be ``V_1``.",
|
|
2257
2370
|
}),
|
|
2258
|
-
Filter: Schema.optionalKey(NotificationFilter),
|
|
2259
|
-
Function: Schema.Union([
|
|
2260
|
-
Schema.Union([
|
|
2261
|
-
ResourceReferenceSchema(
|
|
2262
|
-
Schema.Struct({
|
|
2263
|
-
provider: Schema.Literal("aws"),
|
|
2264
|
-
service: Schema.Literal("lambda"),
|
|
2265
|
-
resource: Schema.Literal("function"),
|
|
2266
|
-
}),
|
|
2267
|
-
{
|
|
2268
|
-
value: null,
|
|
2269
|
-
outputs: [
|
|
2270
|
-
{
|
|
2271
|
-
source: ["Arn"],
|
|
2272
|
-
target: [],
|
|
2273
|
-
},
|
|
2274
|
-
],
|
|
2275
|
-
},
|
|
2276
|
-
).annotate({ expected: "ResourceEntity" }),
|
|
2277
|
-
]),
|
|
2278
|
-
Schema.String.annotate({
|
|
2279
|
-
description:
|
|
2280
|
-
"The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.",
|
|
2281
|
-
}),
|
|
2282
|
-
]),
|
|
2283
2371
|
}).annotate({
|
|
2284
2372
|
description:
|
|
2285
|
-
"
|
|
2286
|
-
identifier: "
|
|
2373
|
+
"Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
|
|
2374
|
+
identifier: "DataExport_1",
|
|
2287
2375
|
});
|
|
2288
2376
|
|
|
2289
|
-
interface
|
|
2290
|
-
readonly
|
|
2291
|
-
readonly Filter?: NotificationFilter;
|
|
2292
|
-
readonly Queue:
|
|
2293
|
-
| ResourceEntity<{
|
|
2294
|
-
readonly provider: "aws";
|
|
2295
|
-
readonly service: "sqs";
|
|
2296
|
-
readonly resource: "queue";
|
|
2297
|
-
}>
|
|
2298
|
-
| string;
|
|
2377
|
+
interface StorageClassAnalysis_1 {
|
|
2378
|
+
readonly DataExport?: DataExport_1;
|
|
2299
2379
|
}
|
|
2300
2380
|
|
|
2301
|
-
const
|
|
2302
|
-
|
|
2303
|
-
description:
|
|
2304
|
-
"The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
|
|
2305
|
-
}),
|
|
2306
|
-
Filter: Schema.optionalKey(NotificationFilter),
|
|
2307
|
-
Queue: Schema.Union([
|
|
2308
|
-
Schema.Union([
|
|
2309
|
-
ResourceReferenceSchema(
|
|
2310
|
-
Schema.Struct({
|
|
2311
|
-
provider: Schema.Literal("aws"),
|
|
2312
|
-
service: Schema.Literal("sqs"),
|
|
2313
|
-
resource: Schema.Literal("queue"),
|
|
2314
|
-
}),
|
|
2315
|
-
{
|
|
2316
|
-
value: null,
|
|
2317
|
-
outputs: [
|
|
2318
|
-
{
|
|
2319
|
-
source: ["Arn"],
|
|
2320
|
-
target: [],
|
|
2321
|
-
},
|
|
2322
|
-
],
|
|
2323
|
-
},
|
|
2324
|
-
).annotate({ expected: "ResourceEntity" }),
|
|
2325
|
-
]),
|
|
2326
|
-
Schema.String.annotate({
|
|
2327
|
-
description:
|
|
2328
|
-
"The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination.",
|
|
2329
|
-
}),
|
|
2330
|
-
]),
|
|
2381
|
+
const StorageClassAnalysis_1 = Schema.Struct({
|
|
2382
|
+
DataExport: Schema.optionalKey(DataExport_1),
|
|
2331
2383
|
}).annotate({
|
|
2332
|
-
description:
|
|
2333
|
-
"Specifies
|
|
2334
|
-
identifier: "
|
|
2335
|
-
});
|
|
2336
|
-
|
|
2337
|
-
interface
|
|
2338
|
-
readonly
|
|
2339
|
-
readonly
|
|
2340
|
-
readonly
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
description:
|
|
2352
|
-
"The Amazon S3 bucket event about which to send notifications. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
|
|
2353
|
-
}),
|
|
2354
|
-
Filter: Schema.optionalKey(NotificationFilter),
|
|
2355
|
-
Topic: Schema.Union([
|
|
2356
|
-
Schema.Union([
|
|
2357
|
-
ResourceReferenceSchema(
|
|
2358
|
-
Schema.Struct({
|
|
2359
|
-
provider: Schema.Literal("aws"),
|
|
2360
|
-
service: Schema.Literal("sns"),
|
|
2361
|
-
resource: Schema.Literal("topic"),
|
|
2362
|
-
}),
|
|
2363
|
-
{
|
|
2364
|
-
value: null,
|
|
2365
|
-
outputs: [
|
|
2366
|
-
{
|
|
2367
|
-
source: ["TopicArn"],
|
|
2368
|
-
target: [],
|
|
2369
|
-
},
|
|
2370
|
-
],
|
|
2371
|
-
},
|
|
2372
|
-
).annotate({ expected: "ResourceEntity" }),
|
|
2373
|
-
]),
|
|
2384
|
+
description:
|
|
2385
|
+
"Specifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket.",
|
|
2386
|
+
identifier: "StorageClassAnalysis_1",
|
|
2387
|
+
});
|
|
2388
|
+
|
|
2389
|
+
interface AnalyticsConfiguration_1 {
|
|
2390
|
+
readonly TagFilters?: ResourceInputItems;
|
|
2391
|
+
readonly StorageClassAnalysis: StorageClassAnalysis_1;
|
|
2392
|
+
readonly Id: string;
|
|
2393
|
+
readonly Prefix?: string;
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
const AnalyticsConfiguration_1 = Schema.Struct({
|
|
2397
|
+
TagFilters: Schema.optionalKey(ResourceInputItems),
|
|
2398
|
+
StorageClassAnalysis: StorageClassAnalysis_1,
|
|
2399
|
+
Id: Schema.String.annotate({
|
|
2400
|
+
description: "The ID that identifies the analytics configuration.",
|
|
2401
|
+
}),
|
|
2402
|
+
Prefix: Schema.optionalKey(
|
|
2374
2403
|
Schema.String.annotate({
|
|
2375
2404
|
description:
|
|
2376
|
-
"The
|
|
2405
|
+
"The prefix that an object must have to be included in the analytics results.",
|
|
2377
2406
|
}),
|
|
2378
|
-
|
|
2407
|
+
),
|
|
2379
2408
|
}).annotate({
|
|
2380
2409
|
description:
|
|
2381
|
-
"
|
|
2382
|
-
identifier: "
|
|
2410
|
+
"Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
|
|
2411
|
+
identifier: "AnalyticsConfiguration_1",
|
|
2383
2412
|
});
|
|
2384
2413
|
|
|
2385
|
-
interface
|
|
2386
|
-
readonly
|
|
2387
|
-
readonly
|
|
2388
|
-
readonly Function: string;
|
|
2414
|
+
interface ServerSideEncryptionByDefault_1 {
|
|
2415
|
+
readonly KMSMasterKeyID?: string;
|
|
2416
|
+
readonly SSEAlgorithm: ResourceInputAlternatives_2;
|
|
2389
2417
|
}
|
|
2390
2418
|
|
|
2391
|
-
const
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
"The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.",
|
|
2400
|
-
}),
|
|
2419
|
+
const ServerSideEncryptionByDefault_1 = Schema.Struct({
|
|
2420
|
+
KMSMasterKeyID: Schema.optionalKey(
|
|
2421
|
+
Schema.String.annotate({
|
|
2422
|
+
description:
|
|
2423
|
+
"AWS Key Management Service (KMS) customer managed key ID to use for the default encryption. \n + *General purpose buckets* - This parameter is allowed if and only if ``SSEAlgorithm`` is set to ``aws:kms`` or ``aws:kms:dsse``.\n + *Directory buckets* - This parameter is allowed if and only if ``SSEAlgorithm`` is set to ``aws:kms``.\n \n You can specify the key ID, key alias, or the Amazon Resource Name (ARN) of the KMS key.\n + Key ID: ``1234abcd-12ab-34cd-56ef-1234567890ab``\n + Key ARN: ``arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab``\n + Key Alias: ``alias/alias-name``\n \n If you are using encryption with cross-account or AWS service operations, you must use a fully qualified KMS key ARN. For more information, see [Using encryption for cross-account operations](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy).\n + *General purpose buckets* - If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner. Also, if you use a key ID, you can run into a LogDestination undeliverable error when creating a VPC flow log. \n + *Directory buckets* - When you specify an [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) for encryption in your directory bucket, only use the key ID or key ARN. The key alias format of the KMS key isn't supported.\n \n Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
|
|
2424
|
+
}),
|
|
2425
|
+
),
|
|
2426
|
+
SSEAlgorithm: ResourceInputAlternatives_2,
|
|
2401
2427
|
}).annotate({
|
|
2402
2428
|
description:
|
|
2403
|
-
"Describes the
|
|
2404
|
-
identifier: "
|
|
2429
|
+
"Describes the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied. For more information, see [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html).\n + *General purpose buckets* - If you don't specify a customer managed key at configuration, Amazon S3 automatically creates an AWS KMS key (``aws/s3``) in your AWS account the first time that you add an object encrypted with SSE-KMS to a bucket. By default, Amazon S3 uses this KMS key for SSE-KMS. \n + *Directory buckets* - Your SSE-KMS configuration can only support 1 [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) per directory bucket's lifetime. The [managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) (``aws/s3``) isn't supported. \n + *Directory buckets* - For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS.",
|
|
2430
|
+
identifier: "ServerSideEncryptionByDefault_1",
|
|
2405
2431
|
});
|
|
2406
2432
|
|
|
2407
|
-
interface
|
|
2408
|
-
readonly
|
|
2409
|
-
readonly
|
|
2410
|
-
readonly
|
|
2433
|
+
interface ServerSideEncryptionRule_1 {
|
|
2434
|
+
readonly BucketKeyEnabled?: boolean;
|
|
2435
|
+
readonly ServerSideEncryptionByDefault?: ServerSideEncryptionByDefault_1;
|
|
2436
|
+
readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
|
|
2411
2437
|
}
|
|
2412
2438
|
|
|
2413
|
-
const
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2439
|
+
const ServerSideEncryptionRule_1 = Schema.Struct({
|
|
2440
|
+
BucketKeyEnabled: Schema.optionalKey(
|
|
2441
|
+
Schema.Boolean.annotate({
|
|
2442
|
+
description:
|
|
2443
|
+
"Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the ``BucketKeyEnabled`` element to ``true`` causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.\n For more information, see [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the *Amazon S3 User Guide*.",
|
|
2444
|
+
}),
|
|
2445
|
+
),
|
|
2446
|
+
ServerSideEncryptionByDefault: Schema.optionalKey(
|
|
2447
|
+
ServerSideEncryptionByDefault_1,
|
|
2448
|
+
),
|
|
2449
|
+
BlockedEncryptionTypes: Schema.optionalKey(BlockedEncryptionTypes),
|
|
2423
2450
|
}).annotate({
|
|
2424
2451
|
description:
|
|
2425
|
-
"Specifies the configuration
|
|
2426
|
-
identifier: "
|
|
2452
|
+
"Specifies the default server-side encryption configuration.\n + *General purpose buckets* - If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner.\n + *Directory buckets* - When you specify an [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) for encryption in your directory bucket, only use the key ID or key ARN. The key alias format of the KMS key isn't supported.",
|
|
2453
|
+
identifier: "ServerSideEncryptionRule_1",
|
|
2427
2454
|
});
|
|
2428
2455
|
|
|
2429
|
-
interface
|
|
2430
|
-
readonly
|
|
2431
|
-
readonly Filter?: NotificationFilter;
|
|
2432
|
-
readonly Topic: string;
|
|
2456
|
+
interface BucketEncryption_1 {
|
|
2457
|
+
readonly ServerSideEncryptionConfiguration: globalThis.ReadonlyArray<ServerSideEncryptionRule_1>;
|
|
2433
2458
|
}
|
|
2434
2459
|
|
|
2435
|
-
const
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
}),
|
|
2460
|
+
const BucketEncryption_1 = Schema.Struct({
|
|
2461
|
+
ServerSideEncryptionConfiguration: Schema.Array(ServerSideEncryptionRule_1)
|
|
2462
|
+
.annotate({
|
|
2463
|
+
description:
|
|
2464
|
+
"Specifies the default server-side-encryption configuration.",
|
|
2465
|
+
})
|
|
2466
|
+
.check(
|
|
2467
|
+
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
2468
|
+
),
|
|
2445
2469
|
}).annotate({
|
|
2446
2470
|
description:
|
|
2447
|
-
"
|
|
2448
|
-
identifier: "
|
|
2471
|
+
"Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.",
|
|
2472
|
+
identifier: "BucketEncryption_1",
|
|
2449
2473
|
});
|
|
2450
2474
|
|
|
2451
|
-
interface
|
|
2452
|
-
readonly
|
|
2453
|
-
readonly
|
|
2454
|
-
readonly
|
|
2455
|
-
readonly
|
|
2475
|
+
interface InventoryConfiguration_1 {
|
|
2476
|
+
readonly Destination: Destination_2;
|
|
2477
|
+
readonly Enabled: boolean;
|
|
2478
|
+
readonly Id: string;
|
|
2479
|
+
readonly IncludedObjectVersions: ResourceInputAlternatives_4;
|
|
2480
|
+
readonly OptionalFields?: ResourceInputItems_2;
|
|
2456
2481
|
readonly Prefix?: string;
|
|
2457
|
-
readonly
|
|
2458
|
-
readonly SourceSelectionCriteria?: SourceSelectionCriteria;
|
|
2459
|
-
readonly Status: "Disabled" | "Enabled";
|
|
2482
|
+
readonly ScheduleFrequency: ResourceInputAlternatives_5;
|
|
2460
2483
|
}
|
|
2461
2484
|
|
|
2462
|
-
const
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
}),
|
|
2474
|
-
),
|
|
2475
|
-
),
|
|
2485
|
+
const InventoryConfiguration_1 = Schema.Struct({
|
|
2486
|
+
Destination: Destination_2,
|
|
2487
|
+
Enabled: Schema.Boolean.annotate({
|
|
2488
|
+
description:
|
|
2489
|
+
"Specifies whether the inventory is enabled or disabled. If set to ``True``, an inventory list is generated. If set to ``False``, no inventory list is generated.",
|
|
2490
|
+
}),
|
|
2491
|
+
Id: Schema.String.annotate({
|
|
2492
|
+
description: "The ID used to identify the inventory configuration.",
|
|
2493
|
+
}),
|
|
2494
|
+
IncludedObjectVersions: ResourceInputAlternatives_4,
|
|
2495
|
+
OptionalFields: Schema.optionalKey(ResourceInputItems_2),
|
|
2476
2496
|
Prefix: Schema.optionalKey(
|
|
2477
2497
|
Schema.String.annotate({
|
|
2478
|
-
description:
|
|
2479
|
-
|
|
2480
|
-
}).check(
|
|
2481
|
-
Schema.isMaxCodePoints(1024).annotate({
|
|
2482
|
-
expected: "a string with at most 1024 code points",
|
|
2483
|
-
}),
|
|
2484
|
-
),
|
|
2485
|
-
),
|
|
2486
|
-
Priority: Schema.optionalKey(
|
|
2487
|
-
Schema.Number.annotate({
|
|
2488
|
-
description:
|
|
2489
|
-
"The priority indicates which rule has precedence whenever two or more replication rules conflict. Amazon S3 will attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority. \n For more information, see [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the *Amazon S3 User Guide*.",
|
|
2490
|
-
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2498
|
+
description: "Specifies the inventory filter prefix.",
|
|
2499
|
+
}),
|
|
2491
2500
|
),
|
|
2492
|
-
|
|
2493
|
-
Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
|
|
2494
|
-
description: "Specifies whether the rule is enabled.",
|
|
2495
|
-
}),
|
|
2501
|
+
ScheduleFrequency: ResourceInputAlternatives_5,
|
|
2496
2502
|
}).annotate({
|
|
2497
2503
|
description:
|
|
2498
|
-
"Specifies
|
|
2499
|
-
identifier: "
|
|
2504
|
+
"Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
|
|
2505
|
+
identifier: "InventoryConfiguration_1",
|
|
2500
2506
|
});
|
|
2501
2507
|
|
|
2502
|
-
interface
|
|
2503
|
-
readonly
|
|
2504
|
-
readonly
|
|
2505
|
-
readonly
|
|
2506
|
-
readonly Id?: string;
|
|
2507
|
-
readonly Prefix?: string;
|
|
2508
|
-
readonly Priority?: number;
|
|
2509
|
-
readonly SourceSelectionCriteria?: SourceSelectionCriteria;
|
|
2510
|
-
readonly Status: "Disabled" | "Enabled";
|
|
2508
|
+
interface LoggingConfiguration_1 {
|
|
2509
|
+
readonly DestinationBucketName?: string;
|
|
2510
|
+
readonly LogFilePrefix?: string;
|
|
2511
|
+
readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
|
|
2511
2512
|
}
|
|
2512
2513
|
|
|
2513
|
-
const
|
|
2514
|
-
|
|
2515
|
-
Destination: ReplicationDestination_1,
|
|
2516
|
-
Filter: Schema.optionalKey(ReplicationRuleFilter),
|
|
2517
|
-
Id: Schema.optionalKey(
|
|
2514
|
+
const LoggingConfiguration_1 = Schema.Struct({
|
|
2515
|
+
DestinationBucketName: Schema.optionalKey(
|
|
2518
2516
|
Schema.String.annotate({
|
|
2519
2517
|
description:
|
|
2520
|
-
|
|
2521
|
-
})
|
|
2522
|
-
Schema.isMaxCodePoints(255).annotate({
|
|
2523
|
-
expected: "a string with at most 255 code points",
|
|
2524
|
-
}),
|
|
2525
|
-
),
|
|
2518
|
+
"The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the ``LoggingConfiguration`` property is defined.",
|
|
2519
|
+
}),
|
|
2526
2520
|
),
|
|
2527
|
-
|
|
2521
|
+
LogFilePrefix: Schema.optionalKey(
|
|
2528
2522
|
Schema.String.annotate({
|
|
2529
2523
|
description:
|
|
2530
|
-
"
|
|
2531
|
-
})
|
|
2532
|
-
Schema.isMaxCodePoints(1024).annotate({
|
|
2533
|
-
expected: "a string with at most 1024 code points",
|
|
2534
|
-
}),
|
|
2535
|
-
),
|
|
2536
|
-
),
|
|
2537
|
-
Priority: Schema.optionalKey(
|
|
2538
|
-
Schema.Number.annotate({
|
|
2539
|
-
description:
|
|
2540
|
-
"The priority indicates which rule has precedence whenever two or more replication rules conflict. Amazon S3 will attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority. \n For more information, see [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the *Amazon S3 User Guide*.",
|
|
2541
|
-
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2524
|
+
"A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.",
|
|
2525
|
+
}),
|
|
2542
2526
|
),
|
|
2543
|
-
|
|
2544
|
-
Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
|
|
2545
|
-
description: "Specifies whether the rule is enabled.",
|
|
2546
|
-
}),
|
|
2527
|
+
TargetObjectKeyFormat: Schema.optionalKey(TargetObjectKeyFormat),
|
|
2547
2528
|
}).annotate({
|
|
2548
2529
|
description:
|
|
2549
|
-
"
|
|
2550
|
-
identifier: "
|
|
2530
|
+
"Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For examples and more information, see [PUT Bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html) in the *Amazon S3 API Reference*.\n To successfully complete the ``AWS::S3::Bucket LoggingConfiguration`` request, you must have ``s3:PutObject`` and ``s3:PutObjectAcl`` in your IAM permissions.",
|
|
2531
|
+
identifier: "LoggingConfiguration_1",
|
|
2551
2532
|
});
|
|
2552
2533
|
|
|
2553
|
-
interface
|
|
2554
|
-
readonly
|
|
2555
|
-
readonly
|
|
2556
|
-
readonly
|
|
2557
|
-
readonly Prefix?: string;
|
|
2534
|
+
interface LambdaConfiguration_1 {
|
|
2535
|
+
readonly Event: string;
|
|
2536
|
+
readonly Filter?: NotificationFilter;
|
|
2537
|
+
readonly Function: string;
|
|
2558
2538
|
}
|
|
2559
2539
|
|
|
2560
|
-
const
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
.
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2540
|
+
const LambdaConfiguration_1 = Schema.Struct({
|
|
2541
|
+
Event: Schema.String.annotate({
|
|
2542
|
+
description:
|
|
2543
|
+
"The Amazon S3 bucket event for which to invoke the LAMlong function. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
|
|
2544
|
+
}),
|
|
2545
|
+
Filter: Schema.optionalKey(NotificationFilter),
|
|
2546
|
+
Function: Schema.String.annotate({
|
|
2547
|
+
description:
|
|
2548
|
+
"The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.",
|
|
2549
|
+
}),
|
|
2550
|
+
}).annotate({
|
|
2551
|
+
description:
|
|
2552
|
+
"Describes the LAMlong functions to invoke and the events for which to invoke them.",
|
|
2553
|
+
identifier: "LambdaConfiguration_1",
|
|
2554
|
+
});
|
|
2555
|
+
|
|
2556
|
+
interface QueueConfiguration_1 {
|
|
2557
|
+
readonly Event: string;
|
|
2558
|
+
readonly Filter?: NotificationFilter;
|
|
2559
|
+
readonly Queue: string;
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
const QueueConfiguration_1 = Schema.Struct({
|
|
2563
|
+
Event: Schema.String.annotate({
|
|
2564
|
+
description:
|
|
2565
|
+
"The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
|
|
2566
|
+
}),
|
|
2567
|
+
Filter: Schema.optionalKey(NotificationFilter),
|
|
2568
|
+
Queue: Schema.String.annotate({
|
|
2569
|
+
description:
|
|
2570
|
+
"The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination.",
|
|
2574
2571
|
}),
|
|
2575
|
-
Prefix: Schema.optionalKey(
|
|
2576
|
-
Schema.String.annotate({
|
|
2577
|
-
description:
|
|
2578
|
-
"The prefix that an object must have to be included in the analytics results.",
|
|
2579
|
-
}),
|
|
2580
|
-
),
|
|
2581
2572
|
}).annotate({
|
|
2582
2573
|
description:
|
|
2583
|
-
"Specifies the configuration
|
|
2584
|
-
identifier: "
|
|
2574
|
+
"Specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.",
|
|
2575
|
+
identifier: "QueueConfiguration_1",
|
|
2585
2576
|
});
|
|
2586
2577
|
|
|
2587
|
-
interface
|
|
2588
|
-
readonly
|
|
2589
|
-
readonly
|
|
2590
|
-
readonly
|
|
2591
|
-
readonly TopicConfigurations?: ReadonlyArray<TopicConfiguration>;
|
|
2578
|
+
interface TopicConfiguration_1 {
|
|
2579
|
+
readonly Event: string;
|
|
2580
|
+
readonly Filter?: NotificationFilter;
|
|
2581
|
+
readonly Topic: string;
|
|
2592
2582
|
}
|
|
2593
2583
|
|
|
2594
|
-
const
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
.
|
|
2603
|
-
|
|
2604
|
-
),
|
|
2605
|
-
),
|
|
2606
|
-
QueueConfigurations: Schema.optionalKey(
|
|
2607
|
-
Schema.Array(QueueConfiguration)
|
|
2608
|
-
.annotate({
|
|
2609
|
-
description:
|
|
2610
|
-
"The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages.",
|
|
2611
|
-
})
|
|
2612
|
-
.check(
|
|
2613
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
2614
|
-
),
|
|
2615
|
-
),
|
|
2616
|
-
TopicConfigurations: Schema.optionalKey(
|
|
2617
|
-
Schema.Array(TopicConfiguration)
|
|
2618
|
-
.annotate({
|
|
2619
|
-
description:
|
|
2620
|
-
"The topic to which notifications are sent and the events for which notifications are generated.",
|
|
2621
|
-
})
|
|
2622
|
-
.check(
|
|
2623
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
2624
|
-
),
|
|
2625
|
-
),
|
|
2584
|
+
const TopicConfiguration_1 = Schema.Struct({
|
|
2585
|
+
Event: Schema.String.annotate({
|
|
2586
|
+
description:
|
|
2587
|
+
"The Amazon S3 bucket event about which to send notifications. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
|
|
2588
|
+
}),
|
|
2589
|
+
Filter: Schema.optionalKey(NotificationFilter),
|
|
2590
|
+
Topic: Schema.String.annotate({
|
|
2591
|
+
description:
|
|
2592
|
+
"The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.",
|
|
2593
|
+
}),
|
|
2626
2594
|
}).annotate({
|
|
2627
2595
|
description:
|
|
2628
|
-
"
|
|
2629
|
-
identifier: "
|
|
2596
|
+
"A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.",
|
|
2597
|
+
identifier: "TopicConfiguration_1",
|
|
2630
2598
|
});
|
|
2631
2599
|
|
|
2632
2600
|
interface NotificationConfiguration_1 {
|
|
2633
2601
|
readonly EventBridgeConfiguration?: EventBridgeConfiguration;
|
|
2634
|
-
readonly LambdaConfigurations?: ReadonlyArray<LambdaConfiguration_1>;
|
|
2635
|
-
readonly QueueConfigurations?: ReadonlyArray<QueueConfiguration_1>;
|
|
2636
|
-
readonly TopicConfigurations?: ReadonlyArray<TopicConfiguration_1>;
|
|
2602
|
+
readonly LambdaConfigurations?: globalThis.ReadonlyArray<LambdaConfiguration_1>;
|
|
2603
|
+
readonly QueueConfigurations?: globalThis.ReadonlyArray<QueueConfiguration_1>;
|
|
2604
|
+
readonly TopicConfigurations?: globalThis.ReadonlyArray<TopicConfiguration_1>;
|
|
2637
2605
|
}
|
|
2638
2606
|
|
|
2639
2607
|
const NotificationConfiguration_1 = Schema.Struct({
|
|
@@ -2674,59 +2642,105 @@ const NotificationConfiguration_1 = Schema.Struct({
|
|
|
2674
2642
|
identifier: "NotificationConfiguration_1",
|
|
2675
2643
|
});
|
|
2676
2644
|
|
|
2677
|
-
interface
|
|
2678
|
-
readonly
|
|
2679
|
-
| ResourceEntity<{
|
|
2680
|
-
readonly provider: "aws";
|
|
2681
|
-
readonly service: "iam";
|
|
2682
|
-
readonly resource: "role";
|
|
2683
|
-
}>
|
|
2684
|
-
| string;
|
|
2685
|
-
readonly Rules: ReadonlyArray<ReplicationRule>;
|
|
2645
|
+
interface EncryptionConfiguration_1 {
|
|
2646
|
+
readonly ReplicaKmsKeyID: string;
|
|
2686
2647
|
}
|
|
2687
2648
|
|
|
2688
|
-
const
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2649
|
+
const EncryptionConfiguration_1 = Schema.Struct({
|
|
2650
|
+
ReplicaKmsKeyID: Schema.String.annotate({
|
|
2651
|
+
description:
|
|
2652
|
+
"Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
|
|
2653
|
+
}),
|
|
2654
|
+
}).annotate({
|
|
2655
|
+
description:
|
|
2656
|
+
"Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects.\n If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner.",
|
|
2657
|
+
identifier: "EncryptionConfiguration_1",
|
|
2658
|
+
});
|
|
2659
|
+
|
|
2660
|
+
interface ReplicationDestination_1 {
|
|
2661
|
+
readonly AccessControlTranslation?: AccessControlTranslation;
|
|
2662
|
+
readonly Account?: string;
|
|
2663
|
+
readonly Bucket: string;
|
|
2664
|
+
readonly EncryptionConfiguration?: EncryptionConfiguration_1;
|
|
2665
|
+
readonly Metrics?: Metrics;
|
|
2666
|
+
readonly ReplicationTime?: ReplicationTime;
|
|
2667
|
+
readonly StorageClass?: ResourceInputAlternatives_6;
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
const ReplicationDestination_1 = Schema.Struct({
|
|
2671
|
+
AccessControlTranslation: Schema.optionalKey(AccessControlTranslation),
|
|
2672
|
+
Account: Schema.optionalKey(
|
|
2708
2673
|
Schema.String.annotate({
|
|
2709
2674
|
description:
|
|
2710
|
-
"
|
|
2675
|
+
"Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the AWS-account that owns the destination bucket by specifying the ``AccessControlTranslation`` property, this is the account ID of the destination bucket owner. For more information, see [Cross-Region Replication Additional Configuration: Change Replica Owner](https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-change-owner.html) in the *Amazon S3 User Guide*.\n If you specify the ``AccessControlTranslation`` property, the ``Account`` property is required.",
|
|
2711
2676
|
}),
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2677
|
+
),
|
|
2678
|
+
Bucket: Schema.String.annotate({
|
|
2679
|
+
description:
|
|
2680
|
+
"The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.",
|
|
2681
|
+
}),
|
|
2682
|
+
EncryptionConfiguration: Schema.optionalKey(EncryptionConfiguration_1),
|
|
2683
|
+
Metrics: Schema.optionalKey(Metrics),
|
|
2684
|
+
ReplicationTime: Schema.optionalKey(ReplicationTime),
|
|
2685
|
+
StorageClass: Schema.optionalKey(ResourceInputAlternatives_6),
|
|
2686
|
+
}).annotate({
|
|
2687
|
+
description:
|
|
2688
|
+
"A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).",
|
|
2689
|
+
identifier: "ReplicationDestination_1",
|
|
2690
|
+
});
|
|
2691
|
+
|
|
2692
|
+
interface ReplicationRule_1 {
|
|
2693
|
+
readonly DeleteMarkerReplication?: DeleteMarkerReplication;
|
|
2694
|
+
readonly Destination: ReplicationDestination_1;
|
|
2695
|
+
readonly Filter?: ReplicationRuleFilter;
|
|
2696
|
+
readonly Id?: string;
|
|
2697
|
+
readonly Prefix?: string;
|
|
2698
|
+
readonly Priority?: number;
|
|
2699
|
+
readonly SourceSelectionCriteria?: SourceSelectionCriteria;
|
|
2700
|
+
readonly Status: ResourceInputAlternatives_7;
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
const ReplicationRule_1 = Schema.Struct({
|
|
2704
|
+
DeleteMarkerReplication: Schema.optionalKey(DeleteMarkerReplication),
|
|
2705
|
+
Destination: ReplicationDestination_1,
|
|
2706
|
+
Filter: Schema.optionalKey(ReplicationRuleFilter),
|
|
2707
|
+
Id: Schema.optionalKey(
|
|
2708
|
+
Schema.String.annotate({
|
|
2715
2709
|
description:
|
|
2716
|
-
|
|
2717
|
-
})
|
|
2718
|
-
|
|
2719
|
-
|
|
2710
|
+
'A unique identifier for the rule. The maximum value is 255 characters. If you don\'t specify a value, AWS CloudFormation generates a random ID. When using a V2 replication configuration this property is capitalized as "ID".',
|
|
2711
|
+
}).check(
|
|
2712
|
+
Schema.isMaxCodePoints(255).annotate({
|
|
2713
|
+
expected: "a string with at most 255 code points",
|
|
2714
|
+
}),
|
|
2715
|
+
),
|
|
2716
|
+
),
|
|
2717
|
+
Prefix: Schema.optionalKey(
|
|
2718
|
+
Schema.String.annotate({
|
|
2719
|
+
description:
|
|
2720
|
+
"An object key name prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters. To include all objects in a bucket, specify an empty string. To filter using a V1 replication configuration, add the ``Prefix`` directly as a child element of the ``Rule`` element.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
|
|
2721
|
+
}).check(
|
|
2722
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
2723
|
+
expected: "a string with at most 1024 code points",
|
|
2724
|
+
}),
|
|
2720
2725
|
),
|
|
2726
|
+
),
|
|
2727
|
+
Priority: Schema.optionalKey(
|
|
2728
|
+
Schema.Number.annotate({
|
|
2729
|
+
description:
|
|
2730
|
+
"The priority indicates which rule has precedence whenever two or more replication rules conflict. Amazon S3 will attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority. \n For more information, see [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the *Amazon S3 User Guide*.",
|
|
2731
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2732
|
+
),
|
|
2733
|
+
SourceSelectionCriteria: Schema.optionalKey(SourceSelectionCriteria),
|
|
2734
|
+
Status: ResourceInputAlternatives_7,
|
|
2721
2735
|
}).annotate({
|
|
2722
2736
|
description:
|
|
2723
|
-
"
|
|
2724
|
-
identifier: "
|
|
2737
|
+
"Specifies which Amazon S3 objects to replicate and where to store the replicas.",
|
|
2738
|
+
identifier: "ReplicationRule_1",
|
|
2725
2739
|
});
|
|
2726
2740
|
|
|
2727
2741
|
interface ReplicationConfiguration_1 {
|
|
2728
2742
|
readonly Role: string;
|
|
2729
|
-
readonly Rules: ReadonlyArray<ReplicationRule_1>;
|
|
2743
|
+
readonly Rules: globalThis.ReadonlyArray<ReplicationRule_1>;
|
|
2730
2744
|
}
|
|
2731
2745
|
|
|
2732
2746
|
const ReplicationConfiguration_1 = Schema.Struct({
|
|
@@ -2750,16 +2764,8 @@ const ReplicationConfiguration_1 = Schema.Struct({
|
|
|
2750
2764
|
|
|
2751
2765
|
export interface AWSBucketProps {
|
|
2752
2766
|
readonly AccelerateConfiguration?: AccelerateConfiguration;
|
|
2753
|
-
readonly AccessControl?:
|
|
2754
|
-
|
|
2755
|
-
| "AwsExecRead"
|
|
2756
|
-
| "BucketOwnerFullControl"
|
|
2757
|
-
| "BucketOwnerRead"
|
|
2758
|
-
| "LogDeliveryWrite"
|
|
2759
|
-
| "Private"
|
|
2760
|
-
| "PublicRead"
|
|
2761
|
-
| "PublicReadWrite";
|
|
2762
|
-
readonly AnalyticsConfigurations?: ReadonlyArray<AnalyticsConfiguration>;
|
|
2767
|
+
readonly AccessControl?: ResourceInputAlternatives;
|
|
2768
|
+
readonly AnalyticsConfigurations?: globalThis.ReadonlyArray<AnalyticsConfiguration>;
|
|
2763
2769
|
readonly BucketEncryption?: BucketEncryption;
|
|
2764
2770
|
readonly BucketName?:
|
|
2765
2771
|
| ResourceEntity<{
|
|
@@ -2769,13 +2775,13 @@ export interface AWSBucketProps {
|
|
|
2769
2775
|
}>
|
|
2770
2776
|
| string;
|
|
2771
2777
|
readonly BucketNamePrefix?: string;
|
|
2772
|
-
readonly BucketNamespace?:
|
|
2778
|
+
readonly BucketNamespace?: ResourceInputAlternatives_3;
|
|
2773
2779
|
readonly CorsConfiguration?: CorsConfiguration;
|
|
2774
|
-
readonly IntelligentTieringConfigurations?:
|
|
2775
|
-
readonly InventoryConfigurations?: ReadonlyArray<InventoryConfiguration>;
|
|
2780
|
+
readonly IntelligentTieringConfigurations?: ResourceInputItems_1;
|
|
2781
|
+
readonly InventoryConfigurations?: globalThis.ReadonlyArray<InventoryConfiguration>;
|
|
2776
2782
|
readonly LifecycleConfiguration?: LifecycleConfiguration;
|
|
2777
2783
|
readonly LoggingConfiguration?: LoggingConfiguration;
|
|
2778
|
-
readonly MetricsConfigurations?:
|
|
2784
|
+
readonly MetricsConfigurations?: ResourceInputItems_3;
|
|
2779
2785
|
readonly MetadataTableConfiguration?: MetadataTableConfiguration;
|
|
2780
2786
|
readonly MetadataConfiguration?: MetadataConfiguration;
|
|
2781
2787
|
readonly NotificationConfiguration?: NotificationConfiguration;
|
|
@@ -2784,8 +2790,8 @@ export interface AWSBucketProps {
|
|
|
2784
2790
|
readonly OwnershipControls?: OwnershipControls;
|
|
2785
2791
|
readonly PublicAccessBlockConfiguration?: PublicAccessBlockConfiguration;
|
|
2786
2792
|
readonly ReplicationConfiguration?: ReplicationConfiguration;
|
|
2787
|
-
readonly Tags?:
|
|
2788
|
-
readonly AbacStatus?:
|
|
2793
|
+
readonly Tags?: ResourceInputItems_4;
|
|
2794
|
+
readonly AbacStatus?: ResourceInputAlternatives_8;
|
|
2789
2795
|
readonly VersioningConfiguration?: VersioningConfiguration;
|
|
2790
2796
|
readonly WebsiteConfiguration?: WebsiteConfiguration;
|
|
2791
2797
|
}
|
|
@@ -2806,21 +2812,7 @@ export const AWSBucketResourceSchema = ResourceSchemaAnnotationSchema.make({
|
|
|
2806
2812
|
export const AWSBucketPropsSchema = annotateResourceSchema(
|
|
2807
2813
|
Schema.Struct({
|
|
2808
2814
|
AccelerateConfiguration: Schema.optionalKey(AccelerateConfiguration),
|
|
2809
|
-
AccessControl: Schema.optionalKey(
|
|
2810
|
-
Schema.Literals([
|
|
2811
|
-
"AuthenticatedRead",
|
|
2812
|
-
"AwsExecRead",
|
|
2813
|
-
"BucketOwnerFullControl",
|
|
2814
|
-
"BucketOwnerRead",
|
|
2815
|
-
"LogDeliveryWrite",
|
|
2816
|
-
"Private",
|
|
2817
|
-
"PublicRead",
|
|
2818
|
-
"PublicReadWrite",
|
|
2819
|
-
]).annotate({
|
|
2820
|
-
description:
|
|
2821
|
-
"This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.\n A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.\n S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.\n The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.",
|
|
2822
|
-
}),
|
|
2823
|
-
),
|
|
2815
|
+
AccessControl: Schema.optionalKey(ResourceInputAlternatives),
|
|
2824
2816
|
AnalyticsConfigurations: Schema.optionalKey(
|
|
2825
2817
|
Schema.Array(AnalyticsConfiguration)
|
|
2826
2818
|
.annotate({
|
|
@@ -2863,24 +2855,9 @@ export const AWSBucketPropsSchema = annotateResourceSchema(
|
|
|
2863
2855
|
BucketNamePrefix: Schema.optionalKey(
|
|
2864
2856
|
Schema.String.annotate({ description: "" }),
|
|
2865
2857
|
),
|
|
2866
|
-
BucketNamespace: Schema.optionalKey(
|
|
2867
|
-
Schema.Literals(["global", "account-regional"]).annotate({
|
|
2868
|
-
description: "",
|
|
2869
|
-
}),
|
|
2870
|
-
),
|
|
2858
|
+
BucketNamespace: Schema.optionalKey(ResourceInputAlternatives_3),
|
|
2871
2859
|
CorsConfiguration: Schema.optionalKey(CorsConfiguration),
|
|
2872
|
-
IntelligentTieringConfigurations: Schema.optionalKey(
|
|
2873
|
-
Schema.Array(IntelligentTieringConfiguration)
|
|
2874
|
-
.annotate({
|
|
2875
|
-
description:
|
|
2876
|
-
"Defines how Amazon S3 handles Intelligent-Tiering storage.",
|
|
2877
|
-
})
|
|
2878
|
-
.check(
|
|
2879
|
-
Schema.isUnique().annotate({
|
|
2880
|
-
expected: "an array with unique items",
|
|
2881
|
-
}),
|
|
2882
|
-
),
|
|
2883
|
-
),
|
|
2860
|
+
IntelligentTieringConfigurations: Schema.optionalKey(ResourceInputItems_1),
|
|
2884
2861
|
InventoryConfigurations: Schema.optionalKey(
|
|
2885
2862
|
Schema.Array(InventoryConfiguration)
|
|
2886
2863
|
.annotate({
|
|
@@ -2895,18 +2872,7 @@ export const AWSBucketPropsSchema = annotateResourceSchema(
|
|
|
2895
2872
|
),
|
|
2896
2873
|
LifecycleConfiguration: Schema.optionalKey(LifecycleConfiguration),
|
|
2897
2874
|
LoggingConfiguration: Schema.optionalKey(LoggingConfiguration),
|
|
2898
|
-
MetricsConfigurations: Schema.optionalKey(
|
|
2899
|
-
Schema.Array(MetricsConfiguration)
|
|
2900
|
-
.annotate({
|
|
2901
|
-
description:
|
|
2902
|
-
"Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).",
|
|
2903
|
-
})
|
|
2904
|
-
.check(
|
|
2905
|
-
Schema.isUnique().annotate({
|
|
2906
|
-
expected: "an array with unique items",
|
|
2907
|
-
}),
|
|
2908
|
-
),
|
|
2909
|
-
),
|
|
2875
|
+
MetricsConfigurations: Schema.optionalKey(ResourceInputItems_3),
|
|
2910
2876
|
MetadataTableConfiguration: Schema.optionalKey(MetadataTableConfiguration),
|
|
2911
2877
|
MetadataConfiguration: Schema.optionalKey(MetadataConfiguration),
|
|
2912
2878
|
NotificationConfiguration: Schema.optionalKey(NotificationConfiguration),
|
|
@@ -2922,18 +2888,8 @@ export const AWSBucketPropsSchema = annotateResourceSchema(
|
|
|
2922
2888
|
PublicAccessBlockConfiguration,
|
|
2923
2889
|
),
|
|
2924
2890
|
ReplicationConfiguration: Schema.optionalKey(ReplicationConfiguration),
|
|
2925
|
-
Tags: Schema.optionalKey(
|
|
2926
|
-
|
|
2927
|
-
description:
|
|
2928
|
-
"An arbitrary set of tags (key-value pairs) for this S3 bucket.",
|
|
2929
|
-
}),
|
|
2930
|
-
),
|
|
2931
|
-
AbacStatus: Schema.optionalKey(
|
|
2932
|
-
Schema.Literals(["Enabled", "Disabled"]).annotate({
|
|
2933
|
-
description:
|
|
2934
|
-
"The ABAC status of the general purpose bucket. When ABAC is enabled for the general purpose bucket, you can use tags to manage access to the general purpose buckets as well as for cost tracking purposes. When ABAC is disabled for the general purpose buckets, you can only use tags for cost tracking purposes. For more information, see [Using tags with S3 general purpose buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html).",
|
|
2935
|
-
}),
|
|
2936
|
-
),
|
|
2891
|
+
Tags: Schema.optionalKey(ResourceInputItems_4),
|
|
2892
|
+
AbacStatus: Schema.optionalKey(ResourceInputAlternatives_8),
|
|
2937
2893
|
VersioningConfiguration: Schema.optionalKey(VersioningConfiguration),
|
|
2938
2894
|
WebsiteConfiguration: Schema.optionalKey(WebsiteConfiguration),
|
|
2939
2895
|
}),
|
|
@@ -2991,26 +2947,18 @@ export const AWSBucketOutputsSchema = Schema.Struct({
|
|
|
2991
2947
|
|
|
2992
2948
|
export interface AWSBucketRequest {
|
|
2993
2949
|
readonly AccelerateConfiguration?: AccelerateConfiguration;
|
|
2994
|
-
readonly AccessControl?:
|
|
2995
|
-
|
|
2996
|
-
| "AwsExecRead"
|
|
2997
|
-
| "BucketOwnerFullControl"
|
|
2998
|
-
| "BucketOwnerRead"
|
|
2999
|
-
| "LogDeliveryWrite"
|
|
3000
|
-
| "Private"
|
|
3001
|
-
| "PublicRead"
|
|
3002
|
-
| "PublicReadWrite";
|
|
3003
|
-
readonly AnalyticsConfigurations?: ReadonlyArray<AnalyticsConfiguration_1>;
|
|
2950
|
+
readonly AccessControl?: ResourceInputAlternatives;
|
|
2951
|
+
readonly AnalyticsConfigurations?: globalThis.ReadonlyArray<AnalyticsConfiguration_1>;
|
|
3004
2952
|
readonly BucketEncryption?: BucketEncryption_1;
|
|
3005
2953
|
readonly BucketName?: string;
|
|
3006
2954
|
readonly BucketNamePrefix?: string;
|
|
3007
|
-
readonly BucketNamespace?:
|
|
2955
|
+
readonly BucketNamespace?: ResourceInputAlternatives_3;
|
|
3008
2956
|
readonly CorsConfiguration?: CorsConfiguration;
|
|
3009
|
-
readonly IntelligentTieringConfigurations?:
|
|
3010
|
-
readonly InventoryConfigurations?: ReadonlyArray<InventoryConfiguration_1>;
|
|
2957
|
+
readonly IntelligentTieringConfigurations?: ResourceInputItems_1;
|
|
2958
|
+
readonly InventoryConfigurations?: globalThis.ReadonlyArray<InventoryConfiguration_1>;
|
|
3011
2959
|
readonly LifecycleConfiguration?: LifecycleConfiguration;
|
|
3012
2960
|
readonly LoggingConfiguration?: LoggingConfiguration_1;
|
|
3013
|
-
readonly MetricsConfigurations?:
|
|
2961
|
+
readonly MetricsConfigurations?: ResourceInputItems_3;
|
|
3014
2962
|
readonly MetadataTableConfiguration?: MetadataTableConfiguration;
|
|
3015
2963
|
readonly MetadataConfiguration?: MetadataConfiguration;
|
|
3016
2964
|
readonly NotificationConfiguration?: NotificationConfiguration_1;
|
|
@@ -3019,29 +2967,15 @@ export interface AWSBucketRequest {
|
|
|
3019
2967
|
readonly OwnershipControls?: OwnershipControls;
|
|
3020
2968
|
readonly PublicAccessBlockConfiguration?: PublicAccessBlockConfiguration;
|
|
3021
2969
|
readonly ReplicationConfiguration?: ReplicationConfiguration_1;
|
|
3022
|
-
readonly Tags?:
|
|
3023
|
-
readonly AbacStatus?:
|
|
2970
|
+
readonly Tags?: ResourceInputItems_4;
|
|
2971
|
+
readonly AbacStatus?: ResourceInputAlternatives_8;
|
|
3024
2972
|
readonly VersioningConfiguration?: VersioningConfiguration;
|
|
3025
2973
|
readonly WebsiteConfiguration?: WebsiteConfiguration;
|
|
3026
2974
|
}
|
|
3027
2975
|
|
|
3028
2976
|
export const AWSBucketRequestSchema = Schema.Struct({
|
|
3029
2977
|
AccelerateConfiguration: Schema.optionalKey(AccelerateConfiguration),
|
|
3030
|
-
AccessControl: Schema.optionalKey(
|
|
3031
|
-
Schema.Literals([
|
|
3032
|
-
"AuthenticatedRead",
|
|
3033
|
-
"AwsExecRead",
|
|
3034
|
-
"BucketOwnerFullControl",
|
|
3035
|
-
"BucketOwnerRead",
|
|
3036
|
-
"LogDeliveryWrite",
|
|
3037
|
-
"Private",
|
|
3038
|
-
"PublicRead",
|
|
3039
|
-
"PublicReadWrite",
|
|
3040
|
-
]).annotate({
|
|
3041
|
-
description:
|
|
3042
|
-
"This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.\n A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.\n S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.\n The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.",
|
|
3043
|
-
}),
|
|
3044
|
-
),
|
|
2978
|
+
AccessControl: Schema.optionalKey(ResourceInputAlternatives),
|
|
3045
2979
|
AnalyticsConfigurations: Schema.optionalKey(
|
|
3046
2980
|
Schema.Array(AnalyticsConfiguration_1)
|
|
3047
2981
|
.annotate({
|
|
@@ -3062,22 +2996,9 @@ export const AWSBucketRequestSchema = Schema.Struct({
|
|
|
3062
2996
|
BucketNamePrefix: Schema.optionalKey(
|
|
3063
2997
|
Schema.String.annotate({ description: "" }),
|
|
3064
2998
|
),
|
|
3065
|
-
BucketNamespace: Schema.optionalKey(
|
|
3066
|
-
Schema.Literals(["global", "account-regional"]).annotate({
|
|
3067
|
-
description: "",
|
|
3068
|
-
}),
|
|
3069
|
-
),
|
|
2999
|
+
BucketNamespace: Schema.optionalKey(ResourceInputAlternatives_3),
|
|
3070
3000
|
CorsConfiguration: Schema.optionalKey(CorsConfiguration),
|
|
3071
|
-
IntelligentTieringConfigurations: Schema.optionalKey(
|
|
3072
|
-
Schema.Array(IntelligentTieringConfiguration)
|
|
3073
|
-
.annotate({
|
|
3074
|
-
description:
|
|
3075
|
-
"Defines how Amazon S3 handles Intelligent-Tiering storage.",
|
|
3076
|
-
})
|
|
3077
|
-
.check(
|
|
3078
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
3079
|
-
),
|
|
3080
|
-
),
|
|
3001
|
+
IntelligentTieringConfigurations: Schema.optionalKey(ResourceInputItems_1),
|
|
3081
3002
|
InventoryConfigurations: Schema.optionalKey(
|
|
3082
3003
|
Schema.Array(InventoryConfiguration_1)
|
|
3083
3004
|
.annotate({
|
|
@@ -3090,16 +3011,7 @@ export const AWSBucketRequestSchema = Schema.Struct({
|
|
|
3090
3011
|
),
|
|
3091
3012
|
LifecycleConfiguration: Schema.optionalKey(LifecycleConfiguration),
|
|
3092
3013
|
LoggingConfiguration: Schema.optionalKey(LoggingConfiguration_1),
|
|
3093
|
-
MetricsConfigurations: Schema.optionalKey(
|
|
3094
|
-
Schema.Array(MetricsConfiguration)
|
|
3095
|
-
.annotate({
|
|
3096
|
-
description:
|
|
3097
|
-
"Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).",
|
|
3098
|
-
})
|
|
3099
|
-
.check(
|
|
3100
|
-
Schema.isUnique().annotate({ expected: "an array with unique items" }),
|
|
3101
|
-
),
|
|
3102
|
-
),
|
|
3014
|
+
MetricsConfigurations: Schema.optionalKey(ResourceInputItems_3),
|
|
3103
3015
|
MetadataTableConfiguration: Schema.optionalKey(MetadataTableConfiguration),
|
|
3104
3016
|
MetadataConfiguration: Schema.optionalKey(MetadataConfiguration),
|
|
3105
3017
|
NotificationConfiguration: Schema.optionalKey(NotificationConfiguration_1),
|
|
@@ -3115,18 +3027,8 @@ export const AWSBucketRequestSchema = Schema.Struct({
|
|
|
3115
3027
|
PublicAccessBlockConfiguration,
|
|
3116
3028
|
),
|
|
3117
3029
|
ReplicationConfiguration: Schema.optionalKey(ReplicationConfiguration_1),
|
|
3118
|
-
Tags: Schema.optionalKey(
|
|
3119
|
-
|
|
3120
|
-
description:
|
|
3121
|
-
"An arbitrary set of tags (key-value pairs) for this S3 bucket.",
|
|
3122
|
-
}),
|
|
3123
|
-
),
|
|
3124
|
-
AbacStatus: Schema.optionalKey(
|
|
3125
|
-
Schema.Literals(["Enabled", "Disabled"]).annotate({
|
|
3126
|
-
description:
|
|
3127
|
-
"The ABAC status of the general purpose bucket. When ABAC is enabled for the general purpose bucket, you can use tags to manage access to the general purpose buckets as well as for cost tracking purposes. When ABAC is disabled for the general purpose buckets, you can only use tags for cost tracking purposes. For more information, see [Using tags with S3 general purpose buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html).",
|
|
3128
|
-
}),
|
|
3129
|
-
),
|
|
3030
|
+
Tags: Schema.optionalKey(ResourceInputItems_4),
|
|
3031
|
+
AbacStatus: Schema.optionalKey(ResourceInputAlternatives_8),
|
|
3130
3032
|
VersioningConfiguration: Schema.optionalKey(VersioningConfiguration),
|
|
3131
3033
|
WebsiteConfiguration: Schema.optionalKey(WebsiteConfiguration),
|
|
3132
3034
|
});
|