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
|
@@ -0,0 +1,1756 @@
|
|
|
1
|
+
// Generated from the CloudFormation Registry resource schema. Do not edit.
|
|
2
|
+
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
|
|
3
|
+
import { Effect, Schema } from "effect";
|
|
4
|
+
import {
|
|
5
|
+
annotateResourceSchema,
|
|
6
|
+
ResourceEntity,
|
|
7
|
+
ResourceGraphBuilder,
|
|
8
|
+
type ResourceKey,
|
|
9
|
+
ResourceReferenceSchema,
|
|
10
|
+
ResourceSchemaAnnotationSchema,
|
|
11
|
+
} from "nomoss/core";
|
|
12
|
+
import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
|
|
13
|
+
|
|
14
|
+
interface Volume {
|
|
15
|
+
readonly VolumeId:
|
|
16
|
+
| ResourceEntity<{
|
|
17
|
+
readonly provider: "aws";
|
|
18
|
+
readonly service: "ec2";
|
|
19
|
+
readonly resource: "volume";
|
|
20
|
+
}>
|
|
21
|
+
| string;
|
|
22
|
+
readonly Device: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const Volume = Schema.Struct({
|
|
26
|
+
VolumeId: Schema.Union([
|
|
27
|
+
Schema.Union([
|
|
28
|
+
ResourceReferenceSchema(
|
|
29
|
+
Schema.Struct({
|
|
30
|
+
provider: Schema.Literal("aws"),
|
|
31
|
+
service: Schema.Literal("ec2"),
|
|
32
|
+
resource: Schema.Literal("volume"),
|
|
33
|
+
}),
|
|
34
|
+
{
|
|
35
|
+
value: null,
|
|
36
|
+
outputs: [
|
|
37
|
+
{
|
|
38
|
+
source: ["VolumeId"],
|
|
39
|
+
target: [],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
44
|
+
]),
|
|
45
|
+
Schema.String.annotate({
|
|
46
|
+
description:
|
|
47
|
+
"The ID of the EBS volume. The volume and instance must be within the same Availability Zone.",
|
|
48
|
+
}),
|
|
49
|
+
]),
|
|
50
|
+
Device: Schema.String.annotate({
|
|
51
|
+
description: "The device name (for example, /dev/sdh or xvdh).",
|
|
52
|
+
}),
|
|
53
|
+
}).annotate({ identifier: "Volume" });
|
|
54
|
+
|
|
55
|
+
interface ResourceInputProperties {
|
|
56
|
+
readonly Enabled?: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const ResourceInputProperties = Schema.Struct({
|
|
60
|
+
Enabled: Schema.optionalKey(
|
|
61
|
+
Schema.Boolean.annotate({
|
|
62
|
+
description:
|
|
63
|
+
"If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.",
|
|
64
|
+
}),
|
|
65
|
+
),
|
|
66
|
+
}).annotate({
|
|
67
|
+
description:
|
|
68
|
+
"Indicates whether the instance is enabled for AWS Nitro Enclaves.",
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
interface Tag {
|
|
72
|
+
readonly Value: string;
|
|
73
|
+
readonly Key: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const Tag = Schema.Struct({
|
|
77
|
+
Value: Schema.String,
|
|
78
|
+
Key: Schema.String,
|
|
79
|
+
}).annotate({ identifier: "Tag" });
|
|
80
|
+
|
|
81
|
+
type ResourceInputItems = globalThis.ReadonlyArray<Tag>;
|
|
82
|
+
|
|
83
|
+
const ResourceInputItems = Schema.Array(Tag).annotate({
|
|
84
|
+
description: "The tags to add to the instance.",
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
interface ResourceInputProperties_1 {
|
|
88
|
+
readonly Configured?: boolean;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const ResourceInputProperties_1 = Schema.Struct({
|
|
92
|
+
Configured: Schema.optionalKey(
|
|
93
|
+
Schema.Boolean.annotate({
|
|
94
|
+
description:
|
|
95
|
+
"If you set this parameter to true, your instance is enabled for hibernation.",
|
|
96
|
+
}),
|
|
97
|
+
),
|
|
98
|
+
}).annotate({
|
|
99
|
+
description: "Indicates whether an instance is enabled for hibernation.",
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
interface LicenseSpecification {
|
|
103
|
+
readonly LicenseConfigurationArn: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const LicenseSpecification = Schema.Struct({
|
|
107
|
+
LicenseConfigurationArn: Schema.String.annotate({
|
|
108
|
+
description: "The Amazon Resource Name (ARN) of the license configuration.",
|
|
109
|
+
}),
|
|
110
|
+
}).annotate({ identifier: "LicenseSpecification" });
|
|
111
|
+
|
|
112
|
+
type ResourceInputItems_1 = globalThis.ReadonlyArray<LicenseSpecification>;
|
|
113
|
+
|
|
114
|
+
const ResourceInputItems_1 = Schema.Array(LicenseSpecification).annotate({
|
|
115
|
+
description: "The license configurations.",
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
interface MetadataOptions {
|
|
119
|
+
readonly HttpPutResponseHopLimit?: number;
|
|
120
|
+
readonly HttpProtocolIpv6?: "disabled" | "enabled";
|
|
121
|
+
readonly HttpTokens?: "optional" | "required";
|
|
122
|
+
readonly InstanceMetadataTags?: "disabled" | "enabled";
|
|
123
|
+
readonly HttpEndpoint?: "disabled" | "enabled";
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const MetadataOptions = Schema.Struct({
|
|
127
|
+
HttpPutResponseHopLimit: Schema.optionalKey(
|
|
128
|
+
Schema.Number.annotate({
|
|
129
|
+
description:
|
|
130
|
+
"The number of network hops that the metadata token can travel. Maximum is 64.",
|
|
131
|
+
})
|
|
132
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
133
|
+
.check(
|
|
134
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
135
|
+
expected: "a value greater than or equal to 1",
|
|
136
|
+
}),
|
|
137
|
+
)
|
|
138
|
+
.check(
|
|
139
|
+
Schema.isLessThanOrEqualTo(64).annotate({
|
|
140
|
+
expected: "a value less than or equal to 64",
|
|
141
|
+
}),
|
|
142
|
+
),
|
|
143
|
+
),
|
|
144
|
+
HttpProtocolIpv6: Schema.optionalKey(
|
|
145
|
+
Schema.Literals(["disabled", "enabled"]).annotate({
|
|
146
|
+
description:
|
|
147
|
+
"Enables or disables the IPv6 endpoint for the instance metadata service. To use this option, the instance must be a Nitro-based instance launched in a subnet that supports IPv6.",
|
|
148
|
+
}),
|
|
149
|
+
),
|
|
150
|
+
HttpTokens: Schema.optionalKey(
|
|
151
|
+
Schema.Literals(["optional", "required"]).annotate({
|
|
152
|
+
description: "Indicates whether IMDSv2 is required.",
|
|
153
|
+
}),
|
|
154
|
+
),
|
|
155
|
+
InstanceMetadataTags: Schema.optionalKey(
|
|
156
|
+
Schema.Literals(["disabled", "enabled"]).annotate({
|
|
157
|
+
description:
|
|
158
|
+
"Indicates whether tags from the instance are propagated to the EBS volumes.",
|
|
159
|
+
}),
|
|
160
|
+
),
|
|
161
|
+
HttpEndpoint: Schema.optionalKey(
|
|
162
|
+
Schema.Literals(["disabled", "enabled"]).annotate({
|
|
163
|
+
description:
|
|
164
|
+
"Enables or disables the HTTP metadata endpoint on your instances. If you specify a value of disabled, you cannot access your instance metadata.",
|
|
165
|
+
}),
|
|
166
|
+
),
|
|
167
|
+
}).annotate({ identifier: "MetadataOptions" });
|
|
168
|
+
|
|
169
|
+
interface ResourceInputProperties_2 {
|
|
170
|
+
readonly ThreadsPerCore?: number;
|
|
171
|
+
readonly CoreCount?: number;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
const ResourceInputProperties_2 = Schema.Struct({
|
|
175
|
+
ThreadsPerCore: Schema.optionalKey(Schema.Int),
|
|
176
|
+
CoreCount: Schema.optionalKey(Schema.Int),
|
|
177
|
+
}).annotate({ description: "The CPU options for the instance." });
|
|
178
|
+
|
|
179
|
+
interface PrivateDnsNameOptions {
|
|
180
|
+
readonly EnableResourceNameDnsARecord?: boolean;
|
|
181
|
+
readonly HostnameType?: "ip-name" | "resource-name";
|
|
182
|
+
readonly EnableResourceNameDnsAAAARecord?: boolean;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const PrivateDnsNameOptions = Schema.Struct({
|
|
186
|
+
EnableResourceNameDnsARecord: Schema.optionalKey(
|
|
187
|
+
Schema.Boolean.annotate({
|
|
188
|
+
description:
|
|
189
|
+
"Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
|
|
190
|
+
}),
|
|
191
|
+
),
|
|
192
|
+
HostnameType: Schema.optionalKey(
|
|
193
|
+
Schema.Literals(["ip-name", "resource-name"]).annotate({
|
|
194
|
+
description:
|
|
195
|
+
"The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
|
|
196
|
+
}),
|
|
197
|
+
),
|
|
198
|
+
EnableResourceNameDnsAAAARecord: Schema.optionalKey(
|
|
199
|
+
Schema.Boolean.annotate({
|
|
200
|
+
description:
|
|
201
|
+
"Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
|
|
202
|
+
}),
|
|
203
|
+
),
|
|
204
|
+
}).annotate({ identifier: "PrivateDnsNameOptions" });
|
|
205
|
+
|
|
206
|
+
interface AssociationParameter {
|
|
207
|
+
readonly Value: globalThis.ReadonlyArray<string>;
|
|
208
|
+
readonly Key: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const AssociationParameter = Schema.Struct({
|
|
212
|
+
Value: Schema.Array(Schema.String).annotate({
|
|
213
|
+
description: "The value of an input parameter.",
|
|
214
|
+
}),
|
|
215
|
+
Key: Schema.String.annotate({
|
|
216
|
+
description:
|
|
217
|
+
"The name of an input parameter that is in the associated SSM document.",
|
|
218
|
+
}),
|
|
219
|
+
}).annotate({ identifier: "AssociationParameter" });
|
|
220
|
+
|
|
221
|
+
type ResourceInputItems_2 = globalThis.ReadonlyArray<AssociationParameter>;
|
|
222
|
+
|
|
223
|
+
const ResourceInputItems_2 = Schema.Array(AssociationParameter).annotate({
|
|
224
|
+
description:
|
|
225
|
+
"The input parameter values to use with the associated SSM document.",
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
interface SsmAssociation {
|
|
229
|
+
readonly AssociationParameters?: ResourceInputItems_2;
|
|
230
|
+
readonly DocumentName:
|
|
231
|
+
| ResourceEntity<{
|
|
232
|
+
readonly provider: "aws";
|
|
233
|
+
readonly service: "ssm";
|
|
234
|
+
readonly resource: "document";
|
|
235
|
+
}>
|
|
236
|
+
| string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const SsmAssociation = Schema.Struct({
|
|
240
|
+
AssociationParameters: Schema.optionalKey(ResourceInputItems_2),
|
|
241
|
+
DocumentName: Schema.Union([
|
|
242
|
+
Schema.Union([
|
|
243
|
+
ResourceReferenceSchema(
|
|
244
|
+
Schema.Struct({
|
|
245
|
+
provider: Schema.Literal("aws"),
|
|
246
|
+
service: Schema.Literal("ssm"),
|
|
247
|
+
resource: Schema.Literal("document"),
|
|
248
|
+
}),
|
|
249
|
+
{
|
|
250
|
+
value: null,
|
|
251
|
+
outputs: [
|
|
252
|
+
{
|
|
253
|
+
source: ["Name"],
|
|
254
|
+
target: [],
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
},
|
|
258
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
259
|
+
]),
|
|
260
|
+
Schema.String.annotate({
|
|
261
|
+
description:
|
|
262
|
+
"The name of an SSM document to associate with the instance.",
|
|
263
|
+
}),
|
|
264
|
+
]),
|
|
265
|
+
}).annotate({ identifier: "SsmAssociation" });
|
|
266
|
+
|
|
267
|
+
type ResourceInputAlternatives = "default" | "host";
|
|
268
|
+
|
|
269
|
+
const ResourceInputAlternatives = Schema.Literals(["default", "host"]).annotate(
|
|
270
|
+
{
|
|
271
|
+
description:
|
|
272
|
+
"Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.",
|
|
273
|
+
},
|
|
274
|
+
);
|
|
275
|
+
|
|
276
|
+
type ResourceInputItems_3 = globalThis.ReadonlyArray<string>;
|
|
277
|
+
|
|
278
|
+
const ResourceInputItems_3 = Schema.Array(Schema.String).annotate({
|
|
279
|
+
description:
|
|
280
|
+
"the names of the security groups. For a nondefault VPC, you must use security group IDs instead.",
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
interface Ebs {
|
|
284
|
+
readonly SnapshotId?: string;
|
|
285
|
+
readonly VolumeType?: string;
|
|
286
|
+
readonly KmsKeyId?: string;
|
|
287
|
+
readonly Encrypted?: boolean;
|
|
288
|
+
readonly Iops?: number;
|
|
289
|
+
readonly VolumeSize?: number;
|
|
290
|
+
readonly DeleteOnTermination?: boolean;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
const Ebs = Schema.Struct({
|
|
294
|
+
SnapshotId: Schema.optionalKey(
|
|
295
|
+
Schema.String.annotate({ description: "The ID of the snapshot." }),
|
|
296
|
+
),
|
|
297
|
+
VolumeType: Schema.optionalKey(
|
|
298
|
+
Schema.String.annotate({ description: "The volume type." }),
|
|
299
|
+
),
|
|
300
|
+
KmsKeyId: Schema.optionalKey(
|
|
301
|
+
Schema.String.annotate({
|
|
302
|
+
description:
|
|
303
|
+
"The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.",
|
|
304
|
+
}),
|
|
305
|
+
),
|
|
306
|
+
Encrypted: Schema.optionalKey(
|
|
307
|
+
Schema.Boolean.annotate({
|
|
308
|
+
description: "Indicates whether the volume should be encrypted.",
|
|
309
|
+
}),
|
|
310
|
+
),
|
|
311
|
+
Iops: Schema.optionalKey(
|
|
312
|
+
Schema.Number.annotate({
|
|
313
|
+
description:
|
|
314
|
+
"The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.",
|
|
315
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
316
|
+
),
|
|
317
|
+
VolumeSize: Schema.optionalKey(
|
|
318
|
+
Schema.Number.annotate({
|
|
319
|
+
description:
|
|
320
|
+
"The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.",
|
|
321
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
322
|
+
),
|
|
323
|
+
DeleteOnTermination: Schema.optionalKey(
|
|
324
|
+
Schema.Boolean.annotate({
|
|
325
|
+
description:
|
|
326
|
+
"Indicates whether the EBS volume is deleted on instance termination.",
|
|
327
|
+
}),
|
|
328
|
+
),
|
|
329
|
+
}).annotate({ identifier: "Ebs" });
|
|
330
|
+
|
|
331
|
+
interface BlockDeviceMapping {
|
|
332
|
+
readonly Ebs?: Ebs;
|
|
333
|
+
readonly NoDevice?: {
|
|
334
|
+
readonly [x: string]: never;
|
|
335
|
+
};
|
|
336
|
+
readonly VirtualName?: string;
|
|
337
|
+
readonly DeviceName: string;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
const BlockDeviceMapping = Schema.Struct({
|
|
341
|
+
Ebs: Schema.optionalKey(Ebs),
|
|
342
|
+
NoDevice: Schema.optionalKey(Schema.Record(Schema.String, Schema.Never)),
|
|
343
|
+
VirtualName: Schema.optionalKey(Schema.String),
|
|
344
|
+
DeviceName: Schema.String.annotate({
|
|
345
|
+
description: "The device name (for example, /dev/sdh or xvdh).",
|
|
346
|
+
}),
|
|
347
|
+
}).annotate({ identifier: "BlockDeviceMapping" });
|
|
348
|
+
|
|
349
|
+
type ResourceInputItems_4 = globalThis.ReadonlyArray<BlockDeviceMapping>;
|
|
350
|
+
|
|
351
|
+
const ResourceInputItems_4 = Schema.Array(BlockDeviceMapping).annotate({
|
|
352
|
+
description:
|
|
353
|
+
"The block device mapping entries that defines the block devices to attach to the instance at launch.",
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
interface InstanceIpv6Address {
|
|
357
|
+
readonly Ipv6Address: string;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
const InstanceIpv6Address = Schema.Struct({
|
|
361
|
+
Ipv6Address: Schema.String.annotate({ description: "The IPv6 address." }),
|
|
362
|
+
}).annotate({ identifier: "InstanceIpv6Address" });
|
|
363
|
+
|
|
364
|
+
type ResourceInputItems_5 = globalThis.ReadonlyArray<InstanceIpv6Address>;
|
|
365
|
+
|
|
366
|
+
const ResourceInputItems_5 = Schema.Array(InstanceIpv6Address).annotate({
|
|
367
|
+
description:
|
|
368
|
+
"[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with the primary network interface.",
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
interface ElasticGpuSpecification {
|
|
372
|
+
readonly Type: string;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
const ElasticGpuSpecification = Schema.Struct({
|
|
376
|
+
Type: Schema.String.annotate({
|
|
377
|
+
description:
|
|
378
|
+
"The type of Elastic Graphics accelerator. Amazon Elastic Graphics is no longer available.",
|
|
379
|
+
}),
|
|
380
|
+
}).annotate({ identifier: "ElasticGpuSpecification" });
|
|
381
|
+
|
|
382
|
+
type ResourceInputItems_6 = globalThis.ReadonlyArray<ElasticGpuSpecification>;
|
|
383
|
+
|
|
384
|
+
const ResourceInputItems_6 = Schema.Array(ElasticGpuSpecification).annotate({
|
|
385
|
+
description:
|
|
386
|
+
"An elastic GPU to associate with the instance. Amazon Elastic Graphics is no longer available.",
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
interface ElasticInferenceAccelerator {
|
|
390
|
+
readonly Type: string;
|
|
391
|
+
readonly Count?: number;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
const ElasticInferenceAccelerator = Schema.Struct({
|
|
395
|
+
Type: Schema.String.annotate({
|
|
396
|
+
description:
|
|
397
|
+
"The type of elastic inference accelerator. Amazon Elastic Inference is no longer available.",
|
|
398
|
+
}),
|
|
399
|
+
Count: Schema.optionalKey(
|
|
400
|
+
Schema.Number.annotate({
|
|
401
|
+
description:
|
|
402
|
+
"The number of elastic inference accelerators to attach to the instance. Amazon Elastic Inference is no longer available.",
|
|
403
|
+
})
|
|
404
|
+
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
405
|
+
.check(
|
|
406
|
+
Schema.isGreaterThanOrEqualTo(0).annotate({
|
|
407
|
+
expected: "a value greater than or equal to 0",
|
|
408
|
+
}),
|
|
409
|
+
),
|
|
410
|
+
),
|
|
411
|
+
}).annotate({ identifier: "ElasticInferenceAccelerator" });
|
|
412
|
+
|
|
413
|
+
type ResourceInputItems_7 =
|
|
414
|
+
globalThis.ReadonlyArray<ElasticInferenceAccelerator>;
|
|
415
|
+
|
|
416
|
+
const ResourceInputItems_7 = Schema.Array(ElasticInferenceAccelerator).annotate(
|
|
417
|
+
{
|
|
418
|
+
description:
|
|
419
|
+
"An elastic inference accelerator to associate with the instance. Amazon Elastic Inference is no longer available.",
|
|
420
|
+
},
|
|
421
|
+
);
|
|
422
|
+
|
|
423
|
+
type ResourceInputAlternatives_1 = ResourceEntity<{
|
|
424
|
+
readonly provider: "aws";
|
|
425
|
+
readonly service: "ec2";
|
|
426
|
+
readonly resource: "launchtemplate";
|
|
427
|
+
}>;
|
|
428
|
+
|
|
429
|
+
const ResourceInputAlternatives_1 = Schema.Union([
|
|
430
|
+
ResourceReferenceSchema(
|
|
431
|
+
Schema.Struct({
|
|
432
|
+
provider: Schema.Literal("aws"),
|
|
433
|
+
service: Schema.Literal("ec2"),
|
|
434
|
+
resource: Schema.Literal("launchtemplate"),
|
|
435
|
+
}),
|
|
436
|
+
{
|
|
437
|
+
value: null,
|
|
438
|
+
outputs: [
|
|
439
|
+
{
|
|
440
|
+
source: ["LatestVersionNumber"],
|
|
441
|
+
target: [],
|
|
442
|
+
},
|
|
443
|
+
],
|
|
444
|
+
},
|
|
445
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
446
|
+
]);
|
|
447
|
+
|
|
448
|
+
type ResourceInputAlternatives_2 = ResourceEntity<{
|
|
449
|
+
readonly provider: "aws";
|
|
450
|
+
readonly service: "ec2";
|
|
451
|
+
readonly resource: "launchtemplate";
|
|
452
|
+
}>;
|
|
453
|
+
|
|
454
|
+
const ResourceInputAlternatives_2 = Schema.Union([
|
|
455
|
+
ResourceReferenceSchema(
|
|
456
|
+
Schema.Struct({
|
|
457
|
+
provider: Schema.Literal("aws"),
|
|
458
|
+
service: Schema.Literal("ec2"),
|
|
459
|
+
resource: Schema.Literal("launchtemplate"),
|
|
460
|
+
}),
|
|
461
|
+
{
|
|
462
|
+
value: null,
|
|
463
|
+
outputs: [
|
|
464
|
+
{
|
|
465
|
+
source: ["LaunchTemplateId"],
|
|
466
|
+
target: [],
|
|
467
|
+
},
|
|
468
|
+
],
|
|
469
|
+
},
|
|
470
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
471
|
+
]);
|
|
472
|
+
|
|
473
|
+
type LaunchTemplateSpecification =
|
|
474
|
+
| {
|
|
475
|
+
readonly LaunchTemplateName: string;
|
|
476
|
+
readonly Version: ResourceInputAlternatives_1 | string;
|
|
477
|
+
readonly LaunchTemplateId?: ResourceInputAlternatives_2 | string;
|
|
478
|
+
}
|
|
479
|
+
| {
|
|
480
|
+
readonly LaunchTemplateId: ResourceInputAlternatives_2 | string;
|
|
481
|
+
readonly Version: ResourceInputAlternatives_1 | string;
|
|
482
|
+
readonly LaunchTemplateName?: string;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
const LaunchTemplateSpecification = Schema.Union(
|
|
486
|
+
[
|
|
487
|
+
Schema.Struct({
|
|
488
|
+
LaunchTemplateName: Schema.String.annotate({
|
|
489
|
+
description:
|
|
490
|
+
"The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
|
|
491
|
+
}),
|
|
492
|
+
Version: Schema.Union([
|
|
493
|
+
ResourceInputAlternatives_1,
|
|
494
|
+
Schema.String.annotate({
|
|
495
|
+
description: "The version number of the launch template.",
|
|
496
|
+
}),
|
|
497
|
+
]),
|
|
498
|
+
LaunchTemplateId: Schema.optionalKey(
|
|
499
|
+
Schema.Union([
|
|
500
|
+
ResourceInputAlternatives_2,
|
|
501
|
+
Schema.String.annotate({
|
|
502
|
+
description:
|
|
503
|
+
"The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
|
|
504
|
+
}),
|
|
505
|
+
]),
|
|
506
|
+
),
|
|
507
|
+
}),
|
|
508
|
+
Schema.Struct({
|
|
509
|
+
LaunchTemplateId: Schema.Union([
|
|
510
|
+
ResourceInputAlternatives_2,
|
|
511
|
+
Schema.String.annotate({
|
|
512
|
+
description:
|
|
513
|
+
"The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
|
|
514
|
+
}),
|
|
515
|
+
]),
|
|
516
|
+
Version: Schema.Union([
|
|
517
|
+
ResourceInputAlternatives_1,
|
|
518
|
+
Schema.String.annotate({
|
|
519
|
+
description: "The version number of the launch template.",
|
|
520
|
+
}),
|
|
521
|
+
]),
|
|
522
|
+
LaunchTemplateName: Schema.optionalKey(
|
|
523
|
+
Schema.String.annotate({
|
|
524
|
+
description:
|
|
525
|
+
"The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
|
|
526
|
+
}),
|
|
527
|
+
),
|
|
528
|
+
}),
|
|
529
|
+
],
|
|
530
|
+
{ mode: "oneOf" },
|
|
531
|
+
).annotate({ identifier: "LaunchTemplateSpecification" });
|
|
532
|
+
|
|
533
|
+
interface PrivateIpAddressSpecification {
|
|
534
|
+
readonly PrivateIpAddress: string;
|
|
535
|
+
readonly Primary: boolean;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
const PrivateIpAddressSpecification = Schema.Struct({
|
|
539
|
+
PrivateIpAddress: Schema.String.annotate({
|
|
540
|
+
description: "The private IPv4 addresses.",
|
|
541
|
+
}),
|
|
542
|
+
Primary: Schema.Boolean.annotate({
|
|
543
|
+
description:
|
|
544
|
+
"Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.",
|
|
545
|
+
}),
|
|
546
|
+
}).annotate({ identifier: "PrivateIpAddressSpecification" });
|
|
547
|
+
|
|
548
|
+
type ResourceInputItems_8 =
|
|
549
|
+
globalThis.ReadonlyArray<PrivateIpAddressSpecification>;
|
|
550
|
+
|
|
551
|
+
const ResourceInputItems_8 = Schema.Array(
|
|
552
|
+
PrivateIpAddressSpecification,
|
|
553
|
+
).annotate({
|
|
554
|
+
description:
|
|
555
|
+
"One or more private IPv4 addresses to assign to the network interface.",
|
|
556
|
+
});
|
|
557
|
+
|
|
558
|
+
type ResourceInputItems_9 = globalThis.ReadonlyArray<InstanceIpv6Address>;
|
|
559
|
+
|
|
560
|
+
const ResourceInputItems_9 = Schema.Array(InstanceIpv6Address).annotate({
|
|
561
|
+
description: "The IPv6 addresses associated with the network interface.",
|
|
562
|
+
});
|
|
563
|
+
|
|
564
|
+
interface EnaSrdUdpSpecification {
|
|
565
|
+
readonly EnaSrdUdpEnabled?: boolean;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
const EnaSrdUdpSpecification = Schema.Struct({
|
|
569
|
+
EnaSrdUdpEnabled: Schema.optionalKey(
|
|
570
|
+
Schema.Boolean.annotate({
|
|
571
|
+
description:
|
|
572
|
+
"Indicates whether UDP traffic uses ENA Express for your instance.",
|
|
573
|
+
}),
|
|
574
|
+
),
|
|
575
|
+
}).annotate({
|
|
576
|
+
description:
|
|
577
|
+
"Contains ENA Express settings for UDP network traffic for the network interface that's attached to the instance.",
|
|
578
|
+
identifier: "EnaSrdUdpSpecification",
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
interface EnaSrdSpecification {
|
|
582
|
+
readonly EnaSrdEnabled?: boolean;
|
|
583
|
+
readonly EnaSrdUdpSpecification?: EnaSrdUdpSpecification;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
const EnaSrdSpecification = Schema.Struct({
|
|
587
|
+
EnaSrdEnabled: Schema.optionalKey(
|
|
588
|
+
Schema.Boolean.annotate({
|
|
589
|
+
description:
|
|
590
|
+
"Specifies whether ENA Express is enabled for the network interface when you launch an instance.",
|
|
591
|
+
}),
|
|
592
|
+
),
|
|
593
|
+
EnaSrdUdpSpecification: Schema.optionalKey(EnaSrdUdpSpecification),
|
|
594
|
+
}).annotate({
|
|
595
|
+
description:
|
|
596
|
+
"Specifies the ENA Express settings for the network interface that's attached to the instance.",
|
|
597
|
+
identifier: "EnaSrdSpecification",
|
|
598
|
+
});
|
|
599
|
+
|
|
600
|
+
interface NetworkInterface {
|
|
601
|
+
readonly Description?: string;
|
|
602
|
+
readonly PrivateIpAddress?: string;
|
|
603
|
+
readonly PrivateIpAddresses?: ResourceInputItems_8;
|
|
604
|
+
readonly SecondaryPrivateIpAddressCount?: number;
|
|
605
|
+
readonly DeviceIndex: string;
|
|
606
|
+
readonly GroupSet?: globalThis.ReadonlyArray<
|
|
607
|
+
| ResourceEntity<{
|
|
608
|
+
readonly provider: "aws";
|
|
609
|
+
readonly service: "ec2";
|
|
610
|
+
readonly resource: "securitygroup";
|
|
611
|
+
}>
|
|
612
|
+
| string
|
|
613
|
+
>;
|
|
614
|
+
readonly Ipv6Addresses?: ResourceInputItems_9;
|
|
615
|
+
readonly SubnetId?:
|
|
616
|
+
| ResourceEntity<{
|
|
617
|
+
readonly provider: "aws";
|
|
618
|
+
readonly service: "ec2";
|
|
619
|
+
readonly resource: "subnet";
|
|
620
|
+
}>
|
|
621
|
+
| string;
|
|
622
|
+
readonly AssociatePublicIpAddress?: boolean;
|
|
623
|
+
readonly NetworkInterfaceId?:
|
|
624
|
+
| ResourceEntity<{
|
|
625
|
+
readonly provider: "aws";
|
|
626
|
+
readonly service: "ec2";
|
|
627
|
+
readonly resource: "networkinterface";
|
|
628
|
+
}>
|
|
629
|
+
| string;
|
|
630
|
+
readonly AssociateCarrierIpAddress?: boolean;
|
|
631
|
+
readonly EnaSrdSpecification?: EnaSrdSpecification;
|
|
632
|
+
readonly Ipv6AddressCount?: number;
|
|
633
|
+
readonly DeleteOnTermination?: boolean;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
const NetworkInterface = Schema.Struct({
|
|
637
|
+
Description: Schema.optionalKey(
|
|
638
|
+
Schema.String.annotate({
|
|
639
|
+
description: "The description of the network interface.",
|
|
640
|
+
}),
|
|
641
|
+
),
|
|
642
|
+
PrivateIpAddress: Schema.optionalKey(
|
|
643
|
+
Schema.String.annotate({
|
|
644
|
+
description: "The private IPv4 address of the network interface.",
|
|
645
|
+
}),
|
|
646
|
+
),
|
|
647
|
+
PrivateIpAddresses: Schema.optionalKey(ResourceInputItems_8),
|
|
648
|
+
SecondaryPrivateIpAddressCount: Schema.optionalKey(
|
|
649
|
+
Schema.Number.annotate({
|
|
650
|
+
description: "The number of secondary private IPv4 addresses.",
|
|
651
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
652
|
+
),
|
|
653
|
+
DeviceIndex: Schema.String.annotate({
|
|
654
|
+
description:
|
|
655
|
+
"The position of the network interface in the attachment order. A primary network interface has a device index of 0.",
|
|
656
|
+
}),
|
|
657
|
+
GroupSet: Schema.optionalKey(
|
|
658
|
+
Schema.Array(
|
|
659
|
+
Schema.Union([
|
|
660
|
+
Schema.Union([
|
|
661
|
+
ResourceReferenceSchema(
|
|
662
|
+
Schema.Struct({
|
|
663
|
+
provider: Schema.Literal("aws"),
|
|
664
|
+
service: Schema.Literal("ec2"),
|
|
665
|
+
resource: Schema.Literal("securitygroup"),
|
|
666
|
+
}),
|
|
667
|
+
{
|
|
668
|
+
value: null,
|
|
669
|
+
outputs: [
|
|
670
|
+
{
|
|
671
|
+
source: ["Id"],
|
|
672
|
+
target: [],
|
|
673
|
+
},
|
|
674
|
+
],
|
|
675
|
+
},
|
|
676
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
677
|
+
]),
|
|
678
|
+
Schema.String,
|
|
679
|
+
]),
|
|
680
|
+
).annotate({
|
|
681
|
+
description: "The IDs of the security groups for the network interface.",
|
|
682
|
+
}),
|
|
683
|
+
),
|
|
684
|
+
Ipv6Addresses: Schema.optionalKey(ResourceInputItems_9),
|
|
685
|
+
SubnetId: Schema.optionalKey(
|
|
686
|
+
Schema.Union([
|
|
687
|
+
Schema.Union([
|
|
688
|
+
ResourceReferenceSchema(
|
|
689
|
+
Schema.Struct({
|
|
690
|
+
provider: Schema.Literal("aws"),
|
|
691
|
+
service: Schema.Literal("ec2"),
|
|
692
|
+
resource: Schema.Literal("subnet"),
|
|
693
|
+
}),
|
|
694
|
+
{
|
|
695
|
+
value: null,
|
|
696
|
+
outputs: [
|
|
697
|
+
{
|
|
698
|
+
source: ["SubnetId"],
|
|
699
|
+
target: [],
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
},
|
|
703
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
704
|
+
]),
|
|
705
|
+
Schema.String.annotate({ description: "The ID of the subnet." }),
|
|
706
|
+
]),
|
|
707
|
+
),
|
|
708
|
+
AssociatePublicIpAddress: Schema.optionalKey(
|
|
709
|
+
Schema.Boolean.annotate({
|
|
710
|
+
description:
|
|
711
|
+
"Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.",
|
|
712
|
+
}),
|
|
713
|
+
),
|
|
714
|
+
NetworkInterfaceId: Schema.optionalKey(
|
|
715
|
+
Schema.Union([
|
|
716
|
+
Schema.Union([
|
|
717
|
+
ResourceReferenceSchema(
|
|
718
|
+
Schema.Struct({
|
|
719
|
+
provider: Schema.Literal("aws"),
|
|
720
|
+
service: Schema.Literal("ec2"),
|
|
721
|
+
resource: Schema.Literal("networkinterface"),
|
|
722
|
+
}),
|
|
723
|
+
{
|
|
724
|
+
value: null,
|
|
725
|
+
outputs: [
|
|
726
|
+
{
|
|
727
|
+
source: ["Id"],
|
|
728
|
+
target: [],
|
|
729
|
+
},
|
|
730
|
+
],
|
|
731
|
+
},
|
|
732
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
733
|
+
]),
|
|
734
|
+
Schema.String.annotate({
|
|
735
|
+
description: "The ID of the network interface.",
|
|
736
|
+
}),
|
|
737
|
+
]),
|
|
738
|
+
),
|
|
739
|
+
AssociateCarrierIpAddress: Schema.optionalKey(
|
|
740
|
+
Schema.Boolean.annotate({
|
|
741
|
+
description: "Not currently supported by AWS CloudFormation.",
|
|
742
|
+
}),
|
|
743
|
+
),
|
|
744
|
+
EnaSrdSpecification: Schema.optionalKey(EnaSrdSpecification),
|
|
745
|
+
Ipv6AddressCount: Schema.optionalKey(
|
|
746
|
+
Schema.Number.annotate({
|
|
747
|
+
description:
|
|
748
|
+
"A number of IPv6 addresses to assign to the network interface.",
|
|
749
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
750
|
+
),
|
|
751
|
+
DeleteOnTermination: Schema.optionalKey(
|
|
752
|
+
Schema.Boolean.annotate({
|
|
753
|
+
description:
|
|
754
|
+
"If set to true, the interface is deleted when the instance is terminated.",
|
|
755
|
+
}),
|
|
756
|
+
),
|
|
757
|
+
}).annotate({ identifier: "NetworkInterface" });
|
|
758
|
+
|
|
759
|
+
interface ResourceInputProperties_3 {
|
|
760
|
+
readonly CPUCredits?: string;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
const ResourceInputProperties_3 = Schema.Struct({
|
|
764
|
+
CPUCredits: Schema.optionalKey(Schema.String),
|
|
765
|
+
}).annotate({
|
|
766
|
+
description:
|
|
767
|
+
"The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.",
|
|
768
|
+
});
|
|
769
|
+
|
|
770
|
+
interface State {
|
|
771
|
+
readonly Code?: string;
|
|
772
|
+
readonly Name?: string;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
const State = Schema.Struct({
|
|
776
|
+
Code: Schema.optionalKey(
|
|
777
|
+
Schema.String.annotate({
|
|
778
|
+
description: "The state of the instance as a 16-bit unsigned integer.",
|
|
779
|
+
}),
|
|
780
|
+
),
|
|
781
|
+
Name: Schema.optionalKey(
|
|
782
|
+
Schema.String.annotate({
|
|
783
|
+
description: "The current state of the instance.",
|
|
784
|
+
}),
|
|
785
|
+
),
|
|
786
|
+
}).annotate({
|
|
787
|
+
description: "The current state of the instance",
|
|
788
|
+
identifier: "State",
|
|
789
|
+
});
|
|
790
|
+
|
|
791
|
+
interface Volume_1 {
|
|
792
|
+
readonly VolumeId: string;
|
|
793
|
+
readonly Device: string;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
const Volume_1 = Schema.Struct({
|
|
797
|
+
VolumeId: Schema.String.annotate({
|
|
798
|
+
description:
|
|
799
|
+
"The ID of the EBS volume. The volume and instance must be within the same Availability Zone.",
|
|
800
|
+
}),
|
|
801
|
+
Device: Schema.String.annotate({
|
|
802
|
+
description: "The device name (for example, /dev/sdh or xvdh).",
|
|
803
|
+
}),
|
|
804
|
+
}).annotate({ identifier: "Volume_1" });
|
|
805
|
+
|
|
806
|
+
interface SsmAssociation_1 {
|
|
807
|
+
readonly AssociationParameters?: ResourceInputItems_2;
|
|
808
|
+
readonly DocumentName: string;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
const SsmAssociation_1 = Schema.Struct({
|
|
812
|
+
AssociationParameters: Schema.optionalKey(ResourceInputItems_2),
|
|
813
|
+
DocumentName: Schema.String.annotate({
|
|
814
|
+
description: "The name of an SSM document to associate with the instance.",
|
|
815
|
+
}),
|
|
816
|
+
}).annotate({ identifier: "SsmAssociation_1" });
|
|
817
|
+
|
|
818
|
+
type LaunchTemplateSpecification_1 =
|
|
819
|
+
| {
|
|
820
|
+
readonly LaunchTemplateName: string;
|
|
821
|
+
readonly Version: string;
|
|
822
|
+
readonly LaunchTemplateId?: string;
|
|
823
|
+
}
|
|
824
|
+
| {
|
|
825
|
+
readonly LaunchTemplateId: string;
|
|
826
|
+
readonly Version: string;
|
|
827
|
+
readonly LaunchTemplateName?: string;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
const LaunchTemplateSpecification_1 = Schema.Union(
|
|
831
|
+
[
|
|
832
|
+
Schema.Struct({
|
|
833
|
+
LaunchTemplateName: Schema.String.annotate({
|
|
834
|
+
description:
|
|
835
|
+
"The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
|
|
836
|
+
}),
|
|
837
|
+
Version: Schema.String.annotate({
|
|
838
|
+
description: "The version number of the launch template.",
|
|
839
|
+
}),
|
|
840
|
+
LaunchTemplateId: Schema.optionalKey(
|
|
841
|
+
Schema.String.annotate({
|
|
842
|
+
description:
|
|
843
|
+
"The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
|
|
844
|
+
}),
|
|
845
|
+
),
|
|
846
|
+
}),
|
|
847
|
+
Schema.Struct({
|
|
848
|
+
LaunchTemplateId: Schema.String.annotate({
|
|
849
|
+
description:
|
|
850
|
+
"The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
|
|
851
|
+
}),
|
|
852
|
+
Version: Schema.String.annotate({
|
|
853
|
+
description: "The version number of the launch template.",
|
|
854
|
+
}),
|
|
855
|
+
LaunchTemplateName: Schema.optionalKey(
|
|
856
|
+
Schema.String.annotate({
|
|
857
|
+
description:
|
|
858
|
+
"The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
|
|
859
|
+
}),
|
|
860
|
+
),
|
|
861
|
+
}),
|
|
862
|
+
],
|
|
863
|
+
{ mode: "oneOf" },
|
|
864
|
+
).annotate({ identifier: "LaunchTemplateSpecification_1" });
|
|
865
|
+
|
|
866
|
+
interface NetworkInterface_1 {
|
|
867
|
+
readonly Description?: string;
|
|
868
|
+
readonly PrivateIpAddress?: string;
|
|
869
|
+
readonly PrivateIpAddresses?: ResourceInputItems_8;
|
|
870
|
+
readonly SecondaryPrivateIpAddressCount?: number;
|
|
871
|
+
readonly DeviceIndex: string;
|
|
872
|
+
readonly GroupSet?: globalThis.ReadonlyArray<string>;
|
|
873
|
+
readonly Ipv6Addresses?: ResourceInputItems_9;
|
|
874
|
+
readonly SubnetId?: string;
|
|
875
|
+
readonly AssociatePublicIpAddress?: boolean;
|
|
876
|
+
readonly NetworkInterfaceId?: string;
|
|
877
|
+
readonly AssociateCarrierIpAddress?: boolean;
|
|
878
|
+
readonly EnaSrdSpecification?: EnaSrdSpecification;
|
|
879
|
+
readonly Ipv6AddressCount?: number;
|
|
880
|
+
readonly DeleteOnTermination?: boolean;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
const NetworkInterface_1 = Schema.Struct({
|
|
884
|
+
Description: Schema.optionalKey(
|
|
885
|
+
Schema.String.annotate({
|
|
886
|
+
description: "The description of the network interface.",
|
|
887
|
+
}),
|
|
888
|
+
),
|
|
889
|
+
PrivateIpAddress: Schema.optionalKey(
|
|
890
|
+
Schema.String.annotate({
|
|
891
|
+
description: "The private IPv4 address of the network interface.",
|
|
892
|
+
}),
|
|
893
|
+
),
|
|
894
|
+
PrivateIpAddresses: Schema.optionalKey(ResourceInputItems_8),
|
|
895
|
+
SecondaryPrivateIpAddressCount: Schema.optionalKey(
|
|
896
|
+
Schema.Number.annotate({
|
|
897
|
+
description: "The number of secondary private IPv4 addresses.",
|
|
898
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
899
|
+
),
|
|
900
|
+
DeviceIndex: Schema.String.annotate({
|
|
901
|
+
description:
|
|
902
|
+
"The position of the network interface in the attachment order. A primary network interface has a device index of 0.",
|
|
903
|
+
}),
|
|
904
|
+
GroupSet: Schema.optionalKey(
|
|
905
|
+
Schema.Array(Schema.String).annotate({
|
|
906
|
+
description: "The IDs of the security groups for the network interface.",
|
|
907
|
+
}),
|
|
908
|
+
),
|
|
909
|
+
Ipv6Addresses: Schema.optionalKey(ResourceInputItems_9),
|
|
910
|
+
SubnetId: Schema.optionalKey(
|
|
911
|
+
Schema.String.annotate({ description: "The ID of the subnet." }),
|
|
912
|
+
),
|
|
913
|
+
AssociatePublicIpAddress: Schema.optionalKey(
|
|
914
|
+
Schema.Boolean.annotate({
|
|
915
|
+
description:
|
|
916
|
+
"Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.",
|
|
917
|
+
}),
|
|
918
|
+
),
|
|
919
|
+
NetworkInterfaceId: Schema.optionalKey(
|
|
920
|
+
Schema.String.annotate({ description: "The ID of the network interface." }),
|
|
921
|
+
),
|
|
922
|
+
AssociateCarrierIpAddress: Schema.optionalKey(
|
|
923
|
+
Schema.Boolean.annotate({
|
|
924
|
+
description: "Not currently supported by AWS CloudFormation.",
|
|
925
|
+
}),
|
|
926
|
+
),
|
|
927
|
+
EnaSrdSpecification: Schema.optionalKey(EnaSrdSpecification),
|
|
928
|
+
Ipv6AddressCount: Schema.optionalKey(
|
|
929
|
+
Schema.Number.annotate({
|
|
930
|
+
description:
|
|
931
|
+
"A number of IPv6 addresses to assign to the network interface.",
|
|
932
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
933
|
+
),
|
|
934
|
+
DeleteOnTermination: Schema.optionalKey(
|
|
935
|
+
Schema.Boolean.annotate({
|
|
936
|
+
description:
|
|
937
|
+
"If set to true, the interface is deleted when the instance is terminated.",
|
|
938
|
+
}),
|
|
939
|
+
),
|
|
940
|
+
}).annotate({ identifier: "NetworkInterface_1" });
|
|
941
|
+
|
|
942
|
+
export interface AWSInstanceProps {
|
|
943
|
+
readonly Volumes?: globalThis.ReadonlyArray<Volume>;
|
|
944
|
+
readonly EnclaveOptions?: ResourceInputProperties;
|
|
945
|
+
readonly ImageId?: string;
|
|
946
|
+
readonly Tags?: ResourceInputItems;
|
|
947
|
+
readonly AdditionalInfo?: string;
|
|
948
|
+
readonly HibernationOptions?: ResourceInputProperties_1;
|
|
949
|
+
readonly LicenseSpecifications?: ResourceInputItems_1;
|
|
950
|
+
readonly MetadataOptions?: MetadataOptions;
|
|
951
|
+
readonly CpuOptions?: ResourceInputProperties_2;
|
|
952
|
+
readonly AvailabilityZone?: string;
|
|
953
|
+
readonly PrivateDnsNameOptions?: PrivateDnsNameOptions;
|
|
954
|
+
readonly HostId?:
|
|
955
|
+
| ResourceEntity<{
|
|
956
|
+
readonly provider: "aws";
|
|
957
|
+
readonly service: "ec2";
|
|
958
|
+
readonly resource: "host";
|
|
959
|
+
}>
|
|
960
|
+
| string;
|
|
961
|
+
readonly SecurityGroupIds?: globalThis.ReadonlyArray<
|
|
962
|
+
| ResourceEntity<{
|
|
963
|
+
readonly provider: "aws";
|
|
964
|
+
readonly service: "ec2";
|
|
965
|
+
readonly resource: "securitygroup";
|
|
966
|
+
}>
|
|
967
|
+
| string
|
|
968
|
+
>;
|
|
969
|
+
readonly PlacementGroupName?:
|
|
970
|
+
| ResourceEntity<{
|
|
971
|
+
readonly provider: "aws";
|
|
972
|
+
readonly service: "ec2";
|
|
973
|
+
readonly resource: "placementgroup";
|
|
974
|
+
}>
|
|
975
|
+
| string;
|
|
976
|
+
readonly SsmAssociations?: globalThis.ReadonlyArray<SsmAssociation>;
|
|
977
|
+
readonly Affinity?: ResourceInputAlternatives;
|
|
978
|
+
readonly Tenancy?: string;
|
|
979
|
+
readonly SecurityGroups?: ResourceInputItems_3;
|
|
980
|
+
readonly PrivateIpAddress?: string;
|
|
981
|
+
readonly UserData?: string;
|
|
982
|
+
readonly BlockDeviceMappings?: ResourceInputItems_4;
|
|
983
|
+
readonly IamInstanceProfile?:
|
|
984
|
+
| ResourceEntity<{
|
|
985
|
+
readonly provider: "aws";
|
|
986
|
+
readonly service: "iam";
|
|
987
|
+
readonly resource: "instanceprofile";
|
|
988
|
+
}>
|
|
989
|
+
| string;
|
|
990
|
+
readonly Ipv6Addresses?: ResourceInputItems_5;
|
|
991
|
+
readonly KernelId?: string;
|
|
992
|
+
readonly SubnetId?:
|
|
993
|
+
| ResourceEntity<{
|
|
994
|
+
readonly provider: "aws";
|
|
995
|
+
readonly service: "ec2";
|
|
996
|
+
readonly resource: "subnet";
|
|
997
|
+
}>
|
|
998
|
+
| string;
|
|
999
|
+
readonly EbsOptimized?: boolean;
|
|
1000
|
+
readonly PropagateTagsToVolumeOnCreation?: boolean;
|
|
1001
|
+
readonly ElasticGpuSpecifications?: ResourceInputItems_6;
|
|
1002
|
+
readonly ElasticInferenceAccelerators?: ResourceInputItems_7;
|
|
1003
|
+
readonly Ipv6AddressCount?: number;
|
|
1004
|
+
readonly LaunchTemplate?: LaunchTemplateSpecification;
|
|
1005
|
+
readonly NetworkInterfaces?: globalThis.ReadonlyArray<NetworkInterface>;
|
|
1006
|
+
readonly InstanceType?: string;
|
|
1007
|
+
readonly Monitoring?: boolean;
|
|
1008
|
+
readonly InstanceInitiatedShutdownBehavior?: string;
|
|
1009
|
+
readonly HostResourceGroupArn?: string;
|
|
1010
|
+
readonly DisableApiTermination?: boolean;
|
|
1011
|
+
readonly KeyName?: string;
|
|
1012
|
+
readonly RamdiskId?: string;
|
|
1013
|
+
readonly SourceDestCheck?: boolean;
|
|
1014
|
+
readonly CreditSpecification?: ResourceInputProperties_3;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
export const AWSInstanceResourceSchema = ResourceSchemaAnnotationSchema.make({
|
|
1018
|
+
provider: "aws",
|
|
1019
|
+
service: "ec2",
|
|
1020
|
+
resource: "instance",
|
|
1021
|
+
operation: "create",
|
|
1022
|
+
stateSecretOutputKeys: [],
|
|
1023
|
+
replacement: {
|
|
1024
|
+
order: "createBeforeDestroy",
|
|
1025
|
+
properties: [
|
|
1026
|
+
["AvailabilityZone"],
|
|
1027
|
+
["CpuOptions"],
|
|
1028
|
+
["ElasticGpuSpecifications"],
|
|
1029
|
+
["ElasticInferenceAccelerators"],
|
|
1030
|
+
["EnclaveOptions"],
|
|
1031
|
+
["HibernationOptions"],
|
|
1032
|
+
["HostResourceGroupArn"],
|
|
1033
|
+
["ImageId"],
|
|
1034
|
+
["Ipv6AddressCount"],
|
|
1035
|
+
["Ipv6Addresses"],
|
|
1036
|
+
["KeyName"],
|
|
1037
|
+
["LaunchTemplate"],
|
|
1038
|
+
["LicenseSpecifications"],
|
|
1039
|
+
["NetworkInterfaces"],
|
|
1040
|
+
["PlacementGroupName"],
|
|
1041
|
+
["PrivateIpAddress"],
|
|
1042
|
+
["SecurityGroups"],
|
|
1043
|
+
["SubnetId"],
|
|
1044
|
+
],
|
|
1045
|
+
},
|
|
1046
|
+
primaryIdentifier: ["/properties/InstanceId"],
|
|
1047
|
+
});
|
|
1048
|
+
|
|
1049
|
+
export const AWSInstancePropsSchema = annotateResourceSchema(
|
|
1050
|
+
Schema.Struct({
|
|
1051
|
+
Volumes: Schema.optionalKey(
|
|
1052
|
+
Schema.Array(Volume).annotate({
|
|
1053
|
+
description: "The volumes to attach to the instance.",
|
|
1054
|
+
}),
|
|
1055
|
+
),
|
|
1056
|
+
EnclaveOptions: Schema.optionalKey(ResourceInputProperties),
|
|
1057
|
+
ImageId: Schema.optionalKey(
|
|
1058
|
+
Schema.String.annotate({
|
|
1059
|
+
description:
|
|
1060
|
+
"The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template.",
|
|
1061
|
+
}),
|
|
1062
|
+
),
|
|
1063
|
+
Tags: Schema.optionalKey(ResourceInputItems),
|
|
1064
|
+
AdditionalInfo: Schema.optionalKey(
|
|
1065
|
+
Schema.String.annotate({
|
|
1066
|
+
description:
|
|
1067
|
+
"This property is reserved for internal use. If you use it, the stack fails with this error: Bad property set: [Testing this property] (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 0XXXXXX-49c7-4b40-8bcc-76885dcXXXXX).",
|
|
1068
|
+
}),
|
|
1069
|
+
),
|
|
1070
|
+
HibernationOptions: Schema.optionalKey(ResourceInputProperties_1),
|
|
1071
|
+
LicenseSpecifications: Schema.optionalKey(ResourceInputItems_1),
|
|
1072
|
+
MetadataOptions: Schema.optionalKey(MetadataOptions),
|
|
1073
|
+
CpuOptions: Schema.optionalKey(ResourceInputProperties_2),
|
|
1074
|
+
AvailabilityZone: Schema.optionalKey(
|
|
1075
|
+
Schema.String.annotate({
|
|
1076
|
+
description: "The Availability Zone of the instance.",
|
|
1077
|
+
}),
|
|
1078
|
+
),
|
|
1079
|
+
PrivateDnsNameOptions: Schema.optionalKey(PrivateDnsNameOptions),
|
|
1080
|
+
HostId: Schema.optionalKey(
|
|
1081
|
+
Schema.Union([
|
|
1082
|
+
Schema.Union([
|
|
1083
|
+
ResourceReferenceSchema(
|
|
1084
|
+
Schema.Struct({
|
|
1085
|
+
provider: Schema.Literal("aws"),
|
|
1086
|
+
service: Schema.Literal("ec2"),
|
|
1087
|
+
resource: Schema.Literal("host"),
|
|
1088
|
+
}),
|
|
1089
|
+
{
|
|
1090
|
+
value: null,
|
|
1091
|
+
outputs: [
|
|
1092
|
+
{
|
|
1093
|
+
source: ["HostId"],
|
|
1094
|
+
target: [],
|
|
1095
|
+
},
|
|
1096
|
+
],
|
|
1097
|
+
},
|
|
1098
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1099
|
+
]),
|
|
1100
|
+
Schema.String.annotate({
|
|
1101
|
+
description:
|
|
1102
|
+
"If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.",
|
|
1103
|
+
}),
|
|
1104
|
+
]),
|
|
1105
|
+
),
|
|
1106
|
+
SecurityGroupIds: Schema.optionalKey(
|
|
1107
|
+
Schema.Array(
|
|
1108
|
+
Schema.Union([
|
|
1109
|
+
Schema.Union([
|
|
1110
|
+
ResourceReferenceSchema(
|
|
1111
|
+
Schema.Struct({
|
|
1112
|
+
provider: Schema.Literal("aws"),
|
|
1113
|
+
service: Schema.Literal("ec2"),
|
|
1114
|
+
resource: Schema.Literal("securitygroup"),
|
|
1115
|
+
}),
|
|
1116
|
+
{
|
|
1117
|
+
value: null,
|
|
1118
|
+
outputs: [
|
|
1119
|
+
{
|
|
1120
|
+
source: ["Id"],
|
|
1121
|
+
target: [],
|
|
1122
|
+
},
|
|
1123
|
+
],
|
|
1124
|
+
},
|
|
1125
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1126
|
+
]),
|
|
1127
|
+
Schema.String,
|
|
1128
|
+
]),
|
|
1129
|
+
).annotate({ description: "The IDs of the security groups." }),
|
|
1130
|
+
),
|
|
1131
|
+
PlacementGroupName: Schema.optionalKey(
|
|
1132
|
+
Schema.Union([
|
|
1133
|
+
Schema.Union([
|
|
1134
|
+
ResourceReferenceSchema(
|
|
1135
|
+
Schema.Struct({
|
|
1136
|
+
provider: Schema.Literal("aws"),
|
|
1137
|
+
service: Schema.Literal("ec2"),
|
|
1138
|
+
resource: Schema.Literal("placementgroup"),
|
|
1139
|
+
}),
|
|
1140
|
+
{
|
|
1141
|
+
value: null,
|
|
1142
|
+
outputs: [
|
|
1143
|
+
{
|
|
1144
|
+
source: ["GroupName"],
|
|
1145
|
+
target: [],
|
|
1146
|
+
},
|
|
1147
|
+
],
|
|
1148
|
+
},
|
|
1149
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1150
|
+
]),
|
|
1151
|
+
Schema.String.annotate({
|
|
1152
|
+
description:
|
|
1153
|
+
"The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).",
|
|
1154
|
+
}),
|
|
1155
|
+
]),
|
|
1156
|
+
),
|
|
1157
|
+
SsmAssociations: Schema.optionalKey(
|
|
1158
|
+
Schema.Array(SsmAssociation).annotate({
|
|
1159
|
+
description:
|
|
1160
|
+
"The SSM document and parameter values in AWS Systems Manager to associate with this instance.",
|
|
1161
|
+
}),
|
|
1162
|
+
),
|
|
1163
|
+
Affinity: Schema.optionalKey(ResourceInputAlternatives),
|
|
1164
|
+
Tenancy: Schema.optionalKey(
|
|
1165
|
+
Schema.String.annotate({
|
|
1166
|
+
description:
|
|
1167
|
+
"The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.",
|
|
1168
|
+
}),
|
|
1169
|
+
),
|
|
1170
|
+
SecurityGroups: Schema.optionalKey(ResourceInputItems_3),
|
|
1171
|
+
PrivateIpAddress: Schema.optionalKey(
|
|
1172
|
+
Schema.String.annotate({
|
|
1173
|
+
description:
|
|
1174
|
+
"[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.",
|
|
1175
|
+
}),
|
|
1176
|
+
),
|
|
1177
|
+
UserData: Schema.optionalKey(
|
|
1178
|
+
Schema.String.annotate({
|
|
1179
|
+
description: "The user data to make available to the instance.",
|
|
1180
|
+
}),
|
|
1181
|
+
),
|
|
1182
|
+
BlockDeviceMappings: Schema.optionalKey(ResourceInputItems_4),
|
|
1183
|
+
IamInstanceProfile: Schema.optionalKey(
|
|
1184
|
+
Schema.Union([
|
|
1185
|
+
Schema.Union([
|
|
1186
|
+
ResourceReferenceSchema(
|
|
1187
|
+
Schema.Struct({
|
|
1188
|
+
provider: Schema.Literal("aws"),
|
|
1189
|
+
service: Schema.Literal("iam"),
|
|
1190
|
+
resource: Schema.Literal("instanceprofile"),
|
|
1191
|
+
}),
|
|
1192
|
+
{
|
|
1193
|
+
value: null,
|
|
1194
|
+
outputs: [
|
|
1195
|
+
{
|
|
1196
|
+
source: ["InstanceProfileName"],
|
|
1197
|
+
target: [],
|
|
1198
|
+
},
|
|
1199
|
+
],
|
|
1200
|
+
},
|
|
1201
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1202
|
+
]),
|
|
1203
|
+
Schema.String.annotate({ description: "The IAM instance profile." }),
|
|
1204
|
+
]),
|
|
1205
|
+
),
|
|
1206
|
+
Ipv6Addresses: Schema.optionalKey(ResourceInputItems_5),
|
|
1207
|
+
KernelId: Schema.optionalKey(
|
|
1208
|
+
Schema.String.annotate({ description: "The ID of the kernel." }),
|
|
1209
|
+
),
|
|
1210
|
+
SubnetId: Schema.optionalKey(
|
|
1211
|
+
Schema.Union([
|
|
1212
|
+
Schema.Union([
|
|
1213
|
+
ResourceReferenceSchema(
|
|
1214
|
+
Schema.Struct({
|
|
1215
|
+
provider: Schema.Literal("aws"),
|
|
1216
|
+
service: Schema.Literal("ec2"),
|
|
1217
|
+
resource: Schema.Literal("subnet"),
|
|
1218
|
+
}),
|
|
1219
|
+
{
|
|
1220
|
+
value: null,
|
|
1221
|
+
outputs: [
|
|
1222
|
+
{
|
|
1223
|
+
source: ["SubnetId"],
|
|
1224
|
+
target: [],
|
|
1225
|
+
},
|
|
1226
|
+
],
|
|
1227
|
+
},
|
|
1228
|
+
).annotate({ expected: "ResourceEntity" }),
|
|
1229
|
+
]),
|
|
1230
|
+
Schema.String.annotate({
|
|
1231
|
+
description:
|
|
1232
|
+
"[EC2-VPC] The ID of the subnet to launch the instance into.\n\n",
|
|
1233
|
+
}),
|
|
1234
|
+
]),
|
|
1235
|
+
),
|
|
1236
|
+
EbsOptimized: Schema.optionalKey(
|
|
1237
|
+
Schema.Boolean.annotate({
|
|
1238
|
+
description:
|
|
1239
|
+
"Indicates whether the instance is optimized for Amazon EBS I/O.",
|
|
1240
|
+
}),
|
|
1241
|
+
),
|
|
1242
|
+
PropagateTagsToVolumeOnCreation: Schema.optionalKey(
|
|
1243
|
+
Schema.Boolean.annotate({
|
|
1244
|
+
description:
|
|
1245
|
+
"Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch. If you specify true and you assign tags to the instance, those tags are automatically assigned to all of the volumes that you attach to the instance at launch. If you specify false, those tags are not assigned to the attached volumes.",
|
|
1246
|
+
}),
|
|
1247
|
+
),
|
|
1248
|
+
ElasticGpuSpecifications: Schema.optionalKey(ResourceInputItems_6),
|
|
1249
|
+
ElasticInferenceAccelerators: Schema.optionalKey(ResourceInputItems_7),
|
|
1250
|
+
Ipv6AddressCount: Schema.optionalKey(
|
|
1251
|
+
Schema.Number.annotate({
|
|
1252
|
+
description:
|
|
1253
|
+
"[EC2-VPC] The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.",
|
|
1254
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1255
|
+
),
|
|
1256
|
+
LaunchTemplate: Schema.optionalKey(LaunchTemplateSpecification),
|
|
1257
|
+
NetworkInterfaces: Schema.optionalKey(
|
|
1258
|
+
Schema.Array(NetworkInterface).annotate({
|
|
1259
|
+
description: "The network interfaces to associate with the instance.",
|
|
1260
|
+
}),
|
|
1261
|
+
),
|
|
1262
|
+
InstanceType: Schema.optionalKey(
|
|
1263
|
+
Schema.String.annotate({ description: "The instance type." }),
|
|
1264
|
+
),
|
|
1265
|
+
Monitoring: Schema.optionalKey(
|
|
1266
|
+
Schema.Boolean.annotate({
|
|
1267
|
+
description:
|
|
1268
|
+
"Specifies whether detailed monitoring is enabled for the instance.",
|
|
1269
|
+
}),
|
|
1270
|
+
),
|
|
1271
|
+
InstanceInitiatedShutdownBehavior: Schema.optionalKey(
|
|
1272
|
+
Schema.String.annotate({
|
|
1273
|
+
description:
|
|
1274
|
+
"Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).",
|
|
1275
|
+
}),
|
|
1276
|
+
),
|
|
1277
|
+
HostResourceGroupArn: Schema.optionalKey(
|
|
1278
|
+
Schema.String.annotate({
|
|
1279
|
+
description:
|
|
1280
|
+
"The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host.",
|
|
1281
|
+
}),
|
|
1282
|
+
),
|
|
1283
|
+
DisableApiTermination: Schema.optionalKey(
|
|
1284
|
+
Schema.Boolean.annotate({
|
|
1285
|
+
description:
|
|
1286
|
+
"If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.",
|
|
1287
|
+
}),
|
|
1288
|
+
),
|
|
1289
|
+
KeyName: Schema.optionalKey(
|
|
1290
|
+
Schema.String.annotate({ description: "The name of the key pair." }),
|
|
1291
|
+
),
|
|
1292
|
+
RamdiskId: Schema.optionalKey(
|
|
1293
|
+
Schema.String.annotate({
|
|
1294
|
+
description: "The ID of the RAM disk to select.",
|
|
1295
|
+
}),
|
|
1296
|
+
),
|
|
1297
|
+
SourceDestCheck: Schema.optionalKey(
|
|
1298
|
+
Schema.Boolean.annotate({
|
|
1299
|
+
description:
|
|
1300
|
+
"Specifies whether to enable an instance launched in a VPC to perform NAT.",
|
|
1301
|
+
}),
|
|
1302
|
+
),
|
|
1303
|
+
CreditSpecification: Schema.optionalKey(ResourceInputProperties_3),
|
|
1304
|
+
}),
|
|
1305
|
+
AWSInstanceResourceSchema,
|
|
1306
|
+
);
|
|
1307
|
+
|
|
1308
|
+
export interface AWSInstanceOutputs {
|
|
1309
|
+
readonly InstanceId?: string;
|
|
1310
|
+
readonly PrivateIp?: string;
|
|
1311
|
+
readonly PublicDnsName?: string;
|
|
1312
|
+
readonly PublicIp?: string;
|
|
1313
|
+
readonly PrivateDnsName?: string;
|
|
1314
|
+
readonly VpcId?: string;
|
|
1315
|
+
readonly State?: State;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
export const AWSInstanceOutputsSchema = Schema.Struct({
|
|
1319
|
+
InstanceId: Schema.optionalKey(
|
|
1320
|
+
Schema.String.annotate({ description: "The EC2 Instance ID." }),
|
|
1321
|
+
),
|
|
1322
|
+
PrivateIp: Schema.optionalKey(
|
|
1323
|
+
Schema.String.annotate({
|
|
1324
|
+
description:
|
|
1325
|
+
"The private IP address of the specified instance. For example: 10.24.34.0.",
|
|
1326
|
+
}),
|
|
1327
|
+
),
|
|
1328
|
+
PublicDnsName: Schema.optionalKey(
|
|
1329
|
+
Schema.String.annotate({
|
|
1330
|
+
description:
|
|
1331
|
+
"The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.",
|
|
1332
|
+
}),
|
|
1333
|
+
),
|
|
1334
|
+
PublicIp: Schema.optionalKey(
|
|
1335
|
+
Schema.String.annotate({
|
|
1336
|
+
description:
|
|
1337
|
+
"The public IP address of the specified instance. For example: 192.0.2.0.",
|
|
1338
|
+
}),
|
|
1339
|
+
),
|
|
1340
|
+
PrivateDnsName: Schema.optionalKey(
|
|
1341
|
+
Schema.String.annotate({
|
|
1342
|
+
description:
|
|
1343
|
+
"The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.",
|
|
1344
|
+
}),
|
|
1345
|
+
),
|
|
1346
|
+
VpcId: Schema.optionalKey(
|
|
1347
|
+
Schema.String.annotate({
|
|
1348
|
+
description: "The ID of the VPC that the instance is running in.",
|
|
1349
|
+
}),
|
|
1350
|
+
),
|
|
1351
|
+
State: Schema.optionalKey(State),
|
|
1352
|
+
});
|
|
1353
|
+
|
|
1354
|
+
export interface AWSInstanceRequest {
|
|
1355
|
+
readonly Volumes?: globalThis.ReadonlyArray<Volume_1>;
|
|
1356
|
+
readonly EnclaveOptions?: ResourceInputProperties;
|
|
1357
|
+
readonly ImageId?: string;
|
|
1358
|
+
readonly Tags?: ResourceInputItems;
|
|
1359
|
+
readonly AdditionalInfo?: string;
|
|
1360
|
+
readonly HibernationOptions?: ResourceInputProperties_1;
|
|
1361
|
+
readonly LicenseSpecifications?: ResourceInputItems_1;
|
|
1362
|
+
readonly MetadataOptions?: MetadataOptions;
|
|
1363
|
+
readonly CpuOptions?: ResourceInputProperties_2;
|
|
1364
|
+
readonly AvailabilityZone?: string;
|
|
1365
|
+
readonly PrivateDnsNameOptions?: PrivateDnsNameOptions;
|
|
1366
|
+
readonly HostId?: string;
|
|
1367
|
+
readonly SecurityGroupIds?: globalThis.ReadonlyArray<string>;
|
|
1368
|
+
readonly PlacementGroupName?: string;
|
|
1369
|
+
readonly SsmAssociations?: globalThis.ReadonlyArray<SsmAssociation_1>;
|
|
1370
|
+
readonly Affinity?: ResourceInputAlternatives;
|
|
1371
|
+
readonly Tenancy?: string;
|
|
1372
|
+
readonly SecurityGroups?: ResourceInputItems_3;
|
|
1373
|
+
readonly PrivateIpAddress?: string;
|
|
1374
|
+
readonly UserData?: string;
|
|
1375
|
+
readonly BlockDeviceMappings?: ResourceInputItems_4;
|
|
1376
|
+
readonly IamInstanceProfile?: string;
|
|
1377
|
+
readonly Ipv6Addresses?: ResourceInputItems_5;
|
|
1378
|
+
readonly KernelId?: string;
|
|
1379
|
+
readonly SubnetId?: string;
|
|
1380
|
+
readonly EbsOptimized?: boolean;
|
|
1381
|
+
readonly PropagateTagsToVolumeOnCreation?: boolean;
|
|
1382
|
+
readonly ElasticGpuSpecifications?: ResourceInputItems_6;
|
|
1383
|
+
readonly ElasticInferenceAccelerators?: ResourceInputItems_7;
|
|
1384
|
+
readonly Ipv6AddressCount?: number;
|
|
1385
|
+
readonly LaunchTemplate?: LaunchTemplateSpecification_1;
|
|
1386
|
+
readonly NetworkInterfaces?: globalThis.ReadonlyArray<NetworkInterface_1>;
|
|
1387
|
+
readonly InstanceType?: string;
|
|
1388
|
+
readonly Monitoring?: boolean;
|
|
1389
|
+
readonly InstanceInitiatedShutdownBehavior?: string;
|
|
1390
|
+
readonly HostResourceGroupArn?: string;
|
|
1391
|
+
readonly DisableApiTermination?: boolean;
|
|
1392
|
+
readonly KeyName?: string;
|
|
1393
|
+
readonly RamdiskId?: string;
|
|
1394
|
+
readonly SourceDestCheck?: boolean;
|
|
1395
|
+
readonly CreditSpecification?: ResourceInputProperties_3;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
export const AWSInstanceRequestSchema = Schema.Struct({
|
|
1399
|
+
Volumes: Schema.optionalKey(
|
|
1400
|
+
Schema.Array(Volume_1).annotate({
|
|
1401
|
+
description: "The volumes to attach to the instance.",
|
|
1402
|
+
}),
|
|
1403
|
+
),
|
|
1404
|
+
EnclaveOptions: Schema.optionalKey(ResourceInputProperties),
|
|
1405
|
+
ImageId: Schema.optionalKey(
|
|
1406
|
+
Schema.String.annotate({
|
|
1407
|
+
description:
|
|
1408
|
+
"The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template.",
|
|
1409
|
+
}),
|
|
1410
|
+
),
|
|
1411
|
+
Tags: Schema.optionalKey(ResourceInputItems),
|
|
1412
|
+
AdditionalInfo: Schema.optionalKey(
|
|
1413
|
+
Schema.String.annotate({
|
|
1414
|
+
description:
|
|
1415
|
+
"This property is reserved for internal use. If you use it, the stack fails with this error: Bad property set: [Testing this property] (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 0XXXXXX-49c7-4b40-8bcc-76885dcXXXXX).",
|
|
1416
|
+
}),
|
|
1417
|
+
),
|
|
1418
|
+
HibernationOptions: Schema.optionalKey(ResourceInputProperties_1),
|
|
1419
|
+
LicenseSpecifications: Schema.optionalKey(ResourceInputItems_1),
|
|
1420
|
+
MetadataOptions: Schema.optionalKey(MetadataOptions),
|
|
1421
|
+
CpuOptions: Schema.optionalKey(ResourceInputProperties_2),
|
|
1422
|
+
AvailabilityZone: Schema.optionalKey(
|
|
1423
|
+
Schema.String.annotate({
|
|
1424
|
+
description: "The Availability Zone of the instance.",
|
|
1425
|
+
}),
|
|
1426
|
+
),
|
|
1427
|
+
PrivateDnsNameOptions: Schema.optionalKey(PrivateDnsNameOptions),
|
|
1428
|
+
HostId: Schema.optionalKey(
|
|
1429
|
+
Schema.String.annotate({
|
|
1430
|
+
description:
|
|
1431
|
+
"If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.",
|
|
1432
|
+
}),
|
|
1433
|
+
),
|
|
1434
|
+
SecurityGroupIds: Schema.optionalKey(
|
|
1435
|
+
Schema.Array(Schema.String).annotate({
|
|
1436
|
+
description: "The IDs of the security groups.",
|
|
1437
|
+
}),
|
|
1438
|
+
),
|
|
1439
|
+
PlacementGroupName: Schema.optionalKey(
|
|
1440
|
+
Schema.String.annotate({
|
|
1441
|
+
description:
|
|
1442
|
+
"The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).",
|
|
1443
|
+
}),
|
|
1444
|
+
),
|
|
1445
|
+
SsmAssociations: Schema.optionalKey(
|
|
1446
|
+
Schema.Array(SsmAssociation_1).annotate({
|
|
1447
|
+
description:
|
|
1448
|
+
"The SSM document and parameter values in AWS Systems Manager to associate with this instance.",
|
|
1449
|
+
}),
|
|
1450
|
+
),
|
|
1451
|
+
Affinity: Schema.optionalKey(ResourceInputAlternatives),
|
|
1452
|
+
Tenancy: Schema.optionalKey(
|
|
1453
|
+
Schema.String.annotate({
|
|
1454
|
+
description:
|
|
1455
|
+
"The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.",
|
|
1456
|
+
}),
|
|
1457
|
+
),
|
|
1458
|
+
SecurityGroups: Schema.optionalKey(ResourceInputItems_3),
|
|
1459
|
+
PrivateIpAddress: Schema.optionalKey(
|
|
1460
|
+
Schema.String.annotate({
|
|
1461
|
+
description:
|
|
1462
|
+
"[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.",
|
|
1463
|
+
}),
|
|
1464
|
+
),
|
|
1465
|
+
UserData: Schema.optionalKey(
|
|
1466
|
+
Schema.String.annotate({
|
|
1467
|
+
description: "The user data to make available to the instance.",
|
|
1468
|
+
}),
|
|
1469
|
+
),
|
|
1470
|
+
BlockDeviceMappings: Schema.optionalKey(ResourceInputItems_4),
|
|
1471
|
+
IamInstanceProfile: Schema.optionalKey(
|
|
1472
|
+
Schema.String.annotate({ description: "The IAM instance profile." }),
|
|
1473
|
+
),
|
|
1474
|
+
Ipv6Addresses: Schema.optionalKey(ResourceInputItems_5),
|
|
1475
|
+
KernelId: Schema.optionalKey(
|
|
1476
|
+
Schema.String.annotate({ description: "The ID of the kernel." }),
|
|
1477
|
+
),
|
|
1478
|
+
SubnetId: Schema.optionalKey(
|
|
1479
|
+
Schema.String.annotate({
|
|
1480
|
+
description:
|
|
1481
|
+
"[EC2-VPC] The ID of the subnet to launch the instance into.\n\n",
|
|
1482
|
+
}),
|
|
1483
|
+
),
|
|
1484
|
+
EbsOptimized: Schema.optionalKey(
|
|
1485
|
+
Schema.Boolean.annotate({
|
|
1486
|
+
description:
|
|
1487
|
+
"Indicates whether the instance is optimized for Amazon EBS I/O.",
|
|
1488
|
+
}),
|
|
1489
|
+
),
|
|
1490
|
+
PropagateTagsToVolumeOnCreation: Schema.optionalKey(
|
|
1491
|
+
Schema.Boolean.annotate({
|
|
1492
|
+
description:
|
|
1493
|
+
"Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch. If you specify true and you assign tags to the instance, those tags are automatically assigned to all of the volumes that you attach to the instance at launch. If you specify false, those tags are not assigned to the attached volumes.",
|
|
1494
|
+
}),
|
|
1495
|
+
),
|
|
1496
|
+
ElasticGpuSpecifications: Schema.optionalKey(ResourceInputItems_6),
|
|
1497
|
+
ElasticInferenceAccelerators: Schema.optionalKey(ResourceInputItems_7),
|
|
1498
|
+
Ipv6AddressCount: Schema.optionalKey(
|
|
1499
|
+
Schema.Number.annotate({
|
|
1500
|
+
description:
|
|
1501
|
+
"[EC2-VPC] The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.",
|
|
1502
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1503
|
+
),
|
|
1504
|
+
LaunchTemplate: Schema.optionalKey(LaunchTemplateSpecification_1),
|
|
1505
|
+
NetworkInterfaces: Schema.optionalKey(
|
|
1506
|
+
Schema.Array(NetworkInterface_1).annotate({
|
|
1507
|
+
description: "The network interfaces to associate with the instance.",
|
|
1508
|
+
}),
|
|
1509
|
+
),
|
|
1510
|
+
InstanceType: Schema.optionalKey(
|
|
1511
|
+
Schema.String.annotate({ description: "The instance type." }),
|
|
1512
|
+
),
|
|
1513
|
+
Monitoring: Schema.optionalKey(
|
|
1514
|
+
Schema.Boolean.annotate({
|
|
1515
|
+
description:
|
|
1516
|
+
"Specifies whether detailed monitoring is enabled for the instance.",
|
|
1517
|
+
}),
|
|
1518
|
+
),
|
|
1519
|
+
InstanceInitiatedShutdownBehavior: Schema.optionalKey(
|
|
1520
|
+
Schema.String.annotate({
|
|
1521
|
+
description:
|
|
1522
|
+
"Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).",
|
|
1523
|
+
}),
|
|
1524
|
+
),
|
|
1525
|
+
HostResourceGroupArn: Schema.optionalKey(
|
|
1526
|
+
Schema.String.annotate({
|
|
1527
|
+
description:
|
|
1528
|
+
"The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host.",
|
|
1529
|
+
}),
|
|
1530
|
+
),
|
|
1531
|
+
DisableApiTermination: Schema.optionalKey(
|
|
1532
|
+
Schema.Boolean.annotate({
|
|
1533
|
+
description:
|
|
1534
|
+
"If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.",
|
|
1535
|
+
}),
|
|
1536
|
+
),
|
|
1537
|
+
KeyName: Schema.optionalKey(
|
|
1538
|
+
Schema.String.annotate({ description: "The name of the key pair." }),
|
|
1539
|
+
),
|
|
1540
|
+
RamdiskId: Schema.optionalKey(
|
|
1541
|
+
Schema.String.annotate({
|
|
1542
|
+
description: "The ID of the RAM disk to select.",
|
|
1543
|
+
}),
|
|
1544
|
+
),
|
|
1545
|
+
SourceDestCheck: Schema.optionalKey(
|
|
1546
|
+
Schema.Boolean.annotate({
|
|
1547
|
+
description:
|
|
1548
|
+
"Specifies whether to enable an instance launched in a VPC to perform NAT.",
|
|
1549
|
+
}),
|
|
1550
|
+
),
|
|
1551
|
+
CreditSpecification: Schema.optionalKey(ResourceInputProperties_3),
|
|
1552
|
+
});
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* The AWSInstanceRelationshipIssues array lists inputs that can use several outputs
|
|
1556
|
+
* from one source type. Each input retains its provider value until a reviewed
|
|
1557
|
+
* mapping chooses an output.
|
|
1558
|
+
*/
|
|
1559
|
+
export const AWSInstanceRelationshipIssues = [
|
|
1560
|
+
{
|
|
1561
|
+
propertyPath: ["BlockDeviceMappings", "*", "Ebs", "KmsKeyId"],
|
|
1562
|
+
sourceType: "AWS::KMS::Key",
|
|
1563
|
+
sourceProperties: [["Arn"], ["KeyId"]],
|
|
1564
|
+
message:
|
|
1565
|
+
"Choose one of the permitted source properties before using a resource reference",
|
|
1566
|
+
},
|
|
1567
|
+
];
|
|
1568
|
+
|
|
1569
|
+
export const AWSInstanceResourceTypeSchema = Schema.Struct({
|
|
1570
|
+
provider: Schema.Literal("aws"),
|
|
1571
|
+
service: Schema.Literal("ec2"),
|
|
1572
|
+
resource: Schema.Literal("instance"),
|
|
1573
|
+
});
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* The AWSInstanceResource class retains its owning stack across declarations.
|
|
1577
|
+
* Applied output properties are ordinary values maintained by the lifecycle.
|
|
1578
|
+
*/
|
|
1579
|
+
export class AWSInstanceResource<
|
|
1580
|
+
Props = AWSInstanceProps,
|
|
1581
|
+
> extends ResourceEntity<{
|
|
1582
|
+
readonly provider: "aws";
|
|
1583
|
+
readonly service: "ec2";
|
|
1584
|
+
readonly resource: "instance";
|
|
1585
|
+
}> {
|
|
1586
|
+
constructor(
|
|
1587
|
+
key: ResourceKey,
|
|
1588
|
+
readonly props: Props,
|
|
1589
|
+
private readonly binding?: ResourceOutputBinding,
|
|
1590
|
+
) {
|
|
1591
|
+
super({
|
|
1592
|
+
key,
|
|
1593
|
+
resourceType: {
|
|
1594
|
+
provider: "aws",
|
|
1595
|
+
service: "ec2",
|
|
1596
|
+
resource: "instance",
|
|
1597
|
+
},
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
1603
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
1604
|
+
*/
|
|
1605
|
+
get InstanceId(): Required<AWSInstanceOutputs>["InstanceId"] {
|
|
1606
|
+
const value: Required<AWSInstanceOutputs>["InstanceId"] =
|
|
1607
|
+
ResourceOutputBinding.value(
|
|
1608
|
+
this.binding,
|
|
1609
|
+
this.key,
|
|
1610
|
+
"InstanceId",
|
|
1611
|
+
Schema.requiredKey(AWSInstanceOutputsSchema.fields.InstanceId),
|
|
1612
|
+
);
|
|
1613
|
+
return value;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
1618
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
1619
|
+
*/
|
|
1620
|
+
get PrivateIp(): Required<AWSInstanceOutputs>["PrivateIp"] {
|
|
1621
|
+
const value: Required<AWSInstanceOutputs>["PrivateIp"] =
|
|
1622
|
+
ResourceOutputBinding.value(
|
|
1623
|
+
this.binding,
|
|
1624
|
+
this.key,
|
|
1625
|
+
"PrivateIp",
|
|
1626
|
+
Schema.requiredKey(AWSInstanceOutputsSchema.fields.PrivateIp),
|
|
1627
|
+
);
|
|
1628
|
+
return value;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
1633
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
1634
|
+
*/
|
|
1635
|
+
get PublicDnsName(): Required<AWSInstanceOutputs>["PublicDnsName"] {
|
|
1636
|
+
const value: Required<AWSInstanceOutputs>["PublicDnsName"] =
|
|
1637
|
+
ResourceOutputBinding.value(
|
|
1638
|
+
this.binding,
|
|
1639
|
+
this.key,
|
|
1640
|
+
"PublicDnsName",
|
|
1641
|
+
Schema.requiredKey(AWSInstanceOutputsSchema.fields.PublicDnsName),
|
|
1642
|
+
);
|
|
1643
|
+
return value;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
1648
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
1649
|
+
*/
|
|
1650
|
+
get PublicIp(): Required<AWSInstanceOutputs>["PublicIp"] {
|
|
1651
|
+
const value: Required<AWSInstanceOutputs>["PublicIp"] =
|
|
1652
|
+
ResourceOutputBinding.value(
|
|
1653
|
+
this.binding,
|
|
1654
|
+
this.key,
|
|
1655
|
+
"PublicIp",
|
|
1656
|
+
Schema.requiredKey(AWSInstanceOutputsSchema.fields.PublicIp),
|
|
1657
|
+
);
|
|
1658
|
+
return value;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
1663
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
1664
|
+
*/
|
|
1665
|
+
get PrivateDnsName(): Required<AWSInstanceOutputs>["PrivateDnsName"] {
|
|
1666
|
+
const value: Required<AWSInstanceOutputs>["PrivateDnsName"] =
|
|
1667
|
+
ResourceOutputBinding.value(
|
|
1668
|
+
this.binding,
|
|
1669
|
+
this.key,
|
|
1670
|
+
"PrivateDnsName",
|
|
1671
|
+
Schema.requiredKey(AWSInstanceOutputsSchema.fields.PrivateDnsName),
|
|
1672
|
+
);
|
|
1673
|
+
return value;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
1678
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
1679
|
+
*/
|
|
1680
|
+
get VpcId(): Required<AWSInstanceOutputs>["VpcId"] {
|
|
1681
|
+
const value: Required<AWSInstanceOutputs>["VpcId"] =
|
|
1682
|
+
ResourceOutputBinding.value(
|
|
1683
|
+
this.binding,
|
|
1684
|
+
this.key,
|
|
1685
|
+
"VpcId",
|
|
1686
|
+
Schema.requiredKey(AWSInstanceOutputsSchema.fields.VpcId),
|
|
1687
|
+
);
|
|
1688
|
+
return value;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
1693
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
1694
|
+
*/
|
|
1695
|
+
get State(): Required<AWSInstanceOutputs>["State"] {
|
|
1696
|
+
const value: Required<AWSInstanceOutputs>["State"] =
|
|
1697
|
+
ResourceOutputBinding.value(
|
|
1698
|
+
this.binding,
|
|
1699
|
+
this.key,
|
|
1700
|
+
"State",
|
|
1701
|
+
Schema.requiredKey(AWSInstanceOutputsSchema.fields.State),
|
|
1702
|
+
);
|
|
1703
|
+
return value;
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Callers must validate properties before constructing the declaration.
|
|
1709
|
+
* Compatible resources can depend on it before apply supplies provider values.
|
|
1710
|
+
* Reading applied outputs requires a binding to the owning stack.
|
|
1711
|
+
*/
|
|
1712
|
+
export function createAWSInstanceDeclaration<Props>(
|
|
1713
|
+
key: ResourceKey,
|
|
1714
|
+
props: Props,
|
|
1715
|
+
binding?: ResourceOutputBinding,
|
|
1716
|
+
): AWSInstanceResource<Props> {
|
|
1717
|
+
const resource: AWSInstanceResource<Props> = new AWSInstanceResource<Props>(
|
|
1718
|
+
key,
|
|
1719
|
+
props,
|
|
1720
|
+
binding,
|
|
1721
|
+
);
|
|
1722
|
+
|
|
1723
|
+
return resource;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* The AWSInstance resource factory registers a validated declaration in the
|
|
1728
|
+
* stack graph. Its outputs become available after apply saves the resource.
|
|
1729
|
+
*/
|
|
1730
|
+
export const AWSInstance = Effect.fn("AWSInstance")(function* (input: {
|
|
1731
|
+
logicalId: string;
|
|
1732
|
+
props: AWSInstanceProps;
|
|
1733
|
+
}) {
|
|
1734
|
+
const graph = yield* ResourceGraphBuilder;
|
|
1735
|
+
|
|
1736
|
+
const key: ResourceKey = { logicalId: input.logicalId };
|
|
1737
|
+
|
|
1738
|
+
const declaration = yield* graph.resource(key);
|
|
1739
|
+
|
|
1740
|
+
const props = yield* Schema.decodeEffect(AWSInstancePropsSchema)(input.props);
|
|
1741
|
+
|
|
1742
|
+
yield* declaration.registerEntity(AWSInstanceResourceTypeSchema, {
|
|
1743
|
+
propsSchema: AWSInstancePropsSchema,
|
|
1744
|
+
requestSchema: AWSInstanceRequestSchema,
|
|
1745
|
+
outputsSchema: AWSInstanceOutputsSchema,
|
|
1746
|
+
props,
|
|
1747
|
+
});
|
|
1748
|
+
|
|
1749
|
+
const resource: AWSInstanceResource = createAWSInstanceDeclaration(
|
|
1750
|
+
key,
|
|
1751
|
+
props,
|
|
1752
|
+
declaration.outputs,
|
|
1753
|
+
);
|
|
1754
|
+
|
|
1755
|
+
return resource;
|
|
1756
|
+
});
|