cdk-lambda-subminute 2.0.442 → 2.0.443
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/.jsii +96 -7
- package/README.md +4 -4
- package/lib/cdk-lambda-subminute.js +5 -5
- package/lib/demo/typescript/typescript-stack.js +2 -2
- package/lib/index.js +7 -3
- package/lib/resources/iterator/iterator_agent.js +3 -2
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.examples.json +196 -0
- package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.min.json +254 -111
- package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/account-2021-02-01.min.json +101 -19
- package/node_modules/aws-sdk/apis/acm-2015-12-08.min.json +7 -1
- package/node_modules/aws-sdk/apis/acm-pca-2017-08-22.min.json +20 -13
- package/node_modules/aws-sdk/apis/acm-pca-2017-08-22.paginators.json +4 -4
- package/node_modules/aws-sdk/apis/acm-pca-2017-08-22.waiters2.json +62 -59
- package/node_modules/aws-sdk/apis/amplify-2017-07-25.min.json +3 -0
- package/node_modules/aws-sdk/apis/apigateway-2015-07-09.min.json +7 -1
- package/node_modules/aws-sdk/apis/application-autoscaling-2016-02-06.min.json +7 -1
- package/node_modules/aws-sdk/apis/application-signals-2024-04-15.min.json +975 -0
- package/node_modules/aws-sdk/apis/application-signals-2024-04-15.paginators.json +34 -0
- package/node_modules/aws-sdk/apis/apptest-2022-12-06.min.json +1917 -0
- package/node_modules/aws-sdk/apis/apptest-2022-12-06.paginators.json +40 -0
- package/node_modules/aws-sdk/apis/apptest-2022-12-06.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/arc-zonal-shift-2022-10-30.min.json +62 -10
- package/node_modules/aws-sdk/apis/artifact-2018-05-10.examples.json +113 -0
- package/node_modules/aws-sdk/apis/artifact-2018-05-10.min.json +47 -41
- package/node_modules/aws-sdk/apis/artifact-2018-05-10.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/athena-2017-05-18.min.json +7 -1
- package/node_modules/aws-sdk/apis/auditmanager-2017-07-25.min.json +57 -38
- package/node_modules/aws-sdk/apis/autoscaling-2011-01-01.min.json +7 -1
- package/node_modules/aws-sdk/apis/b2bi-2022-06-23.min.json +8 -1
- package/node_modules/aws-sdk/apis/batch-2016-08-10.min.json +115 -60
- package/node_modules/aws-sdk/apis/bedrock-2023-04-20.min.json +140 -86
- package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.min.json +2122 -231
- package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.paginators.json +24 -0
- package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.min.json +809 -190
- package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.min.json +898 -44
- package/node_modules/aws-sdk/apis/budgets-2016-10-20.min.json +102 -21
- package/node_modules/aws-sdk/apis/chatbot-2017-10-11.min.json +138 -24
- package/node_modules/aws-sdk/apis/chime-sdk-media-pipelines-2021-07-15.min.json +10 -1
- package/node_modules/aws-sdk/apis/chime-sdk-voice-2022-08-03.min.json +6 -2
- package/node_modules/aws-sdk/apis/cloudformation-2010-05-15.min.json +48 -43
- package/node_modules/aws-sdk/apis/cloudfront-2020-05-31.min.json +7 -1
- package/node_modules/aws-sdk/apis/cloudhsmv2-2017-04-28.min.json +79 -20
- package/node_modules/aws-sdk/apis/cloudtrail-2013-11-01.min.json +44 -24
- package/node_modules/aws-sdk/apis/codeartifact-2018-09-22.min.json +7 -1
- package/node_modules/aws-sdk/apis/codebuild-2016-10-06.min.json +80 -38
- package/node_modules/aws-sdk/apis/codedeploy-2014-10-06.min.json +7 -1
- package/node_modules/aws-sdk/apis/codeguru-security-2018-05-10.min.json +6 -0
- package/node_modules/aws-sdk/apis/codepipeline-2015-07-09.min.json +4 -1
- package/node_modules/aws-sdk/apis/cognito-identity-2014-06-30.min.json +23 -5
- package/node_modules/aws-sdk/apis/cognito-idp-2016-04-18.min.json +111 -27
- package/node_modules/aws-sdk/apis/compute-optimizer-2019-11-01.min.json +447 -134
- package/node_modules/aws-sdk/apis/config-2014-11-12.min.json +7 -1
- package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +1266 -499
- package/node_modules/aws-sdk/apis/connect-2017-08-08.paginators.json +24 -0
- package/node_modules/aws-sdk/apis/connectcases-2022-10-03.min.json +205 -63
- package/node_modules/aws-sdk/apis/controltower-2018-05-10.min.json +150 -5
- package/node_modules/aws-sdk/apis/controltower-2018-05-10.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.min.json +310 -262
- package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/cur-2017-01-06.min.json +7 -1
- package/node_modules/aws-sdk/apis/customer-profiles-2020-08-15.min.json +52 -25
- package/node_modules/aws-sdk/apis/datasync-2018-11-09.min.json +3 -0
- package/node_modules/aws-sdk/apis/datazone-2018-05-10.min.json +1064 -444
- package/node_modules/aws-sdk/apis/datazone-2018-05-10.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/devicefarm-2015-06-23.min.json +7 -1
- package/node_modules/aws-sdk/apis/directconnect-2012-10-25.min.json +7 -1
- package/node_modules/aws-sdk/apis/discovery-2015-11-01.min.json +3 -0
- package/node_modules/aws-sdk/apis/dms-2016-01-01.min.json +7 -1
- package/node_modules/aws-sdk/apis/docdb-2014-10-31.min.json +7 -1
- package/node_modules/aws-sdk/apis/ds-2015-04-16.min.json +7 -1
- package/node_modules/aws-sdk/apis/dynamodb-2011-12-05.min.json +7 -1
- package/node_modules/aws-sdk/apis/dynamodb-2012-08-10.min.json +256 -181
- package/node_modules/aws-sdk/apis/ec2-2016-11-15.min.json +397 -283
- package/node_modules/aws-sdk/apis/ecr-2015-09-21.min.json +7 -1
- package/node_modules/aws-sdk/apis/ecs-2014-11-13.min.json +290 -256
- package/node_modules/aws-sdk/apis/eks-2017-11-01.min.json +151 -84
- package/node_modules/aws-sdk/apis/elasticache-2015-02-02.min.json +7 -1
- package/node_modules/aws-sdk/apis/elasticbeanstalk-2010-12-01.min.json +7 -1
- package/node_modules/aws-sdk/apis/elasticfilesystem-2015-02-01.min.json +7 -1
- package/node_modules/aws-sdk/apis/elasticloadbalancingv2-2015-12-01.min.json +3 -0
- package/node_modules/aws-sdk/apis/elasticmapreduce-2009-03-31.min.json +15 -3
- package/node_modules/aws-sdk/apis/elastictranscoder-2012-09-25.min.json +7 -1
- package/node_modules/aws-sdk/apis/email-2010-12-01.min.json +7 -1
- package/node_modules/aws-sdk/apis/emr-serverless-2021-07-13.min.json +172 -14
- package/node_modules/aws-sdk/apis/emr-serverless-2021-07-13.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/es-2015-01-01.min.json +7 -1
- package/node_modules/aws-sdk/apis/eventbridge-2015-10-07.min.json +87 -28
- package/node_modules/aws-sdk/apis/firehose-2015-08-04.min.json +209 -160
- package/node_modules/aws-sdk/apis/fms-2018-01-01.min.json +63 -59
- package/node_modules/aws-sdk/apis/fsx-2018-03-01.min.json +206 -164
- package/node_modules/aws-sdk/apis/gamelift-2015-10-01.min.json +7 -1
- package/node_modules/aws-sdk/apis/globalaccelerator-2018-08-08.min.json +13 -1
- package/node_modules/aws-sdk/apis/glue-2017-03-31.min.json +886 -574
- package/node_modules/aws-sdk/apis/glue-2017-03-31.paginators.json +22 -8
- package/node_modules/aws-sdk/apis/grafana-2020-08-18.min.json +317 -15
- package/node_modules/aws-sdk/apis/grafana-2020-08-18.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/greengrassv2-2020-11-30.min.json +17 -3
- package/node_modules/aws-sdk/apis/groundstation-2019-05-23.min.json +7 -1
- package/node_modules/aws-sdk/apis/guardduty-2017-11-28.min.json +429 -124
- package/node_modules/aws-sdk/apis/imagebuilder-2019-12-02.min.json +3 -0
- package/node_modules/aws-sdk/apis/inspector2-2020-06-08.min.json +122 -96
- package/node_modules/aws-sdk/apis/iotfleetwise-2021-06-17.min.json +18 -10
- package/node_modules/aws-sdk/apis/iottwinmaker-2021-11-29.min.json +3 -1
- package/node_modules/aws-sdk/apis/iotwireless-2020-11-22.min.json +7 -1
- package/node_modules/aws-sdk/apis/ivs-realtime-2020-07-14.min.json +396 -242
- package/node_modules/aws-sdk/apis/ivs-realtime-2020-07-14.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/ivs-realtime-2020-07-14.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/kafka-2018-11-14.min.json +36 -6
- package/node_modules/aws-sdk/apis/kinesisanalyticsv2-2018-05-23.min.json +266 -110
- package/node_modules/aws-sdk/apis/kinesisanalyticsv2-2018-05-23.paginators.json +24 -0
- package/node_modules/aws-sdk/apis/kms-2014-11-01.examples.json +31 -0
- package/node_modules/aws-sdk/apis/kms-2014-11-01.min.json +79 -23
- package/node_modules/aws-sdk/apis/lakeformation-2017-03-31.min.json +43 -25
- package/node_modules/aws-sdk/apis/launch-wizard-2018-05-10.min.json +159 -0
- package/node_modules/aws-sdk/apis/license-manager-linux-subscriptions-2018-05-10.min.json +236 -16
- package/node_modules/aws-sdk/apis/license-manager-linux-subscriptions-2018-05-10.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/lightsail-2016-11-28.min.json +11 -2
- package/node_modules/aws-sdk/apis/location-2020-11-19.min.json +1036 -754
- package/node_modules/aws-sdk/apis/location-2020-11-19.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/macie2-2020-01-01.min.json +254 -143
- package/node_modules/aws-sdk/apis/macie2-2020-01-01.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/mailmanager-2023-10-17.min.json +1836 -0
- package/node_modules/aws-sdk/apis/mailmanager-2023-10-17.paginators.json +58 -0
- package/node_modules/aws-sdk/apis/managedblockchain-2018-09-24.min.json +3 -0
- package/node_modules/aws-sdk/apis/mediaconnect-2018-11-14.min.json +106 -94
- package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +208 -131
- package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/medialive-2017-10-14.min.json +367 -364
- package/node_modules/aws-sdk/apis/mediapackagev2-2022-12-25.examples.json +1271 -0
- package/node_modules/aws-sdk/apis/mediapackagev2-2022-12-25.min.json +108 -71
- package/node_modules/aws-sdk/apis/medical-imaging-2023-07-19.min.json +8 -5
- package/node_modules/aws-sdk/apis/metadata.json +20 -9
- package/node_modules/aws-sdk/apis/mq-2017-11-27.min.json +4 -4
- package/node_modules/aws-sdk/apis/mwaa-2020-07-01.min.json +178 -158
- package/node_modules/aws-sdk/apis/networkmanager-2019-07-05.min.json +320 -176
- package/node_modules/aws-sdk/apis/omics-2022-11-28.min.json +36 -22
- package/node_modules/aws-sdk/apis/opensearch-2021-01-01.min.json +190 -115
- package/node_modules/aws-sdk/apis/opsworks-2013-02-18.min.json +3 -0
- package/node_modules/aws-sdk/apis/organizations-2016-11-28.min.json +7 -1
- package/node_modules/aws-sdk/apis/osis-2022-01-01.min.json +77 -28
- package/node_modules/aws-sdk/apis/payment-cryptography-2021-09-14.min.json +10 -1
- package/node_modules/aws-sdk/apis/payment-cryptography-data-2022-02-03.min.json +544 -383
- package/node_modules/aws-sdk/apis/payment-cryptography-data-2022-02-03.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/pca-connector-scep-2018-05-10.examples.json +5 -0
- package/node_modules/aws-sdk/apis/pca-connector-scep-2018-05-10.min.json +456 -0
- package/node_modules/aws-sdk/apis/pca-connector-scep-2018-05-10.paginators.json +16 -0
- package/node_modules/aws-sdk/apis/pca-connector-scep-2018-05-10.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/personalize-2018-05-22.min.json +153 -44
- package/node_modules/aws-sdk/apis/personalize-runtime-2018-05-22.min.json +9 -1
- package/node_modules/aws-sdk/apis/pi-2018-02-27.min.json +28 -18
- package/node_modules/aws-sdk/apis/pinpoint-2016-12-01.min.json +403 -378
- package/node_modules/aws-sdk/apis/pinpoint-sms-voice-v2-2022-03-31.min.json +521 -99
- package/node_modules/aws-sdk/apis/pinpoint-sms-voice-v2-2022-03-31.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/pipes-2015-10-07.min.json +632 -555
- package/node_modules/aws-sdk/apis/pipes-2015-10-07.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/polly-2016-06-10.min.json +7 -1
- package/node_modules/aws-sdk/apis/qapps-2023-11-27.examples.json +583 -0
- package/node_modules/aws-sdk/apis/qapps-2023-11-27.min.json +1312 -0
- package/node_modules/aws-sdk/apis/qapps-2023-11-27.paginators.json +16 -0
- package/node_modules/aws-sdk/apis/qapps-2023-11-27.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.examples.json +2 -3
- package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.min.json +813 -689
- package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.paginators.json +1 -1
- package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/qconnect-2020-10-19.min.json +335 -108
- package/node_modules/aws-sdk/apis/qconnect-2020-10-19.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/quicksight-2018-04-01.min.json +2113 -1354
- package/node_modules/aws-sdk/apis/rds-2013-01-10.min.json +4 -1
- package/node_modules/aws-sdk/apis/rds-2013-02-12.min.json +4 -1
- package/node_modules/aws-sdk/apis/rds-2013-09-09.min.json +4 -1
- package/node_modules/aws-sdk/apis/rds-2014-09-01.min.json +4 -1
- package/node_modules/aws-sdk/apis/rds-2014-10-31.min.json +25 -10
- package/node_modules/aws-sdk/apis/redshift-2012-12-01.min.json +7 -1
- package/node_modules/aws-sdk/apis/redshift-serverless-2021-04-21.min.json +7 -1
- package/node_modules/aws-sdk/apis/rekognition-2016-06-27.min.json +15 -3
- package/node_modules/aws-sdk/apis/resiliencehub-2020-04-30.min.json +63 -14
- package/node_modules/aws-sdk/apis/resiliencehub-2020-04-30.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/route53domains-2014-05-15.min.json +7 -1
- package/node_modules/aws-sdk/apis/route53profiles-2018-05-10.min.json +3 -0
- package/node_modules/aws-sdk/apis/route53resolver-2018-04-01.min.json +62 -53
- package/node_modules/aws-sdk/apis/s3-2006-03-01.examples.json +76 -76
- package/node_modules/aws-sdk/apis/s3-2006-03-01.min.json +46 -5
- package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.min.json +1958 -1211
- package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/secretsmanager-2017-10-17.min.json +11 -1
- package/node_modules/aws-sdk/apis/securityhub-2018-10-26.min.json +7 -1
- package/node_modules/aws-sdk/apis/securitylake-2018-05-10.min.json +7 -1
- package/node_modules/aws-sdk/apis/sesv2-2019-09-27.min.json +148 -136
- package/node_modules/aws-sdk/apis/shield-2016-06-02.min.json +7 -1
- package/node_modules/aws-sdk/apis/signer-2017-08-25.min.json +3 -0
- package/node_modules/aws-sdk/apis/snowball-2016-06-30.min.json +7 -1
- package/node_modules/aws-sdk/apis/sns-2010-03-31.min.json +7 -1
- package/node_modules/aws-sdk/apis/sqs-2012-11-05.min.json +24 -14
- package/node_modules/aws-sdk/apis/ssm-2014-11-06.min.json +14 -3
- package/node_modules/aws-sdk/apis/ssm-sap-2018-05-10.min.json +95 -0
- package/node_modules/aws-sdk/apis/ssm-sap-2018-05-10.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/sso-oidc-2019-06-10.examples.json +9 -0
- package/node_modules/aws-sdk/apis/sso-oidc-2019-06-10.min.json +32 -9
- package/node_modules/aws-sdk/apis/states-2016-11-23.min.json +4 -1
- package/node_modules/aws-sdk/apis/storagegateway-2013-06-30.min.json +30 -14
- package/node_modules/aws-sdk/apis/swf-2012-01-25.min.json +104 -68
- package/node_modules/aws-sdk/apis/taxsettings-2018-05-10.examples.json +5 -0
- package/node_modules/aws-sdk/apis/taxsettings-2018-05-10.min.json +658 -0
- package/node_modules/aws-sdk/apis/taxsettings-2018-05-10.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/timestream-query-2018-11-01.min.json +71 -23
- package/node_modules/aws-sdk/apis/transcribe-2017-10-26.min.json +101 -76
- package/node_modules/aws-sdk/apis/transfer-2018-11-05.min.json +19 -8
- package/node_modules/aws-sdk/apis/trustedadvisor-2022-09-15.min.json +107 -46
- package/node_modules/aws-sdk/apis/verifiedpermissions-2021-12-01.min.json +345 -83
- package/node_modules/aws-sdk/apis/waf-2015-08-24.min.json +7 -1
- package/node_modules/aws-sdk/apis/wafv2-2019-07-29.min.json +46 -33
- package/node_modules/aws-sdk/apis/workspaces-2015-04-08.min.json +513 -76
- package/node_modules/aws-sdk/apis/workspaces-thin-client-2023-08-22.min.json +30 -13
- package/node_modules/aws-sdk/apis/workspaces-web-2020-07-08.min.json +8 -1
- package/node_modules/aws-sdk/clients/accessanalyzer.d.ts +162 -3
- package/node_modules/aws-sdk/clients/account.d.ts +84 -9
- package/node_modules/aws-sdk/clients/acm.d.ts +8 -8
- package/node_modules/aws-sdk/clients/acmpca.d.ts +40 -40
- package/node_modules/aws-sdk/clients/all.d.ts +6 -3
- package/node_modules/aws-sdk/clients/all.js +7 -4
- package/node_modules/aws-sdk/clients/amplify.d.ts +15 -14
- package/node_modules/aws-sdk/clients/applicationautoscaling.d.ts +43 -43
- package/node_modules/aws-sdk/clients/applicationsignals.d.ts +955 -0
- package/node_modules/aws-sdk/clients/applicationsignals.js +18 -0
- package/node_modules/aws-sdk/clients/apptest.d.ts +2019 -0
- package/node_modules/aws-sdk/clients/apptest.js +19 -0
- package/node_modules/aws-sdk/clients/arczonalshift.d.ts +66 -29
- package/node_modules/aws-sdk/clients/artifact.d.ts +68 -64
- package/node_modules/aws-sdk/clients/artifact.js +1 -0
- package/node_modules/aws-sdk/clients/athena.d.ts +5 -5
- package/node_modules/aws-sdk/clients/auditmanager.d.ts +45 -33
- package/node_modules/aws-sdk/clients/autoscaling.d.ts +67 -67
- package/node_modules/aws-sdk/clients/b2bi.d.ts +8 -8
- package/node_modules/aws-sdk/clients/batch.d.ts +54 -1
- package/node_modules/aws-sdk/clients/bedrock.d.ts +63 -14
- package/node_modules/aws-sdk/clients/bedrockagent.d.ts +2327 -211
- package/node_modules/aws-sdk/clients/bedrockagentruntime.d.ts +666 -28
- package/node_modules/aws-sdk/clients/bedrockruntime.d.ts +849 -4
- package/node_modules/aws-sdk/clients/budgets.d.ts +84 -1
- package/node_modules/aws-sdk/clients/chatbot.d.ts +100 -0
- package/node_modules/aws-sdk/clients/chimesdkmediapipelines.d.ts +19 -15
- package/node_modules/aws-sdk/clients/chimesdkvoice.d.ts +9 -9
- package/node_modules/aws-sdk/clients/cloudformation.d.ts +11 -2
- package/node_modules/aws-sdk/clients/cloudfront.d.ts +7 -7
- package/node_modules/aws-sdk/clients/cloudhsmv2.d.ts +134 -34
- package/node_modules/aws-sdk/clients/cloudtrail.d.ts +29 -12
- package/node_modules/aws-sdk/clients/codeartifact.d.ts +28 -28
- package/node_modules/aws-sdk/clients/codebuild.d.ts +71 -24
- package/node_modules/aws-sdk/clients/codegurusecurity.d.ts +60 -55
- package/node_modules/aws-sdk/clients/codepipeline.d.ts +4 -4
- package/node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts +1 -1
- package/node_modules/aws-sdk/clients/computeoptimizer.d.ts +449 -47
- package/node_modules/aws-sdk/clients/connect.d.ts +935 -35
- package/node_modules/aws-sdk/clients/connectcases.d.ts +124 -1
- package/node_modules/aws-sdk/clients/controltower.d.ts +244 -44
- package/node_modules/aws-sdk/clients/costoptimizationhub.d.ts +380 -328
- package/node_modules/aws-sdk/clients/costoptimizationhub.js +1 -0
- package/node_modules/aws-sdk/clients/customerprofiles.d.ts +35 -5
- package/node_modules/aws-sdk/clients/datasync.d.ts +7 -7
- package/node_modules/aws-sdk/clients/datazone.d.ts +667 -5
- package/node_modules/aws-sdk/clients/directconnect.d.ts +40 -25
- package/node_modules/aws-sdk/clients/dynamodb.d.ts +114 -45
- package/node_modules/aws-sdk/clients/ec2.d.ts +423 -284
- package/node_modules/aws-sdk/clients/ecr.d.ts +2 -2
- package/node_modules/aws-sdk/clients/ecs.d.ts +47 -5
- package/node_modules/aws-sdk/clients/eks.d.ts +100 -20
- package/node_modules/aws-sdk/clients/elasticache.d.ts +6 -6
- package/node_modules/aws-sdk/clients/elbv2.d.ts +6 -6
- package/node_modules/aws-sdk/clients/emr.d.ts +12 -4
- package/node_modules/aws-sdk/clients/emrserverless.d.ts +191 -0
- package/node_modules/aws-sdk/clients/eventbridge.d.ts +111 -20
- package/node_modules/aws-sdk/clients/firehose.d.ts +73 -10
- package/node_modules/aws-sdk/clients/fms.d.ts +12 -7
- package/node_modules/aws-sdk/clients/fsx.d.ts +84 -36
- package/node_modules/aws-sdk/clients/globalaccelerator.d.ts +8 -0
- package/node_modules/aws-sdk/clients/glue.d.ts +504 -23
- package/node_modules/aws-sdk/clients/grafana.d.ts +297 -11
- package/node_modules/aws-sdk/clients/greengrassv2.d.ts +15 -5
- package/node_modules/aws-sdk/clients/guardduty.d.ts +277 -5
- package/node_modules/aws-sdk/clients/inspector2.d.ts +49 -3
- package/node_modules/aws-sdk/clients/iotfleetwise.d.ts +11 -1
- package/node_modules/aws-sdk/clients/iottwinmaker.d.ts +1 -1
- package/node_modules/aws-sdk/clients/iotwireless.d.ts +2 -2
- package/node_modules/aws-sdk/clients/ivsrealtime.d.ts +433 -235
- package/node_modules/aws-sdk/clients/ivsrealtime.js +1 -0
- package/node_modules/aws-sdk/clients/kafka.d.ts +35 -0
- package/node_modules/aws-sdk/clients/kinesisanalyticsv2.d.ts +147 -3
- package/node_modules/aws-sdk/clients/kms.d.ts +78 -12
- package/node_modules/aws-sdk/clients/lakeformation.d.ts +17 -0
- package/node_modules/aws-sdk/clients/launchwizard.d.ts +181 -8
- package/node_modules/aws-sdk/clients/licensemanagerlinuxsubscriptions.d.ts +249 -10
- package/node_modules/aws-sdk/clients/lightsail.d.ts +29 -25
- package/node_modules/aws-sdk/clients/location.d.ts +981 -677
- package/node_modules/aws-sdk/clients/macie2.d.ts +149 -44
- package/node_modules/aws-sdk/clients/mailmanager.d.ts +2320 -0
- package/node_modules/aws-sdk/clients/mailmanager.js +18 -0
- package/node_modules/aws-sdk/clients/managedblockchain.d.ts +4 -4
- package/node_modules/aws-sdk/clients/mediaconnect.d.ts +13 -0
- package/node_modules/aws-sdk/clients/mediaconvert.d.ts +77 -6
- package/node_modules/aws-sdk/clients/medialive.d.ts +8 -0
- package/node_modules/aws-sdk/clients/mediapackagev2.d.ts +57 -4
- package/node_modules/aws-sdk/clients/medicalimaging.d.ts +7 -2
- package/node_modules/aws-sdk/clients/mq.d.ts +15 -15
- package/node_modules/aws-sdk/clients/mwaa.d.ts +215 -189
- package/node_modules/aws-sdk/clients/networkmanager.d.ts +237 -11
- package/node_modules/aws-sdk/clients/omics.d.ts +89 -53
- package/node_modules/aws-sdk/clients/opensearch.d.ts +120 -3
- package/node_modules/aws-sdk/clients/opsworks.d.ts +117 -117
- package/node_modules/aws-sdk/clients/organizations.d.ts +2 -2
- package/node_modules/aws-sdk/clients/osis.d.ts +89 -5
- package/node_modules/aws-sdk/clients/paymentcryptography.d.ts +3 -3
- package/node_modules/aws-sdk/clients/paymentcryptographydata.d.ts +358 -311
- package/node_modules/aws-sdk/clients/paymentcryptographydata.js +1 -0
- package/node_modules/aws-sdk/clients/pcaconnectorscep.d.ts +486 -0
- package/node_modules/aws-sdk/clients/pcaconnectorscep.js +19 -0
- package/node_modules/aws-sdk/clients/personalize.d.ts +160 -1
- package/node_modules/aws-sdk/clients/personalizeruntime.d.ts +6 -0
- package/node_modules/aws-sdk/clients/pi.d.ts +17 -10
- package/node_modules/aws-sdk/clients/pinpoint.d.ts +27 -0
- package/node_modules/aws-sdk/clients/pinpointsmsvoicev2.d.ts +514 -8
- package/node_modules/aws-sdk/clients/pipes.d.ts +455 -348
- package/node_modules/aws-sdk/clients/pipes.js +1 -0
- package/node_modules/aws-sdk/clients/polly.d.ts +9 -9
- package/node_modules/aws-sdk/clients/qapps.d.ts +1442 -0
- package/node_modules/aws-sdk/clients/qapps.js +19 -0
- package/node_modules/aws-sdk/clients/qbusiness.d.ts +855 -699
- package/node_modules/aws-sdk/clients/qbusiness.js +1 -0
- package/node_modules/aws-sdk/clients/qconnect.d.ts +219 -1
- package/node_modules/aws-sdk/clients/quicksight.d.ts +901 -14
- package/node_modules/aws-sdk/clients/rds.d.ts +67 -19
- package/node_modules/aws-sdk/clients/redshift.d.ts +16 -16
- package/node_modules/aws-sdk/clients/redshiftserverless.d.ts +17 -7
- package/node_modules/aws-sdk/clients/rekognition.d.ts +11 -3
- package/node_modules/aws-sdk/clients/resiliencehub.d.ts +80 -15
- package/node_modules/aws-sdk/clients/route53profiles.d.ts +4 -4
- package/node_modules/aws-sdk/clients/route53resolver.d.ts +18 -5
- package/node_modules/aws-sdk/clients/s3.d.ts +34 -10
- package/node_modules/aws-sdk/clients/sagemaker.d.ts +1065 -59
- package/node_modules/aws-sdk/clients/secretsmanager.d.ts +20 -15
- package/node_modules/aws-sdk/clients/securityhub.d.ts +71 -71
- package/node_modules/aws-sdk/clients/securitylake.d.ts +3 -3
- package/node_modules/aws-sdk/clients/sesv2.d.ts +28 -10
- package/node_modules/aws-sdk/clients/signer.d.ts +3 -3
- package/node_modules/aws-sdk/clients/sns.d.ts +7 -7
- package/node_modules/aws-sdk/clients/sqs.d.ts +24 -19
- package/node_modules/aws-sdk/clients/ssmsap.d.ts +121 -1
- package/node_modules/aws-sdk/clients/ssooidc.d.ts +32 -4
- package/node_modules/aws-sdk/clients/storagegateway.d.ts +37 -22
- package/node_modules/aws-sdk/clients/swf.d.ts +38 -2
- package/node_modules/aws-sdk/clients/taxsettings.d.ts +809 -0
- package/node_modules/aws-sdk/clients/taxsettings.js +18 -0
- package/node_modules/aws-sdk/clients/timestreamquery.d.ts +54 -0
- package/node_modules/aws-sdk/clients/transcribeservice.d.ts +32 -0
- package/node_modules/aws-sdk/clients/transfer.d.ts +5 -5
- package/node_modules/aws-sdk/clients/trustedadvisor.d.ts +66 -2
- package/node_modules/aws-sdk/clients/verifiedpermissions.d.ts +300 -14
- package/node_modules/aws-sdk/clients/vpclattice.d.ts +81 -81
- package/node_modules/aws-sdk/clients/wafv2.d.ts +35 -5
- package/node_modules/aws-sdk/clients/workspaces.d.ts +598 -6
- package/node_modules/aws-sdk/clients/workspacesthinclient.d.ts +15 -0
- package/node_modules/aws-sdk/clients/workspacesweb.d.ts +21 -1
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +9 -5
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +2141 -1908
- package/node_modules/aws-sdk/dist/aws-sdk.js +4544 -2431
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +107 -106
- package/node_modules/aws-sdk/lib/config_service_placeholders.d.ts +12 -6
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/lib/credentials/cognito_identity_credentials.js +9 -0
- package/node_modules/aws-sdk/lib/credentials/sso_credentials.js +1 -1
- package/node_modules/aws-sdk/lib/credentials/token_file_web_identity_credentials.d.ts +2 -2
- package/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts +86 -17
- package/node_modules/aws-sdk/lib/metadata_service.d.ts +4 -0
- package/node_modules/aws-sdk/lib/metadata_service.js +1 -2
- package/node_modules/aws-sdk/lib/protocol/rest_json.js +2 -1
- package/node_modules/aws-sdk/lib/query/query_param_serializer.js +3 -1
- package/node_modules/aws-sdk/lib/region_config.js +2 -1
- package/node_modules/aws-sdk/lib/services/s3.js +51 -6
- package/node_modules/aws-sdk/lib/shared-ini/ini-loader.d.ts +24 -1
- package/node_modules/aws-sdk/lib/shared-ini/ini-loader.js +0 -6
- package/node_modules/aws-sdk/package.json +1 -1
- package/node_modules/aws-sdk/scripts/region-checker/allowlist.js +10 -10
- package/node_modules/xml2js/node_modules/sax/LICENSE +2 -2
- package/node_modules/xml2js/node_modules/sax/README.md +3 -0
- package/node_modules/xml2js/node_modules/sax/lib/sax.js +33 -10
- package/node_modules/xml2js/node_modules/sax/package.json +1 -1
- package/package.json +17 -15
- package/node_modules/aws-sdk/apis/alexaforbusiness-2017-11-09.min.json +0 -2905
- package/node_modules/aws-sdk/apis/alexaforbusiness-2017-11-09.paginators.json +0 -94
- package/node_modules/aws-sdk/apis/backupstorage-2018-04-10.min.json +0 -522
- package/node_modules/aws-sdk/apis/backupstorage-2018-04-10.paginators.json +0 -14
- package/node_modules/aws-sdk/apis/honeycode-2020-03-01.min.json +0 -962
- package/node_modules/aws-sdk/apis/honeycode-2020-03-01.paginators.json +0 -27
- package/node_modules/aws-sdk/clients/alexaforbusiness.d.ts +0 -3862
- package/node_modules/aws-sdk/clients/alexaforbusiness.js +0 -18
- package/node_modules/aws-sdk/clients/backupstorage.d.ts +0 -469
- package/node_modules/aws-sdk/clients/backupstorage.js +0 -18
- package/node_modules/aws-sdk/clients/honeycode.d.ts +0 -910
- package/node_modules/aws-sdk/clients/honeycode.js +0 -18
- /package/node_modules/aws-sdk/apis/{alexaforbusiness-2017-11-09.examples.json → application-signals-2024-04-15.examples.json} +0 -0
- /package/node_modules/aws-sdk/apis/{backupstorage-2018-04-10.examples.json → apptest-2022-12-06.examples.json} +0 -0
- /package/node_modules/aws-sdk/apis/{honeycode-2020-03-01.examples.json → mailmanager-2023-10-17.examples.json} +0 -0
@@ -12,6 +12,30 @@ declare class BedrockRuntime extends Service {
|
|
12
12
|
*/
|
13
13
|
constructor(options?: BedrockRuntime.Types.ClientConfiguration)
|
14
14
|
config: Config & BedrockRuntime.Types.ClientConfiguration;
|
15
|
+
/**
|
16
|
+
* The action to apply a guardrail.
|
17
|
+
*/
|
18
|
+
applyGuardrail(params: BedrockRuntime.Types.ApplyGuardrailRequest, callback?: (err: AWSError, data: BedrockRuntime.Types.ApplyGuardrailResponse) => void): Request<BedrockRuntime.Types.ApplyGuardrailResponse, AWSError>;
|
19
|
+
/**
|
20
|
+
* The action to apply a guardrail.
|
21
|
+
*/
|
22
|
+
applyGuardrail(callback?: (err: AWSError, data: BedrockRuntime.Types.ApplyGuardrailResponse) => void): Request<BedrockRuntime.Types.ApplyGuardrailResponse, AWSError>;
|
23
|
+
/**
|
24
|
+
* Sends messages to the specified Amazon Bedrock model. Converse provides a consistent interface that works with all models that support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. For information about the Converse API, see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, see Converse API examples in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModel action.
|
25
|
+
*/
|
26
|
+
converse(params: BedrockRuntime.Types.ConverseRequest, callback?: (err: AWSError, data: BedrockRuntime.Types.ConverseResponse) => void): Request<BedrockRuntime.Types.ConverseResponse, AWSError>;
|
27
|
+
/**
|
28
|
+
* Sends messages to the specified Amazon Bedrock model. Converse provides a consistent interface that works with all models that support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. For information about the Converse API, see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, see Converse API examples in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModel action.
|
29
|
+
*/
|
30
|
+
converse(callback?: (err: AWSError, data: BedrockRuntime.Types.ConverseResponse) => void): Request<BedrockRuntime.Types.ConverseResponse, AWSError>;
|
31
|
+
/**
|
32
|
+
* Sends messages to the specified Amazon Bedrock model and returns the response in a stream. ConverseStream provides a consistent API that works with all Amazon Bedrock models that support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. To find out if a model supports streaming, call GetFoundationModel and check the responseStreamingSupported field in the response. For information about the Converse API, see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, see Conversation streaming example in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModelWithResponseStream action.
|
33
|
+
*/
|
34
|
+
converseStream(params: BedrockRuntime.Types.ConverseStreamRequest, callback?: (err: AWSError, data: BedrockRuntime.Types.ConverseStreamResponse) => void): Request<BedrockRuntime.Types.ConverseStreamResponse, AWSError>;
|
35
|
+
/**
|
36
|
+
* Sends messages to the specified Amazon Bedrock model and returns the response in a stream. ConverseStream provides a consistent API that works with all Amazon Bedrock models that support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. To find out if a model supports streaming, call GetFoundationModel and check the responseStreamingSupported field in the response. For information about the Converse API, see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, see Conversation streaming example in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModelWithResponseStream action.
|
37
|
+
*/
|
38
|
+
converseStream(callback?: (err: AWSError, data: BedrockRuntime.Types.ConverseStreamResponse) => void): Request<BedrockRuntime.Types.ConverseStreamResponse, AWSError>;
|
15
39
|
/**
|
16
40
|
* Invokes the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. You use model inference to generate text, images, and embeddings. For example code, see Invoke model code examples in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModel action.
|
17
41
|
*/
|
@@ -30,20 +54,657 @@ declare class BedrockRuntime extends Service {
|
|
30
54
|
invokeModelWithResponseStream(callback?: (err: AWSError, data: BedrockRuntime.Types.InvokeModelWithResponseStreamResponse) => void): Request<BedrockRuntime.Types.InvokeModelWithResponseStreamResponse, AWSError>;
|
31
55
|
}
|
32
56
|
declare namespace BedrockRuntime {
|
57
|
+
export interface AnyToolChoice {
|
58
|
+
}
|
59
|
+
export interface ApplyGuardrailRequest {
|
60
|
+
/**
|
61
|
+
* The guardrail identifier used in the request to apply the guardrail.
|
62
|
+
*/
|
63
|
+
guardrailIdentifier: GuardrailIdentifier;
|
64
|
+
/**
|
65
|
+
* The guardrail version used in the request to apply the guardrail.
|
66
|
+
*/
|
67
|
+
guardrailVersion: GuardrailVersion;
|
68
|
+
/**
|
69
|
+
* The source of data used in the request to apply the guardrail.
|
70
|
+
*/
|
71
|
+
source: GuardrailContentSource;
|
72
|
+
/**
|
73
|
+
* The content details used in the request to apply the guardrail.
|
74
|
+
*/
|
75
|
+
content: GuardrailContentBlockList;
|
76
|
+
}
|
77
|
+
export interface ApplyGuardrailResponse {
|
78
|
+
/**
|
79
|
+
* The usage details in the response from the guardrail.
|
80
|
+
*/
|
81
|
+
usage: GuardrailUsage;
|
82
|
+
/**
|
83
|
+
* The action taken in the response from the guardrail.
|
84
|
+
*/
|
85
|
+
action: GuardrailAction;
|
86
|
+
/**
|
87
|
+
* The output details in the response from the guardrail.
|
88
|
+
*/
|
89
|
+
outputs: GuardrailOutputContentList;
|
90
|
+
/**
|
91
|
+
* The assessment details in the response from the guardrail.
|
92
|
+
*/
|
93
|
+
assessments: GuardrailAssessmentList;
|
94
|
+
}
|
95
|
+
export interface AutoToolChoice {
|
96
|
+
}
|
33
97
|
export type Body = Buffer|Uint8Array|Blob|string;
|
98
|
+
export interface ContentBlock {
|
99
|
+
/**
|
100
|
+
* Text to include in the message.
|
101
|
+
*/
|
102
|
+
text?: String;
|
103
|
+
/**
|
104
|
+
* Image to include in the message. This field is only supported by Anthropic Claude 3 models.
|
105
|
+
*/
|
106
|
+
image?: ImageBlock;
|
107
|
+
/**
|
108
|
+
* A document to include in the message.
|
109
|
+
*/
|
110
|
+
document?: DocumentBlock;
|
111
|
+
/**
|
112
|
+
* Information about a tool use request from a model.
|
113
|
+
*/
|
114
|
+
toolUse?: ToolUseBlock;
|
115
|
+
/**
|
116
|
+
* The result for a tool request that a model makes.
|
117
|
+
*/
|
118
|
+
toolResult?: ToolResultBlock;
|
119
|
+
/**
|
120
|
+
* Contains the content to assess with the guardrail. If you don't specify guardContent in a call to the Converse API, the guardrail (if passed in the Converse API) assesses the entire message. For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. </p>
|
121
|
+
*/
|
122
|
+
guardContent?: GuardrailConverseContentBlock;
|
123
|
+
}
|
124
|
+
export interface ContentBlockDelta {
|
125
|
+
/**
|
126
|
+
* The content text.
|
127
|
+
*/
|
128
|
+
text?: String;
|
129
|
+
/**
|
130
|
+
* Information about a tool that the model is requesting to use.
|
131
|
+
*/
|
132
|
+
toolUse?: ToolUseBlockDelta;
|
133
|
+
}
|
134
|
+
export interface ContentBlockDeltaEvent {
|
135
|
+
/**
|
136
|
+
* The delta for a content block delta event.
|
137
|
+
*/
|
138
|
+
delta: ContentBlockDelta;
|
139
|
+
/**
|
140
|
+
* The block index for a content block delta event.
|
141
|
+
*/
|
142
|
+
contentBlockIndex: NonNegativeInteger;
|
143
|
+
}
|
144
|
+
export interface ContentBlockStart {
|
145
|
+
/**
|
146
|
+
* Information about a tool that the model is requesting to use.
|
147
|
+
*/
|
148
|
+
toolUse?: ToolUseBlockStart;
|
149
|
+
}
|
150
|
+
export interface ContentBlockStartEvent {
|
151
|
+
/**
|
152
|
+
* Start information about a content block start event.
|
153
|
+
*/
|
154
|
+
start: ContentBlockStart;
|
155
|
+
/**
|
156
|
+
* The index for a content block start event.
|
157
|
+
*/
|
158
|
+
contentBlockIndex: NonNegativeInteger;
|
159
|
+
}
|
160
|
+
export interface ContentBlockStopEvent {
|
161
|
+
/**
|
162
|
+
* The index for a content block.
|
163
|
+
*/
|
164
|
+
contentBlockIndex: NonNegativeInteger;
|
165
|
+
}
|
166
|
+
export type ContentBlocks = ContentBlock[];
|
167
|
+
export type ConversationRole = "user"|"assistant"|string;
|
168
|
+
export type ConversationalModelId = string;
|
169
|
+
export interface ConverseMetrics {
|
170
|
+
/**
|
171
|
+
* The latency of the call to Converse, in milliseconds.
|
172
|
+
*/
|
173
|
+
latencyMs: Long;
|
174
|
+
}
|
175
|
+
export interface ConverseOutput {
|
176
|
+
/**
|
177
|
+
* The message that the model generates.
|
178
|
+
*/
|
179
|
+
message?: Message;
|
180
|
+
}
|
181
|
+
export interface ConverseRequest {
|
182
|
+
/**
|
183
|
+
* The identifier for the model that you want to call. The modelId to provide depends on the type of model that you use: If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see Amazon Bedrock base model IDs (on-demand throughput) in the Amazon Bedrock User Guide. If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see Run inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock in the Amazon Bedrock User Guide.
|
184
|
+
*/
|
185
|
+
modelId: ConversationalModelId;
|
186
|
+
/**
|
187
|
+
* The messages that you want to send to the model.
|
188
|
+
*/
|
189
|
+
messages: Messages;
|
190
|
+
/**
|
191
|
+
* A system prompt to pass to the model.
|
192
|
+
*/
|
193
|
+
system?: SystemContentBlocks;
|
194
|
+
/**
|
195
|
+
* Inference parameters to pass to the model. Converse supports a base set of inference parameters. If you need to pass additional parameters that the model supports, use the additionalModelRequestFields request field.
|
196
|
+
*/
|
197
|
+
inferenceConfig?: InferenceConfiguration;
|
198
|
+
/**
|
199
|
+
* Configuration information for the tools that the model can use when generating a response. This field is only supported by Anthropic Claude 3, Cohere Command R, Cohere Command R+, and Mistral Large models.
|
200
|
+
*/
|
201
|
+
toolConfig?: ToolConfiguration;
|
202
|
+
/**
|
203
|
+
* Configuration information for a guardrail that you want to use in the request.
|
204
|
+
*/
|
205
|
+
guardrailConfig?: GuardrailConfiguration;
|
206
|
+
/**
|
207
|
+
* Additional inference parameters that the model supports, beyond the base set of inference parameters that Converse supports in the inferenceConfig field. For more information, see Model parameters.
|
208
|
+
*/
|
209
|
+
additionalModelRequestFields?: Document;
|
210
|
+
/**
|
211
|
+
* Additional model parameters field paths to return in the response. Converse returns the requested fields as a JSON Pointer object in the additionalModelResponseFields field. The following is example JSON for additionalModelResponseFieldPaths. [ "/stop_sequence" ] For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation. Converse rejects an empty JSON Pointer or incorrectly structured JSON Pointer with a 400 error code. if the JSON Pointer is valid, but the requested field is not in the model response, it is ignored by Converse.
|
212
|
+
*/
|
213
|
+
additionalModelResponseFieldPaths?: ConverseRequestAdditionalModelResponseFieldPathsList;
|
214
|
+
}
|
215
|
+
export type ConverseRequestAdditionalModelResponseFieldPathsList = ConverseRequestAdditionalModelResponseFieldPathsListMemberString[];
|
216
|
+
export type ConverseRequestAdditionalModelResponseFieldPathsListMemberString = string;
|
217
|
+
export interface ConverseResponse {
|
218
|
+
/**
|
219
|
+
* The result from the call to Converse.
|
220
|
+
*/
|
221
|
+
output: ConverseOutput;
|
222
|
+
/**
|
223
|
+
* The reason why the model stopped generating output.
|
224
|
+
*/
|
225
|
+
stopReason: StopReason;
|
226
|
+
/**
|
227
|
+
* The total number of tokens used in the call to Converse. The total includes the tokens input to the model and the tokens generated by the model.
|
228
|
+
*/
|
229
|
+
usage: TokenUsage;
|
230
|
+
/**
|
231
|
+
* Metrics for the call to Converse.
|
232
|
+
*/
|
233
|
+
metrics: ConverseMetrics;
|
234
|
+
/**
|
235
|
+
* Additional fields in the response that are unique to the model.
|
236
|
+
*/
|
237
|
+
additionalModelResponseFields?: Document;
|
238
|
+
/**
|
239
|
+
* A trace object that contains information about the Guardrail behavior.
|
240
|
+
*/
|
241
|
+
trace?: ConverseTrace;
|
242
|
+
}
|
243
|
+
export interface ConverseStreamMetadataEvent {
|
244
|
+
/**
|
245
|
+
* Usage information for the conversation stream event.
|
246
|
+
*/
|
247
|
+
usage: TokenUsage;
|
248
|
+
/**
|
249
|
+
* The metrics for the conversation stream metadata event.
|
250
|
+
*/
|
251
|
+
metrics: ConverseStreamMetrics;
|
252
|
+
/**
|
253
|
+
* The trace object in the response from ConverseStream that contains information about the guardrail behavior.
|
254
|
+
*/
|
255
|
+
trace?: ConverseStreamTrace;
|
256
|
+
}
|
257
|
+
export interface ConverseStreamMetrics {
|
258
|
+
/**
|
259
|
+
* The latency for the streaming request, in milliseconds.
|
260
|
+
*/
|
261
|
+
latencyMs: Long;
|
262
|
+
}
|
263
|
+
export type ConverseStreamOutput = EventStream<{messageStart?:MessageStartEvent,contentBlockStart?:ContentBlockStartEvent,contentBlockDelta?:ContentBlockDeltaEvent,contentBlockStop?:ContentBlockStopEvent,messageStop?:MessageStopEvent,metadata?:ConverseStreamMetadataEvent,internalServerException?:InternalServerException,modelStreamErrorException?:ModelStreamErrorException,validationException?:ValidationException,throttlingException?:ThrottlingException}>;
|
264
|
+
export interface ConverseStreamRequest {
|
265
|
+
/**
|
266
|
+
* The ID for the model. The modelId to provide depends on the type of model that you use: If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see Amazon Bedrock base model IDs (on-demand throughput) in the Amazon Bedrock User Guide. If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see Run inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock in the Amazon Bedrock User Guide.
|
267
|
+
*/
|
268
|
+
modelId: ConversationalModelId;
|
269
|
+
/**
|
270
|
+
* The messages that you want to send to the model.
|
271
|
+
*/
|
272
|
+
messages: Messages;
|
273
|
+
/**
|
274
|
+
* A system prompt to send to the model.
|
275
|
+
*/
|
276
|
+
system?: SystemContentBlocks;
|
277
|
+
/**
|
278
|
+
* Inference parameters to pass to the model. ConverseStream supports a base set of inference parameters. If you need to pass additional parameters that the model supports, use the additionalModelRequestFields request field.
|
279
|
+
*/
|
280
|
+
inferenceConfig?: InferenceConfiguration;
|
281
|
+
/**
|
282
|
+
* Configuration information for the tools that the model can use when generating a response. This field is only supported by Anthropic Claude 3 models.
|
283
|
+
*/
|
284
|
+
toolConfig?: ToolConfiguration;
|
285
|
+
/**
|
286
|
+
* Configuration information for a guardrail that you want to use in the request.
|
287
|
+
*/
|
288
|
+
guardrailConfig?: GuardrailStreamConfiguration;
|
289
|
+
/**
|
290
|
+
* Additional inference parameters that the model supports, beyond the base set of inference parameters that ConverseStream supports in the inferenceConfig field.
|
291
|
+
*/
|
292
|
+
additionalModelRequestFields?: Document;
|
293
|
+
/**
|
294
|
+
* Additional model parameters field paths to return in the response. ConverseStream returns the requested fields as a JSON Pointer object in the additionalModelResponseFields field. The following is example JSON for additionalModelResponseFieldPaths. [ "/stop_sequence" ] For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation. ConverseStream rejects an empty JSON Pointer or incorrectly structured JSON Pointer with a 400 error code. if the JSON Pointer is valid, but the requested field is not in the model response, it is ignored by ConverseStream.
|
295
|
+
*/
|
296
|
+
additionalModelResponseFieldPaths?: ConverseStreamRequestAdditionalModelResponseFieldPathsList;
|
297
|
+
}
|
298
|
+
export type ConverseStreamRequestAdditionalModelResponseFieldPathsList = ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString[];
|
299
|
+
export type ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString = string;
|
300
|
+
export interface ConverseStreamResponse {
|
301
|
+
/**
|
302
|
+
* The output stream that the model generated.
|
303
|
+
*/
|
304
|
+
stream?: ConverseStreamOutput;
|
305
|
+
}
|
306
|
+
export interface ConverseStreamTrace {
|
307
|
+
/**
|
308
|
+
* The guardrail trace object.
|
309
|
+
*/
|
310
|
+
guardrail?: GuardrailTraceAssessment;
|
311
|
+
}
|
312
|
+
export interface ConverseTrace {
|
313
|
+
/**
|
314
|
+
* The guardrail trace object.
|
315
|
+
*/
|
316
|
+
guardrail?: GuardrailTraceAssessment;
|
317
|
+
}
|
318
|
+
export interface Document {
|
319
|
+
}
|
320
|
+
export interface DocumentBlock {
|
321
|
+
/**
|
322
|
+
* The format of a document, or its extension.
|
323
|
+
*/
|
324
|
+
format: DocumentFormat;
|
325
|
+
/**
|
326
|
+
* A name for the document. The name can only contain the following characters: Alphanumeric characters Whitespace characters (no more than one in a row) Hyphens Parentheses Square brackets This field is vulnerable to prompt injections, because the model might inadvertently interpret it as instructions. Therefore, we recommend that you specify a neutral name.
|
327
|
+
*/
|
328
|
+
name: DocumentBlockNameString;
|
329
|
+
/**
|
330
|
+
* Contains the content of the document.
|
331
|
+
*/
|
332
|
+
source: DocumentSource;
|
333
|
+
}
|
334
|
+
export type DocumentBlockNameString = string;
|
335
|
+
export type DocumentFormat = "pdf"|"csv"|"doc"|"docx"|"xls"|"xlsx"|"html"|"txt"|"md"|string;
|
336
|
+
export interface DocumentSource {
|
337
|
+
/**
|
338
|
+
* The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.
|
339
|
+
*/
|
340
|
+
bytes?: DocumentSourceBytesBlob;
|
341
|
+
}
|
342
|
+
export type DocumentSourceBytesBlob = Buffer|Uint8Array|Blob|string;
|
343
|
+
export type GuardrailAction = "NONE"|"GUARDRAIL_INTERVENED"|string;
|
344
|
+
export interface GuardrailAssessment {
|
345
|
+
/**
|
346
|
+
* The topic policy.
|
347
|
+
*/
|
348
|
+
topicPolicy?: GuardrailTopicPolicyAssessment;
|
349
|
+
/**
|
350
|
+
* The content policy.
|
351
|
+
*/
|
352
|
+
contentPolicy?: GuardrailContentPolicyAssessment;
|
353
|
+
/**
|
354
|
+
* The word policy.
|
355
|
+
*/
|
356
|
+
wordPolicy?: GuardrailWordPolicyAssessment;
|
357
|
+
/**
|
358
|
+
* The sensitive information policy.
|
359
|
+
*/
|
360
|
+
sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicyAssessment;
|
361
|
+
/**
|
362
|
+
* The contextual grounding policy used for the guardrail assessment.
|
363
|
+
*/
|
364
|
+
contextualGroundingPolicy?: GuardrailContextualGroundingPolicyAssessment;
|
365
|
+
}
|
366
|
+
export type GuardrailAssessmentList = GuardrailAssessment[];
|
367
|
+
export type GuardrailAssessmentListMap = {[key: string]: GuardrailAssessmentList};
|
368
|
+
export type GuardrailAssessmentMap = {[key: string]: GuardrailAssessment};
|
369
|
+
export interface GuardrailConfiguration {
|
370
|
+
/**
|
371
|
+
* The identifier for the guardrail.
|
372
|
+
*/
|
373
|
+
guardrailIdentifier: GuardrailIdentifier;
|
374
|
+
/**
|
375
|
+
* The version of the guardrail.
|
376
|
+
*/
|
377
|
+
guardrailVersion: GuardrailVersion;
|
378
|
+
/**
|
379
|
+
* The trace behavior for the guardrail.
|
380
|
+
*/
|
381
|
+
trace?: GuardrailTrace;
|
382
|
+
}
|
383
|
+
export interface GuardrailContentBlock {
|
384
|
+
/**
|
385
|
+
* Text within content block to be evaluated by the guardrail.
|
386
|
+
*/
|
387
|
+
text?: GuardrailTextBlock;
|
388
|
+
}
|
389
|
+
export type GuardrailContentBlockList = GuardrailContentBlock[];
|
390
|
+
export interface GuardrailContentFilter {
|
391
|
+
/**
|
392
|
+
* The guardrail type.
|
393
|
+
*/
|
394
|
+
type: GuardrailContentFilterType;
|
395
|
+
/**
|
396
|
+
* The guardrail confidence.
|
397
|
+
*/
|
398
|
+
confidence: GuardrailContentFilterConfidence;
|
399
|
+
/**
|
400
|
+
* The guardrail action.
|
401
|
+
*/
|
402
|
+
action: GuardrailContentPolicyAction;
|
403
|
+
}
|
404
|
+
export type GuardrailContentFilterConfidence = "NONE"|"LOW"|"MEDIUM"|"HIGH"|string;
|
405
|
+
export type GuardrailContentFilterList = GuardrailContentFilter[];
|
406
|
+
export type GuardrailContentFilterType = "INSULTS"|"HATE"|"SEXUAL"|"VIOLENCE"|"MISCONDUCT"|"PROMPT_ATTACK"|string;
|
407
|
+
export type GuardrailContentPolicyAction = "BLOCKED"|string;
|
408
|
+
export interface GuardrailContentPolicyAssessment {
|
409
|
+
/**
|
410
|
+
* The content policy filters.
|
411
|
+
*/
|
412
|
+
filters: GuardrailContentFilterList;
|
413
|
+
}
|
414
|
+
export type GuardrailContentPolicyUnitsProcessed = number;
|
415
|
+
export type GuardrailContentQualifier = "grounding_source"|"query"|"guard_content"|string;
|
416
|
+
export type GuardrailContentQualifierList = GuardrailContentQualifier[];
|
417
|
+
export type GuardrailContentSource = "INPUT"|"OUTPUT"|string;
|
418
|
+
export interface GuardrailContextualGroundingFilter {
|
419
|
+
/**
|
420
|
+
* The contextual grounding filter type.
|
421
|
+
*/
|
422
|
+
type: GuardrailContextualGroundingFilterType;
|
423
|
+
/**
|
424
|
+
* The threshold used by contextual grounding filter to determine whether the content is grounded or not.
|
425
|
+
*/
|
426
|
+
threshold: GuardrailContextualGroundingFilterThresholdDouble;
|
427
|
+
/**
|
428
|
+
* The score generated by contextual grounding filter.
|
429
|
+
*/
|
430
|
+
score: GuardrailContextualGroundingFilterScoreDouble;
|
431
|
+
/**
|
432
|
+
* The action performed by the guardrails contextual grounding filter.
|
433
|
+
*/
|
434
|
+
action: GuardrailContextualGroundingPolicyAction;
|
435
|
+
}
|
436
|
+
export type GuardrailContextualGroundingFilterScoreDouble = number;
|
437
|
+
export type GuardrailContextualGroundingFilterThresholdDouble = number;
|
438
|
+
export type GuardrailContextualGroundingFilterType = "GROUNDING"|"RELEVANCE"|string;
|
439
|
+
export type GuardrailContextualGroundingFilters = GuardrailContextualGroundingFilter[];
|
440
|
+
export type GuardrailContextualGroundingPolicyAction = "BLOCKED"|"NONE"|string;
|
441
|
+
export interface GuardrailContextualGroundingPolicyAssessment {
|
442
|
+
/**
|
443
|
+
* The filter details for the guardrails contextual grounding filter.
|
444
|
+
*/
|
445
|
+
filters?: GuardrailContextualGroundingFilters;
|
446
|
+
}
|
447
|
+
export type GuardrailContextualGroundingPolicyUnitsProcessed = number;
|
448
|
+
export interface GuardrailConverseContentBlock {
|
449
|
+
/**
|
450
|
+
* The text to guard.
|
451
|
+
*/
|
452
|
+
text?: GuardrailConverseTextBlock;
|
453
|
+
}
|
454
|
+
export type GuardrailConverseContentQualifier = "grounding_source"|"query"|"guard_content"|string;
|
455
|
+
export type GuardrailConverseContentQualifierList = GuardrailConverseContentQualifier[];
|
456
|
+
export interface GuardrailConverseTextBlock {
|
457
|
+
/**
|
458
|
+
* The text that you want to guard.
|
459
|
+
*/
|
460
|
+
text: String;
|
461
|
+
/**
|
462
|
+
* The qualifier details for the guardrails contextual grounding filter.
|
463
|
+
*/
|
464
|
+
qualifiers?: GuardrailConverseContentQualifierList;
|
465
|
+
}
|
466
|
+
export interface GuardrailCustomWord {
|
467
|
+
/**
|
468
|
+
* The match for the custom word.
|
469
|
+
*/
|
470
|
+
match: String;
|
471
|
+
/**
|
472
|
+
* The action for the custom word.
|
473
|
+
*/
|
474
|
+
action: GuardrailWordPolicyAction;
|
475
|
+
}
|
476
|
+
export type GuardrailCustomWordList = GuardrailCustomWord[];
|
34
477
|
export type GuardrailIdentifier = string;
|
478
|
+
export interface GuardrailManagedWord {
|
479
|
+
/**
|
480
|
+
* The match for the managed word.
|
481
|
+
*/
|
482
|
+
match: String;
|
483
|
+
/**
|
484
|
+
* The type for the managed word.
|
485
|
+
*/
|
486
|
+
type: GuardrailManagedWordType;
|
487
|
+
/**
|
488
|
+
* The action for the managed word.
|
489
|
+
*/
|
490
|
+
action: GuardrailWordPolicyAction;
|
491
|
+
}
|
492
|
+
export type GuardrailManagedWordList = GuardrailManagedWord[];
|
493
|
+
export type GuardrailManagedWordType = "PROFANITY"|string;
|
494
|
+
export interface GuardrailOutputContent {
|
495
|
+
/**
|
496
|
+
* The specific text for the output content produced by the guardrail.
|
497
|
+
*/
|
498
|
+
text?: GuardrailOutputText;
|
499
|
+
}
|
500
|
+
export type GuardrailOutputContentList = GuardrailOutputContent[];
|
501
|
+
export type GuardrailOutputText = string;
|
502
|
+
export interface GuardrailPiiEntityFilter {
|
503
|
+
/**
|
504
|
+
* The PII entity filter match.
|
505
|
+
*/
|
506
|
+
match: String;
|
507
|
+
/**
|
508
|
+
* The PII entity filter type.
|
509
|
+
*/
|
510
|
+
type: GuardrailPiiEntityType;
|
511
|
+
/**
|
512
|
+
* The PII entity filter action.
|
513
|
+
*/
|
514
|
+
action: GuardrailSensitiveInformationPolicyAction;
|
515
|
+
}
|
516
|
+
export type GuardrailPiiEntityFilterList = GuardrailPiiEntityFilter[];
|
517
|
+
export type GuardrailPiiEntityType = "ADDRESS"|"AGE"|"AWS_ACCESS_KEY"|"AWS_SECRET_KEY"|"CA_HEALTH_NUMBER"|"CA_SOCIAL_INSURANCE_NUMBER"|"CREDIT_DEBIT_CARD_CVV"|"CREDIT_DEBIT_CARD_EXPIRY"|"CREDIT_DEBIT_CARD_NUMBER"|"DRIVER_ID"|"EMAIL"|"INTERNATIONAL_BANK_ACCOUNT_NUMBER"|"IP_ADDRESS"|"LICENSE_PLATE"|"MAC_ADDRESS"|"NAME"|"PASSWORD"|"PHONE"|"PIN"|"SWIFT_CODE"|"UK_NATIONAL_HEALTH_SERVICE_NUMBER"|"UK_NATIONAL_INSURANCE_NUMBER"|"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER"|"URL"|"USERNAME"|"US_BANK_ACCOUNT_NUMBER"|"US_BANK_ROUTING_NUMBER"|"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER"|"US_PASSPORT_NUMBER"|"US_SOCIAL_SECURITY_NUMBER"|"VEHICLE_IDENTIFICATION_NUMBER"|string;
|
518
|
+
export interface GuardrailRegexFilter {
|
519
|
+
/**
|
520
|
+
* The regex filter name.
|
521
|
+
*/
|
522
|
+
name?: String;
|
523
|
+
/**
|
524
|
+
* The regesx filter match.
|
525
|
+
*/
|
526
|
+
match?: String;
|
527
|
+
/**
|
528
|
+
* The regex query.
|
529
|
+
*/
|
530
|
+
regex?: String;
|
531
|
+
/**
|
532
|
+
* The region filter action.
|
533
|
+
*/
|
534
|
+
action: GuardrailSensitiveInformationPolicyAction;
|
535
|
+
}
|
536
|
+
export type GuardrailRegexFilterList = GuardrailRegexFilter[];
|
537
|
+
export type GuardrailSensitiveInformationPolicyAction = "ANONYMIZED"|"BLOCKED"|string;
|
538
|
+
export interface GuardrailSensitiveInformationPolicyAssessment {
|
539
|
+
/**
|
540
|
+
* The PII entities in the assessment.
|
541
|
+
*/
|
542
|
+
piiEntities: GuardrailPiiEntityFilterList;
|
543
|
+
/**
|
544
|
+
* The regex queries in the assessment.
|
545
|
+
*/
|
546
|
+
regexes: GuardrailRegexFilterList;
|
547
|
+
}
|
548
|
+
export type GuardrailSensitiveInformationPolicyFreeUnitsProcessed = number;
|
549
|
+
export type GuardrailSensitiveInformationPolicyUnitsProcessed = number;
|
550
|
+
export interface GuardrailStreamConfiguration {
|
551
|
+
/**
|
552
|
+
* The identifier for the guardrail.
|
553
|
+
*/
|
554
|
+
guardrailIdentifier: GuardrailIdentifier;
|
555
|
+
/**
|
556
|
+
* The version of the guardrail.
|
557
|
+
*/
|
558
|
+
guardrailVersion: GuardrailVersion;
|
559
|
+
/**
|
560
|
+
* The trace behavior for the guardrail.
|
561
|
+
*/
|
562
|
+
trace?: GuardrailTrace;
|
563
|
+
/**
|
564
|
+
* The processing mode. The processing mode. For more information, see Configure streaming response behavior in the Amazon Bedrock User Guide.
|
565
|
+
*/
|
566
|
+
streamProcessingMode?: GuardrailStreamProcessingMode;
|
567
|
+
}
|
568
|
+
export type GuardrailStreamProcessingMode = "sync"|"async"|string;
|
569
|
+
export interface GuardrailTextBlock {
|
570
|
+
/**
|
571
|
+
* The input text details to be evaluated by the guardrail.
|
572
|
+
*/
|
573
|
+
text: String;
|
574
|
+
/**
|
575
|
+
* The qualifiers describing the text block.
|
576
|
+
*/
|
577
|
+
qualifiers?: GuardrailContentQualifierList;
|
578
|
+
}
|
579
|
+
export interface GuardrailTopic {
|
580
|
+
/**
|
581
|
+
* The name for the guardrail.
|
582
|
+
*/
|
583
|
+
name: String;
|
584
|
+
/**
|
585
|
+
* The type behavior that the guardrail should perform when the model detects the topic.
|
586
|
+
*/
|
587
|
+
type: GuardrailTopicType;
|
588
|
+
/**
|
589
|
+
* The action the guardrail should take when it intervenes on a topic.
|
590
|
+
*/
|
591
|
+
action: GuardrailTopicPolicyAction;
|
592
|
+
}
|
593
|
+
export type GuardrailTopicList = GuardrailTopic[];
|
594
|
+
export type GuardrailTopicPolicyAction = "BLOCKED"|string;
|
595
|
+
export interface GuardrailTopicPolicyAssessment {
|
596
|
+
/**
|
597
|
+
* The topics in the assessment.
|
598
|
+
*/
|
599
|
+
topics: GuardrailTopicList;
|
600
|
+
}
|
601
|
+
export type GuardrailTopicPolicyUnitsProcessed = number;
|
602
|
+
export type GuardrailTopicType = "DENY"|string;
|
603
|
+
export type GuardrailTrace = "enabled"|"disabled"|string;
|
604
|
+
export interface GuardrailTraceAssessment {
|
605
|
+
/**
|
606
|
+
* The output from the model.
|
607
|
+
*/
|
608
|
+
modelOutput?: ModelOutputs;
|
609
|
+
/**
|
610
|
+
* The input assessment.
|
611
|
+
*/
|
612
|
+
inputAssessment?: GuardrailAssessmentMap;
|
613
|
+
/**
|
614
|
+
* the output assessments.
|
615
|
+
*/
|
616
|
+
outputAssessments?: GuardrailAssessmentListMap;
|
617
|
+
}
|
618
|
+
export interface GuardrailUsage {
|
619
|
+
/**
|
620
|
+
* The topic policy units processed by the guardrail.
|
621
|
+
*/
|
622
|
+
topicPolicyUnits: GuardrailTopicPolicyUnitsProcessed;
|
623
|
+
/**
|
624
|
+
* The content policy units processed by the guardrail.
|
625
|
+
*/
|
626
|
+
contentPolicyUnits: GuardrailContentPolicyUnitsProcessed;
|
627
|
+
/**
|
628
|
+
* The word policy units processed by the guardrail.
|
629
|
+
*/
|
630
|
+
wordPolicyUnits: GuardrailWordPolicyUnitsProcessed;
|
631
|
+
/**
|
632
|
+
* The sensitive information policy units processed by the guardrail.
|
633
|
+
*/
|
634
|
+
sensitiveInformationPolicyUnits: GuardrailSensitiveInformationPolicyUnitsProcessed;
|
635
|
+
/**
|
636
|
+
* The sensitive information policy free units processed by the guardrail.
|
637
|
+
*/
|
638
|
+
sensitiveInformationPolicyFreeUnits: GuardrailSensitiveInformationPolicyFreeUnitsProcessed;
|
639
|
+
/**
|
640
|
+
* The contextual grounding policy units processed by the guardrail.
|
641
|
+
*/
|
642
|
+
contextualGroundingPolicyUnits: GuardrailContextualGroundingPolicyUnitsProcessed;
|
643
|
+
}
|
35
644
|
export type GuardrailVersion = string;
|
645
|
+
export type GuardrailWordPolicyAction = "BLOCKED"|string;
|
646
|
+
export interface GuardrailWordPolicyAssessment {
|
647
|
+
/**
|
648
|
+
* Custom words in the assessment.
|
649
|
+
*/
|
650
|
+
customWords: GuardrailCustomWordList;
|
651
|
+
/**
|
652
|
+
* Managed word lists in the assessment.
|
653
|
+
*/
|
654
|
+
managedWordLists: GuardrailManagedWordList;
|
655
|
+
}
|
656
|
+
export type GuardrailWordPolicyUnitsProcessed = number;
|
657
|
+
export interface ImageBlock {
|
658
|
+
/**
|
659
|
+
* The format of the image.
|
660
|
+
*/
|
661
|
+
format: ImageFormat;
|
662
|
+
/**
|
663
|
+
* The source for the image.
|
664
|
+
*/
|
665
|
+
source: ImageSource;
|
666
|
+
}
|
667
|
+
export type ImageFormat = "png"|"jpeg"|"gif"|"webp"|string;
|
668
|
+
export interface ImageSource {
|
669
|
+
/**
|
670
|
+
* The raw image bytes for the image. If you use an AWS SDK, you don't need to encode the image bytes in base64.
|
671
|
+
*/
|
672
|
+
bytes?: ImageSourceBytesBlob;
|
673
|
+
}
|
674
|
+
export type ImageSourceBytesBlob = Buffer|Uint8Array|Blob|string;
|
675
|
+
export interface InferenceConfiguration {
|
676
|
+
/**
|
677
|
+
* The maximum number of tokens to allow in the generated response. The default value is the maximum allowed value for the model that you are using. For more information, see Inference parameters for foundation models.
|
678
|
+
*/
|
679
|
+
maxTokens?: InferenceConfigurationMaxTokensInteger;
|
680
|
+
/**
|
681
|
+
* The likelihood of the model selecting higher-probability options while generating a response. A lower value makes the model more likely to choose higher-probability options, while a higher value makes the model more likely to choose lower-probability options. The default value is the default value for the model that you are using. For more information, see Inference parameters for foundation models.
|
682
|
+
*/
|
683
|
+
temperature?: InferenceConfigurationTemperatureFloat;
|
684
|
+
/**
|
685
|
+
* The percentage of most-likely candidates that the model considers for the next token. For example, if you choose a value of 0.8 for topP, the model selects from the top 80% of the probability distribution of tokens that could be next in the sequence. The default value is the default value for the model that you are using. For more information, see Inference parameters for foundation models.
|
686
|
+
*/
|
687
|
+
topP?: InferenceConfigurationTopPFloat;
|
688
|
+
/**
|
689
|
+
* A list of stop sequences. A stop sequence is a sequence of characters that causes the model to stop generating the response.
|
690
|
+
*/
|
691
|
+
stopSequences?: InferenceConfigurationStopSequencesList;
|
692
|
+
}
|
693
|
+
export type InferenceConfigurationMaxTokensInteger = number;
|
694
|
+
export type InferenceConfigurationStopSequencesList = NonEmptyString[];
|
695
|
+
export type InferenceConfigurationTemperatureFloat = number;
|
696
|
+
export type InferenceConfigurationTopPFloat = number;
|
36
697
|
export interface InternalServerException {
|
37
698
|
message?: NonBlankString;
|
38
699
|
}
|
39
700
|
export type InvokeModelIdentifier = string;
|
40
701
|
export interface InvokeModelRequest {
|
41
702
|
/**
|
42
|
-
* The prompt and inference parameters in the format specified in the contentType in the header. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
|
703
|
+
* The prompt and inference parameters in the format specified in the contentType in the header. You must provide the body in JSON format. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
|
43
704
|
*/
|
44
705
|
body: Body;
|
45
706
|
/**
|
46
|
-
* The MIME type of the input data in the request.
|
707
|
+
* The MIME type of the input data in the request. You must specify application/json.
|
47
708
|
*/
|
48
709
|
contentType?: MimeType;
|
49
710
|
/**
|
@@ -79,11 +740,11 @@ declare namespace BedrockRuntime {
|
|
79
740
|
}
|
80
741
|
export interface InvokeModelWithResponseStreamRequest {
|
81
742
|
/**
|
82
|
-
* The prompt and inference parameters in the format specified in the contentType in the header. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
|
743
|
+
* The prompt and inference parameters in the format specified in the contentType in the header. You must provide the body in JSON format. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
|
83
744
|
*/
|
84
745
|
body: Body;
|
85
746
|
/**
|
86
|
-
* The MIME type of the input data in the request.
|
747
|
+
* The MIME type of the input data in the request. You must specify application/json.
|
87
748
|
*/
|
88
749
|
contentType?: MimeType;
|
89
750
|
/**
|
@@ -117,7 +778,36 @@ declare namespace BedrockRuntime {
|
|
117
778
|
*/
|
118
779
|
contentType: MimeType;
|
119
780
|
}
|
781
|
+
export type Long = number;
|
782
|
+
export interface Message {
|
783
|
+
/**
|
784
|
+
* The role that the message plays in the message.
|
785
|
+
*/
|
786
|
+
role: ConversationRole;
|
787
|
+
/**
|
788
|
+
* The message content. Note the following restrictions: You can include up to 20 images. Each image's size, height, and width must be no more than 3.75 MB, 8000 px, and 8000 px, respectively. You can include up to five documents. Each document's size must be no more than 4.5 MB. If you include a ContentBlock with a document field in the array, you must also include a ContentBlock with a text field. You can only include images and documents if the role is user.
|
789
|
+
*/
|
790
|
+
content: ContentBlocks;
|
791
|
+
}
|
792
|
+
export interface MessageStartEvent {
|
793
|
+
/**
|
794
|
+
* The role for the message.
|
795
|
+
*/
|
796
|
+
role: ConversationRole;
|
797
|
+
}
|
798
|
+
export interface MessageStopEvent {
|
799
|
+
/**
|
800
|
+
* The reason why the model stopped generating output.
|
801
|
+
*/
|
802
|
+
stopReason: StopReason;
|
803
|
+
/**
|
804
|
+
* The additional model response fields.
|
805
|
+
*/
|
806
|
+
additionalModelResponseFields?: Document;
|
807
|
+
}
|
808
|
+
export type Messages = Message[];
|
120
809
|
export type MimeType = string;
|
810
|
+
export type ModelOutputs = GuardrailOutputText[];
|
121
811
|
export interface ModelStreamErrorException {
|
122
812
|
message?: NonBlankString;
|
123
813
|
/**
|
@@ -133,6 +823,8 @@ declare namespace BedrockRuntime {
|
|
133
823
|
message?: NonBlankString;
|
134
824
|
}
|
135
825
|
export type NonBlankString = string;
|
826
|
+
export type NonEmptyString = string;
|
827
|
+
export type NonNegativeInteger = number;
|
136
828
|
export type PartBody = Buffer|Uint8Array|Blob|string;
|
137
829
|
export interface PayloadPart {
|
138
830
|
/**
|
@@ -141,10 +833,163 @@ declare namespace BedrockRuntime {
|
|
141
833
|
bytes?: PartBody;
|
142
834
|
}
|
143
835
|
export type ResponseStream = EventStream<{chunk?:PayloadPart,internalServerException?:InternalServerException,modelStreamErrorException?:ModelStreamErrorException,validationException?:ValidationException,throttlingException?:ThrottlingException,modelTimeoutException?:ModelTimeoutException}>;
|
836
|
+
export interface SpecificToolChoice {
|
837
|
+
/**
|
838
|
+
* The name of the tool that the model must request.
|
839
|
+
*/
|
840
|
+
name: ToolName;
|
841
|
+
}
|
144
842
|
export type StatusCode = number;
|
843
|
+
export type StopReason = "end_turn"|"tool_use"|"max_tokens"|"stop_sequence"|"guardrail_intervened"|"content_filtered"|string;
|
844
|
+
export type String = string;
|
845
|
+
export interface SystemContentBlock {
|
846
|
+
/**
|
847
|
+
* A system prompt for the model.
|
848
|
+
*/
|
849
|
+
text?: NonEmptyString;
|
850
|
+
/**
|
851
|
+
* A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations. For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
|
852
|
+
*/
|
853
|
+
guardContent?: GuardrailConverseContentBlock;
|
854
|
+
}
|
855
|
+
export type SystemContentBlocks = SystemContentBlock[];
|
145
856
|
export interface ThrottlingException {
|
146
857
|
message?: NonBlankString;
|
147
858
|
}
|
859
|
+
export interface TokenUsage {
|
860
|
+
/**
|
861
|
+
* The number of tokens sent in the request to the model.
|
862
|
+
*/
|
863
|
+
inputTokens: TokenUsageInputTokensInteger;
|
864
|
+
/**
|
865
|
+
* The number of tokens that the model generated for the request.
|
866
|
+
*/
|
867
|
+
outputTokens: TokenUsageOutputTokensInteger;
|
868
|
+
/**
|
869
|
+
* The total of input tokens and tokens generated by the model.
|
870
|
+
*/
|
871
|
+
totalTokens: TokenUsageTotalTokensInteger;
|
872
|
+
}
|
873
|
+
export type TokenUsageInputTokensInteger = number;
|
874
|
+
export type TokenUsageOutputTokensInteger = number;
|
875
|
+
export type TokenUsageTotalTokensInteger = number;
|
876
|
+
export interface Tool {
|
877
|
+
/**
|
878
|
+
* The specfication for the tool.
|
879
|
+
*/
|
880
|
+
toolSpec?: ToolSpecification;
|
881
|
+
}
|
882
|
+
export interface ToolChoice {
|
883
|
+
/**
|
884
|
+
* (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
|
885
|
+
*/
|
886
|
+
auto?: AutoToolChoice;
|
887
|
+
/**
|
888
|
+
* The model must request at least one tool (no text is generated).
|
889
|
+
*/
|
890
|
+
any?: AnyToolChoice;
|
891
|
+
/**
|
892
|
+
* The Model must request the specified tool. Only supported by Anthropic Claude 3 models.
|
893
|
+
*/
|
894
|
+
tool?: SpecificToolChoice;
|
895
|
+
}
|
896
|
+
export interface ToolConfiguration {
|
897
|
+
/**
|
898
|
+
* An array of tools that you want to pass to a model.
|
899
|
+
*/
|
900
|
+
tools: ToolConfigurationToolsList;
|
901
|
+
/**
|
902
|
+
* If supported by model, forces the model to request a tool.
|
903
|
+
*/
|
904
|
+
toolChoice?: ToolChoice;
|
905
|
+
}
|
906
|
+
export type ToolConfigurationToolsList = Tool[];
|
907
|
+
export interface ToolInputSchema {
|
908
|
+
/**
|
909
|
+
* The JSON schema for the tool. For more information, see JSON Schema Reference.
|
910
|
+
*/
|
911
|
+
json?: Document;
|
912
|
+
}
|
913
|
+
export type ToolName = string;
|
914
|
+
export interface ToolResultBlock {
|
915
|
+
/**
|
916
|
+
* The ID of the tool request that this is the result for.
|
917
|
+
*/
|
918
|
+
toolUseId: ToolUseId;
|
919
|
+
/**
|
920
|
+
* The content for tool result content block.
|
921
|
+
*/
|
922
|
+
content: ToolResultContentBlocks;
|
923
|
+
/**
|
924
|
+
* The status for the tool result content block. This field is only supported Anthropic Claude 3 models.
|
925
|
+
*/
|
926
|
+
status?: ToolResultStatus;
|
927
|
+
}
|
928
|
+
export interface ToolResultContentBlock {
|
929
|
+
/**
|
930
|
+
* A tool result that is JSON format data.
|
931
|
+
*/
|
932
|
+
json?: Document;
|
933
|
+
/**
|
934
|
+
* A tool result that is text.
|
935
|
+
*/
|
936
|
+
text?: String;
|
937
|
+
/**
|
938
|
+
* A tool result that is an image. This field is only supported by Anthropic Claude 3 models.
|
939
|
+
*/
|
940
|
+
image?: ImageBlock;
|
941
|
+
/**
|
942
|
+
* A tool result that is a document.
|
943
|
+
*/
|
944
|
+
document?: DocumentBlock;
|
945
|
+
}
|
946
|
+
export type ToolResultContentBlocks = ToolResultContentBlock[];
|
947
|
+
export type ToolResultStatus = "success"|"error"|string;
|
948
|
+
export interface ToolSpecification {
|
949
|
+
/**
|
950
|
+
* The name for the tool.
|
951
|
+
*/
|
952
|
+
name: ToolName;
|
953
|
+
/**
|
954
|
+
* The description for the tool.
|
955
|
+
*/
|
956
|
+
description?: NonEmptyString;
|
957
|
+
/**
|
958
|
+
* The input schema for the tool in JSON format.
|
959
|
+
*/
|
960
|
+
inputSchema: ToolInputSchema;
|
961
|
+
}
|
962
|
+
export interface ToolUseBlock {
|
963
|
+
/**
|
964
|
+
* The ID for the tool request.
|
965
|
+
*/
|
966
|
+
toolUseId: ToolUseId;
|
967
|
+
/**
|
968
|
+
* The name of the tool that the model wants to use.
|
969
|
+
*/
|
970
|
+
name: ToolName;
|
971
|
+
/**
|
972
|
+
* The input to pass to the tool.
|
973
|
+
*/
|
974
|
+
input: Document;
|
975
|
+
}
|
976
|
+
export interface ToolUseBlockDelta {
|
977
|
+
/**
|
978
|
+
* The input for a requested tool.
|
979
|
+
*/
|
980
|
+
input: String;
|
981
|
+
}
|
982
|
+
export interface ToolUseBlockStart {
|
983
|
+
/**
|
984
|
+
* The ID for the tool request.
|
985
|
+
*/
|
986
|
+
toolUseId: ToolUseId;
|
987
|
+
/**
|
988
|
+
* The name of the tool that the model is requesting to use.
|
989
|
+
*/
|
990
|
+
name: ToolName;
|
991
|
+
}
|
992
|
+
export type ToolUseId = string;
|
148
993
|
export type Trace = "ENABLED"|"DISABLED"|string;
|
149
994
|
export interface ValidationException {
|
150
995
|
message?: NonBlankString;
|