@pgarbe/cdk-ecr-sync 0.5.25 → 0.5.28
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/.gitattributes +0 -1
- package/.jsii +149 -6
- package/.projenrc.ts +6 -4
- package/CHANGELOG.md +1 -1
- package/lib/ecr-sync.d.ts +5 -22
- package/lib/ecr-sync.d.ts.map +1 -0
- package/lib/ecr-sync.js +3 -10
- package/lib/image.d.ts +6 -8
- package/lib/image.d.ts.map +1 -0
- package/lib/image.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/lambda/docker-adapter.d.ts +1 -0
- package/lib/lambda/docker-adapter.d.ts.map +1 -0
- package/lib/lambda/ecr-adapter.d.ts +1 -0
- package/lib/lambda/ecr-adapter.d.ts.map +1 -0
- package/lib/lambda/get-image-tags-handler.d.ts +1 -0
- package/lib/lambda/get-image-tags-handler.d.ts.map +1 -0
- package/node_modules/aws-sdk/CHANGELOG.md +433 -1
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/acm-pca-2017-08-22.min.json +56 -25
- package/node_modules/aws-sdk/apis/amplify-2017-07-25.min.json +68 -50
- package/node_modules/aws-sdk/apis/amplifybackend-2020-08-11.min.json +47 -7
- package/node_modules/aws-sdk/apis/amplifyuibuilder-2021-08-11.min.json +144 -65
- package/node_modules/aws-sdk/apis/amplifyuibuilder-2021-08-11.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/apigateway-2015-07-09.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/appconfig-2019-10-09.min.json +3 -1
- package/node_modules/aws-sdk/apis/appconfigdata-2021-11-11.min.json +11 -11
- package/node_modules/aws-sdk/apis/appflow-2020-08-23.min.json +739 -235
- package/node_modules/aws-sdk/apis/appflow-2020-08-23.paginators.json +7 -1
- package/node_modules/aws-sdk/apis/apprunner-2020-05-15.min.json +350 -32
- package/node_modules/aws-sdk/apis/apprunner-2020-05-15.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/appstream-2016-12-01.min.json +9 -0
- package/node_modules/aws-sdk/apis/athena-2017-05-18.min.json +90 -31
- package/node_modules/aws-sdk/apis/auditmanager-2017-07-25.min.json +5 -1
- package/node_modules/aws-sdk/apis/autoscaling-2011-01-01.examples.json +31 -46
- package/node_modules/aws-sdk/apis/autoscaling-2011-01-01.min.json +113 -90
- package/node_modules/aws-sdk/apis/backup-2018-11-15.min.json +30 -0
- package/node_modules/aws-sdk/apis/backup-2018-11-15.paginators.json +22 -11
- package/node_modules/aws-sdk/apis/batch-2016-08-10.min.json +143 -94
- package/node_modules/aws-sdk/apis/billingconductor-2021-07-30.examples.json +5 -0
- package/node_modules/aws-sdk/apis/billingconductor-2021-07-30.min.json +1374 -0
- package/node_modules/aws-sdk/apis/billingconductor-2021-07-30.paginators.json +62 -0
- package/node_modules/aws-sdk/apis/billingconductor-2021-07-30.waiters2.json +4 -0
- package/node_modules/aws-sdk/apis/braket-2019-09-01.min.json +30 -27
- package/node_modules/aws-sdk/apis/budgets-2016-10-20.min.json +107 -45
- package/node_modules/aws-sdk/apis/budgets-2016-10-20.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/ce-2017-10-25.min.json +206 -125
- package/node_modules/aws-sdk/apis/chime-2018-05-01.min.json +3 -0
- package/node_modules/aws-sdk/apis/chime-sdk-media-pipelines-2021-07-15.examples.json +5 -0
- package/node_modules/aws-sdk/apis/chime-sdk-media-pipelines-2021-07-15.min.json +330 -0
- package/node_modules/aws-sdk/apis/chime-sdk-media-pipelines-2021-07-15.paginators.json +9 -0
- package/node_modules/aws-sdk/apis/chime-sdk-meetings-2021-07-15.min.json +16 -11
- package/node_modules/aws-sdk/apis/cloudcontrol-2021-09-30.paginators.json +4 -2
- package/node_modules/aws-sdk/apis/cloudcontrol-2021-09-30.waiters2.json +23 -27
- package/node_modules/aws-sdk/apis/cloudformation-2010-05-15.min.json +86 -25
- package/node_modules/aws-sdk/apis/cloudfront-2020-05-31.min.json +42 -28
- package/node_modules/aws-sdk/apis/cloudtrail-2013-11-01.min.json +25 -2
- package/node_modules/aws-sdk/apis/codeguru-reviewer-2019-09-19.min.json +15 -8
- package/node_modules/aws-sdk/apis/codeguru-reviewer-2019-09-19.waiters2.json +14 -2
- package/node_modules/aws-sdk/apis/cognito-idp-2016-04-18.min.json +119 -118
- package/node_modules/aws-sdk/apis/comprehend-2017-11-27.min.json +308 -79
- package/node_modules/aws-sdk/apis/comprehend-2017-11-27.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/config-2014-11-12.min.json +217 -113
- package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +832 -139
- package/node_modules/aws-sdk/apis/connect-2017-08-08.paginators.json +33 -0
- package/node_modules/aws-sdk/apis/customer-profiles-2020-08-15.min.json +537 -200
- package/node_modules/aws-sdk/apis/databrew-2017-07-25.min.json +41 -38
- package/node_modules/aws-sdk/apis/dataexchange-2017-07-25.min.json +83 -4
- package/node_modules/aws-sdk/apis/datasync-2018-11-09.min.json +144 -74
- package/node_modules/aws-sdk/apis/devops-guru-2020-12-01.min.json +213 -119
- package/node_modules/aws-sdk/apis/discovery-2015-11-01.min.json +67 -32
- package/node_modules/aws-sdk/apis/docdb-2014-10-31.min.json +10 -2
- package/node_modules/aws-sdk/apis/dynamodb-2012-08-10.min.json +10 -4
- package/node_modules/aws-sdk/apis/ec2-2016-11-15.min.json +1179 -850
- package/node_modules/aws-sdk/apis/ec2-2016-11-15.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/ec2-2016-11-15.waiters2.json +18 -0
- package/node_modules/aws-sdk/apis/ecr-2015-09-21.min.json +14 -11
- package/node_modules/aws-sdk/apis/ecr-2015-09-21.paginators.json +4 -1
- package/node_modules/aws-sdk/apis/ecs-2014-11-13.min.json +10 -0
- package/node_modules/aws-sdk/apis/elasticfilesystem-2015-02-01.min.json +149 -21
- package/node_modules/aws-sdk/apis/elasticmapreduce-2009-03-31.min.json +47 -35
- package/node_modules/aws-sdk/apis/es-2015-01-01.min.json +125 -49
- package/node_modules/aws-sdk/apis/eventbridge-2015-10-07.min.json +262 -19
- package/node_modules/aws-sdk/apis/evidently-2021-02-01.min.json +14 -0
- package/node_modules/aws-sdk/apis/finspace-data-2020-07-13.min.json +454 -7
- package/node_modules/aws-sdk/apis/finspace-data-2020-07-13.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/fis-2020-12-01.min.json +229 -31
- package/node_modules/aws-sdk/apis/fis-2020-12-01.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/fms-2018-01-01.min.json +265 -82
- package/node_modules/aws-sdk/apis/fms-2018-01-01.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/frauddetector-2019-11-15.min.json +212 -6
- package/node_modules/aws-sdk/apis/frauddetector-2019-11-15.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/fsx-2018-03-01.min.json +123 -98
- package/node_modules/aws-sdk/apis/fsx-2018-03-01.paginators.json +4 -2
- package/node_modules/aws-sdk/apis/gamesparks-2021-08-17.examples.json +5 -0
- package/node_modules/aws-sdk/apis/gamesparks-2021-08-17.min.json +1363 -0
- package/node_modules/aws-sdk/apis/gamesparks-2021-08-17.paginators.json +46 -0
- package/node_modules/aws-sdk/apis/glue-2017-03-31.min.json +2257 -440
- package/node_modules/aws-sdk/apis/glue-2017-03-31.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/grafana-2020-08-18.min.json +194 -19
- package/node_modules/aws-sdk/apis/guardduty-2017-11-28.min.json +352 -77
- package/node_modules/aws-sdk/apis/imagebuilder-2019-12-02.min.json +107 -73
- package/node_modules/aws-sdk/apis/iot-2015-05-28.min.json +280 -202
- package/node_modules/aws-sdk/apis/iot-2015-05-28.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/iot-data-2015-05-28.min.json +1 -1
- package/node_modules/aws-sdk/apis/iotsecuretunneling-2018-10-05.min.json +28 -0
- package/node_modules/aws-sdk/apis/iotsitewise-2019-12-02.min.json +516 -168
- package/node_modules/aws-sdk/apis/iotsitewise-2019-12-02.paginators.json +14 -0
- package/node_modules/aws-sdk/apis/iottwinmaker-2021-11-29.min.json +75 -68
- package/node_modules/aws-sdk/apis/iotwireless-2020-11-22.min.json +401 -80
- package/node_modules/aws-sdk/apis/iotwireless-2020-11-22.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/ivschat-2020-07-14.examples.json +5 -0
- package/node_modules/aws-sdk/apis/ivschat-2020-07-14.min.json +443 -0
- package/node_modules/aws-sdk/apis/ivschat-2020-07-14.paginators.json +9 -0
- package/node_modules/aws-sdk/apis/kafka-2018-11-14.min.json +114 -94
- package/node_modules/aws-sdk/apis/kafkaconnect-2021-09-14.min.json +95 -48
- package/node_modules/aws-sdk/apis/kendra-2019-02-03.min.json +349 -83
- package/node_modules/aws-sdk/apis/kendra-2019-02-03.paginators.json +20 -0
- package/node_modules/aws-sdk/apis/keyspaces-2022-02-10.examples.json +5 -0
- package/node_modules/aws-sdk/apis/keyspaces-2022-02-10.min.json +562 -0
- package/node_modules/aws-sdk/apis/keyspaces-2022-02-10.paginators.json +22 -0
- package/node_modules/aws-sdk/apis/keyspaces-2022-02-10.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/kinesis-video-archived-media-2017-09-30.min.json +64 -0
- package/node_modules/aws-sdk/apis/kinesis-video-archived-media-2017-09-30.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/kinesisvideo-2017-09-30.min.json +145 -8
- package/node_modules/aws-sdk/apis/kms-2014-11-01.examples.json +239 -9
- package/node_modules/aws-sdk/apis/kms-2014-11-01.min.json +80 -12
- package/node_modules/aws-sdk/apis/lakeformation-2017-03-31.min.json +0 -1
- package/node_modules/aws-sdk/apis/lambda-2015-03-31.min.json +418 -149
- package/node_modules/aws-sdk/apis/lambda-2015-03-31.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/lambda-2015-03-31.waiters2.json +54 -2
- package/node_modules/aws-sdk/apis/lightsail-2016-11-28.min.json +117 -56
- package/node_modules/aws-sdk/apis/location-2020-11-19.min.json +20 -12
- package/node_modules/aws-sdk/apis/location-2020-11-19.paginators.json +2 -0
- package/node_modules/aws-sdk/apis/lookoutequipment-2020-12-15.min.json +274 -12
- package/node_modules/aws-sdk/apis/lookoutequipment-2020-12-15.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/lookoutmetrics-2017-07-25.min.json +123 -0
- package/node_modules/aws-sdk/apis/lookoutvision-2020-11-20.min.json +0 -1
- package/node_modules/aws-sdk/apis/macie2-2020-01-01.min.json +31 -28
- package/node_modules/aws-sdk/apis/mediaconnect-2018-11-14.min.json +83 -27
- package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +179 -127
- package/node_modules/aws-sdk/apis/medialive-2017-10-14.min.json +222 -154
- package/node_modules/aws-sdk/apis/mediapackage-vod-2018-11-07.min.json +16 -13
- package/node_modules/aws-sdk/apis/mediatailor-2018-04-23.min.json +416 -139
- package/node_modules/aws-sdk/apis/mediatailor-2018-04-23.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/metadata.json +20 -0
- package/node_modules/aws-sdk/apis/meteringmarketplace-2016-01-14.min.json +2 -1
- package/node_modules/aws-sdk/apis/mgn-2020-02-26.min.json +15 -19
- package/node_modules/aws-sdk/apis/models.lex.v2-2020-08-07.min.json +0 -2
- package/node_modules/aws-sdk/apis/monitoring-2010-08-01.min.json +47 -11
- package/node_modules/aws-sdk/apis/mq-2017-11-27.min.json +22 -7
- package/node_modules/aws-sdk/apis/network-firewall-2020-11-12.min.json +139 -53
- package/node_modules/aws-sdk/apis/opensearch-2021-01-01.min.json +125 -49
- package/node_modules/aws-sdk/apis/organizations-2016-11-28.min.json +77 -62
- package/node_modules/aws-sdk/apis/outposts-2019-12-03.min.json +74 -0
- package/node_modules/aws-sdk/apis/outposts-2019-12-03.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/panorama-2019-07-24.min.json +414 -346
- package/node_modules/aws-sdk/apis/personalize-2018-05-22.min.json +189 -42
- package/node_modules/aws-sdk/apis/pinpoint-2016-12-01.min.json +2 -1
- package/node_modules/aws-sdk/apis/pinpoint-sms-voice-v2-2022-03-31.examples.json +5 -0
- package/node_modules/aws-sdk/apis/pinpoint-sms-voice-v2-2022-03-31.min.json +1681 -0
- package/node_modules/aws-sdk/apis/pinpoint-sms-voice-v2-2022-03-31.paginators.json +70 -0
- package/node_modules/aws-sdk/apis/pinpoint-sms-voice-v2-2022-03-31.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/proton-2020-07-20.min.json +4 -1
- package/node_modules/aws-sdk/apis/quicksight-2018-04-01.min.json +151 -43
- package/node_modules/aws-sdk/apis/rds-2014-10-31.min.json +289 -413
- package/node_modules/aws-sdk/apis/rds-2014-10-31.paginators.json +0 -12
- package/node_modules/aws-sdk/apis/rds-data-2018-08-01.min.json +4 -1
- package/node_modules/aws-sdk/apis/redshift-2012-12-01.min.json +41 -23
- package/node_modules/aws-sdk/apis/rekognition-2016-06-27.min.json +247 -111
- package/node_modules/aws-sdk/apis/resiliencehub-2020-04-30.min.json +125 -74
- package/node_modules/aws-sdk/apis/robomaker-2018-06-29.min.json +148 -48
- package/node_modules/aws-sdk/apis/route53-recovery-cluster-2019-12-02.min.json +49 -3
- package/node_modules/aws-sdk/apis/route53-recovery-cluster-2019-12-02.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/s3-2006-03-01.examples.json +97 -97
- package/node_modules/aws-sdk/apis/s3-2006-03-01.min.json +772 -239
- package/node_modules/aws-sdk/apis/s3control-2018-08-20.min.json +154 -53
- package/node_modules/aws-sdk/apis/s3outposts-2017-07-25.min.json +64 -24
- package/node_modules/aws-sdk/apis/s3outposts-2017-07-25.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.min.json +732 -691
- package/node_modules/aws-sdk/apis/secretsmanager-2017-10-17.examples.json +15 -13
- package/node_modules/aws-sdk/apis/secretsmanager-2017-10-17.min.json +15 -10
- package/node_modules/aws-sdk/apis/securityhub-2018-10-26.min.json +392 -304
- package/node_modules/aws-sdk/apis/servicecatalog-2015-12-10.min.json +16 -8
- package/node_modules/aws-sdk/apis/servicecatalog-appregistry-2020-06-24.min.json +8 -2
- package/node_modules/aws-sdk/apis/ssm-2014-11-06.min.json +333 -294
- package/node_modules/aws-sdk/apis/ssm-contacts-2021-05-03.examples.json +1 -1
- package/node_modules/aws-sdk/apis/ssm-incidents-2018-05-10.min.json +48 -37
- package/node_modules/aws-sdk/apis/synthetics-2017-10-11.min.json +49 -36
- package/node_modules/aws-sdk/apis/textract-2018-06-27.min.json +82 -45
- package/node_modules/aws-sdk/apis/transcribe-2017-10-26.min.json +50 -40
- package/node_modules/aws-sdk/apis/transfer-2018-11-05.min.json +57 -47
- package/node_modules/aws-sdk/apis/transfer-2018-11-05.paginators.json +27 -8
- package/node_modules/aws-sdk/apis/transfer-2018-11-05.waiters2.json +45 -0
- package/node_modules/aws-sdk/apis/translate-2017-07-01.min.json +19 -18
- package/node_modules/aws-sdk/apis/wafv2-2019-07-29.min.json +313 -131
- package/node_modules/aws-sdk/apis/wisdom-2020-10-19.min.json +60 -19
- package/node_modules/aws-sdk/apis/worklink-2018-09-25.min.json +99 -33
- package/node_modules/aws-sdk/apis/workspaces-2015-04-08.min.json +195 -27
- package/node_modules/aws-sdk/apis/workspaces-web-2020-07-08.min.json +107 -36
- package/node_modules/aws-sdk/clients/acmpca.d.ts +72 -36
- package/node_modules/aws-sdk/clients/all.d.ts +6 -0
- package/node_modules/aws-sdk/clients/all.js +7 -1
- package/node_modules/aws-sdk/clients/amplify.d.ts +19 -14
- package/node_modules/aws-sdk/clients/amplifybackend.d.ts +48 -12
- package/node_modules/aws-sdk/clients/amplifyuibuilder.d.ts +142 -18
- package/node_modules/aws-sdk/clients/appconfig.d.ts +13 -13
- package/node_modules/aws-sdk/clients/appconfigdata.d.ts +18 -18
- package/node_modules/aws-sdk/clients/appflow.d.ts +691 -4
- package/node_modules/aws-sdk/clients/apprunner.d.ts +371 -20
- package/node_modules/aws-sdk/clients/appstream.d.ts +13 -1
- package/node_modules/aws-sdk/clients/athena.d.ts +92 -8
- package/node_modules/aws-sdk/clients/auditmanager.d.ts +10 -10
- package/node_modules/aws-sdk/clients/autoscaling.d.ts +62 -34
- package/node_modules/aws-sdk/clients/backup.d.ts +49 -25
- package/node_modules/aws-sdk/clients/batch.d.ts +116 -48
- package/node_modules/aws-sdk/clients/billingconductor.d.ts +1554 -0
- package/node_modules/aws-sdk/clients/billingconductor.js +19 -0
- package/node_modules/aws-sdk/clients/braket.d.ts +7 -2
- package/node_modules/aws-sdk/clients/budgets.d.ts +107 -48
- package/node_modules/aws-sdk/clients/chime.d.ts +10 -6
- package/node_modules/aws-sdk/clients/chimesdkmediapipelines.d.ts +348 -0
- package/node_modules/aws-sdk/clients/chimesdkmediapipelines.js +18 -0
- package/node_modules/aws-sdk/clients/chimesdkmeetings.d.ts +31 -5
- package/node_modules/aws-sdk/clients/cloudcontrol.d.ts +24 -24
- package/node_modules/aws-sdk/clients/cloudformation.d.ts +408 -265
- package/node_modules/aws-sdk/clients/cloudfront.d.ts +15 -0
- package/node_modules/aws-sdk/clients/cloudtrail.d.ts +34 -26
- package/node_modules/aws-sdk/clients/cloudwatch.d.ts +44 -12
- package/node_modules/aws-sdk/clients/codegurureviewer.d.ts +24 -10
- package/node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts +299 -294
- package/node_modules/aws-sdk/clients/comprehend.d.ts +337 -5
- package/node_modules/aws-sdk/clients/computeoptimizer.d.ts +3 -3
- package/node_modules/aws-sdk/clients/configservice.d.ts +220 -49
- package/node_modules/aws-sdk/clients/connect.d.ts +877 -30
- package/node_modules/aws-sdk/clients/costexplorer.d.ts +105 -19
- package/node_modules/aws-sdk/clients/customerprofiles.d.ts +365 -2
- package/node_modules/aws-sdk/clients/databrew.d.ts +8 -3
- package/node_modules/aws-sdk/clients/dataexchange.d.ts +117 -0
- package/node_modules/aws-sdk/clients/datasync.d.ts +103 -16
- package/node_modules/aws-sdk/clients/devopsguru.d.ts +109 -3
- package/node_modules/aws-sdk/clients/discovery.d.ts +63 -26
- package/node_modules/aws-sdk/clients/docdb.d.ts +56 -40
- package/node_modules/aws-sdk/clients/dynamodb.d.ts +15 -7
- package/node_modules/aws-sdk/clients/ebs.d.ts +13 -13
- package/node_modules/aws-sdk/clients/ec2.d.ts +571 -145
- package/node_modules/aws-sdk/clients/ecr.d.ts +10 -5
- package/node_modules/aws-sdk/clients/ecs.d.ts +51 -35
- package/node_modules/aws-sdk/clients/efs.d.ts +153 -26
- package/node_modules/aws-sdk/clients/eks.d.ts +14 -14
- package/node_modules/aws-sdk/clients/elasticache.d.ts +13 -13
- package/node_modules/aws-sdk/clients/emr.d.ts +38 -14
- package/node_modules/aws-sdk/clients/es.d.ts +97 -0
- package/node_modules/aws-sdk/clients/eventbridge.d.ts +386 -13
- package/node_modules/aws-sdk/clients/eventbridge.js +1 -0
- package/node_modules/aws-sdk/clients/evidently.d.ts +19 -7
- package/node_modules/aws-sdk/clients/finspacedata.d.ts +520 -46
- package/node_modules/aws-sdk/clients/fis.d.ts +266 -22
- package/node_modules/aws-sdk/clients/fms.d.ts +333 -3
- package/node_modules/aws-sdk/clients/frauddetector.d.ts +308 -0
- package/node_modules/aws-sdk/clients/fsx.d.ts +105 -69
- package/node_modules/aws-sdk/clients/gamelift.d.ts +186 -186
- package/node_modules/aws-sdk/clients/gamesparks.d.ts +1324 -0
- package/node_modules/aws-sdk/clients/gamesparks.js +18 -0
- package/node_modules/aws-sdk/clients/glue.d.ts +2588 -188
- package/node_modules/aws-sdk/clients/grafana.d.ts +153 -6
- package/node_modules/aws-sdk/clients/greengrassv2.d.ts +6 -6
- package/node_modules/aws-sdk/clients/guardduty.d.ts +314 -46
- package/node_modules/aws-sdk/clients/iam.d.ts +10 -10
- package/node_modules/aws-sdk/clients/imagebuilder.d.ts +55 -6
- package/node_modules/aws-sdk/clients/iot.d.ts +88 -22
- package/node_modules/aws-sdk/clients/iotdata.d.ts +7 -7
- package/node_modules/aws-sdk/clients/iotsecuretunneling.d.ts +52 -18
- package/node_modules/aws-sdk/clients/iotsitewise.d.ts +369 -0
- package/node_modules/aws-sdk/clients/iottwinmaker.d.ts +25 -8
- package/node_modules/aws-sdk/clients/iotwireless.d.ts +356 -25
- package/node_modules/aws-sdk/clients/ivschat.d.ts +523 -0
- package/node_modules/aws-sdk/clients/ivschat.js +18 -0
- package/node_modules/aws-sdk/clients/kafka.d.ts +19 -1
- package/node_modules/aws-sdk/clients/kafkaconnect.d.ts +50 -5
- package/node_modules/aws-sdk/clients/kendra.d.ts +489 -138
- package/node_modules/aws-sdk/clients/keyspaces.d.ts +652 -0
- package/node_modules/aws-sdk/clients/keyspaces.js +19 -0
- package/node_modules/aws-sdk/clients/kinesisvideo.d.ts +177 -10
- package/node_modules/aws-sdk/clients/kinesisvideoarchivedmedia.d.ts +94 -0
- package/node_modules/aws-sdk/clients/kms.d.ts +209 -119
- package/node_modules/aws-sdk/clients/lakeformation.d.ts +2 -2
- package/node_modules/aws-sdk/clients/lambda.d.ts +319 -16
- package/node_modules/aws-sdk/clients/lexmodelsv2.d.ts +2 -2
- package/node_modules/aws-sdk/clients/lightsail.d.ts +175 -64
- package/node_modules/aws-sdk/clients/location.d.ts +28 -19
- package/node_modules/aws-sdk/clients/lookoutequipment.d.ts +295 -9
- package/node_modules/aws-sdk/clients/lookoutmetrics.d.ts +160 -0
- package/node_modules/aws-sdk/clients/lookoutvision.d.ts +4 -4
- package/node_modules/aws-sdk/clients/macie.d.ts +50 -50
- package/node_modules/aws-sdk/clients/macie2.d.ts +7 -2
- package/node_modules/aws-sdk/clients/marketplacemetering.d.ts +17 -12
- package/node_modules/aws-sdk/clients/mediaconnect.d.ts +47 -0
- package/node_modules/aws-sdk/clients/mediaconvert.d.ts +98 -18
- package/node_modules/aws-sdk/clients/medialive.d.ts +79 -3
- package/node_modules/aws-sdk/clients/mediapackage.d.ts +4 -4
- package/node_modules/aws-sdk/clients/mediapackagevod.d.ts +5 -0
- package/node_modules/aws-sdk/clients/mediatailor.d.ts +327 -12
- package/node_modules/aws-sdk/clients/mgn.d.ts +63 -50
- package/node_modules/aws-sdk/clients/migrationhubrefactorspaces.d.ts +17 -17
- package/node_modules/aws-sdk/clients/mq.d.ts +16 -1
- package/node_modules/aws-sdk/clients/networkfirewall.d.ts +151 -21
- package/node_modules/aws-sdk/clients/opensearch.d.ts +97 -0
- package/node_modules/aws-sdk/clients/organizations.d.ts +146 -131
- package/node_modules/aws-sdk/clients/outposts.d.ts +94 -22
- package/node_modules/aws-sdk/clients/panorama.d.ts +467 -406
- package/node_modules/aws-sdk/clients/personalize.d.ts +191 -25
- package/node_modules/aws-sdk/clients/pi.d.ts +26 -26
- package/node_modules/aws-sdk/clients/pinpoint.d.ts +4 -0
- package/node_modules/aws-sdk/clients/pinpointsmsvoicev2.d.ts +2367 -0
- package/node_modules/aws-sdk/clients/pinpointsmsvoicev2.js +19 -0
- package/node_modules/aws-sdk/clients/polly.d.ts +3 -3
- package/node_modules/aws-sdk/clients/pricing.d.ts +3 -3
- package/node_modules/aws-sdk/clients/proton.d.ts +105 -101
- package/node_modules/aws-sdk/clients/quicksight.d.ts +114 -12
- package/node_modules/aws-sdk/clients/ram.d.ts +5 -5
- package/node_modules/aws-sdk/clients/rbin.d.ts +41 -41
- package/node_modules/aws-sdk/clients/rds.d.ts +600 -779
- package/node_modules/aws-sdk/clients/rdsdataservice.d.ts +22 -7
- package/node_modules/aws-sdk/clients/redshift.d.ts +68 -30
- package/node_modules/aws-sdk/clients/rekognition.d.ts +209 -53
- package/node_modules/aws-sdk/clients/resiliencehub.d.ts +138 -58
- package/node_modules/aws-sdk/clients/robomaker.d.ts +37 -36
- package/node_modules/aws-sdk/clients/route53.d.ts +12 -12
- package/node_modules/aws-sdk/clients/route53recoverycluster.d.ts +82 -10
- package/node_modules/aws-sdk/clients/route53recoveryreadiness.d.ts +275 -230
- package/node_modules/aws-sdk/clients/s3.d.ts +735 -204
- package/node_modules/aws-sdk/clients/s3control.d.ts +145 -13
- package/node_modules/aws-sdk/clients/s3outposts.d.ts +50 -18
- package/node_modules/aws-sdk/clients/sagemaker.d.ts +252 -182
- package/node_modules/aws-sdk/clients/secretsmanager.d.ts +77 -63
- package/node_modules/aws-sdk/clients/securityhub.d.ts +166 -7
- package/node_modules/aws-sdk/clients/servicecatalog.d.ts +8 -4
- package/node_modules/aws-sdk/clients/sns.d.ts +2 -2
- package/node_modules/aws-sdk/clients/ssm.d.ts +90 -37
- package/node_modules/aws-sdk/clients/ssmcontacts.d.ts +2 -2
- package/node_modules/aws-sdk/clients/ssmincidents.d.ts +21 -7
- package/node_modules/aws-sdk/clients/storagegateway.d.ts +24 -24
- package/node_modules/aws-sdk/clients/sts.d.ts +5 -5
- package/node_modules/aws-sdk/clients/synthetics.d.ts +25 -10
- package/node_modules/aws-sdk/clients/textract.d.ts +47 -14
- package/node_modules/aws-sdk/clients/timestreamquery.d.ts +1 -1
- package/node_modules/aws-sdk/clients/transcribeservice.d.ts +119 -103
- package/node_modules/aws-sdk/clients/transfer.d.ts +77 -14
- package/node_modules/aws-sdk/clients/transfer.js +1 -0
- package/node_modules/aws-sdk/clients/translate.d.ts +2 -0
- package/node_modules/aws-sdk/clients/wafv2.d.ts +274 -34
- package/node_modules/aws-sdk/clients/wisdom.d.ts +77 -32
- package/node_modules/aws-sdk/clients/workspaces.d.ts +243 -4
- package/node_modules/aws-sdk/clients/workspacesweb.d.ts +38 -4
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +44 -32
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +1367 -1072
- package/node_modules/aws-sdk/dist/aws-sdk.js +6655 -3278
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +94 -92
- package/node_modules/aws-sdk/lib/config-base.d.ts +1 -0
- package/node_modules/aws-sdk/lib/config_service_placeholders.d.ts +12 -0
- package/node_modules/aws-sdk/lib/core.d.ts +1 -0
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/lib/credentials/credential_provider_chain.js +1 -0
- package/node_modules/aws-sdk/lib/credentials/ec2_metadata_credentials.d.ts +28 -18
- package/node_modules/aws-sdk/lib/credentials/ec2_metadata_credentials.js +75 -18
- package/node_modules/aws-sdk/lib/credentials/sso_credentials.d.ts +14 -0
- package/node_modules/aws-sdk/lib/credentials/sso_credentials.js +179 -0
- package/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts +9 -1
- package/node_modules/aws-sdk/lib/model/operation.js +6 -1
- package/node_modules/aws-sdk/lib/node_loader.js +2 -0
- package/node_modules/aws-sdk/lib/param_validator.js +2 -1
- package/node_modules/aws-sdk/lib/region_config_data.json +10 -0
- package/node_modules/aws-sdk/lib/services/eventbridge.js +19 -0
- package/node_modules/aws-sdk/lib/services/s3.js +2 -1
- package/node_modules/aws-sdk/lib/services/s3util.js +6 -1
- package/node_modules/aws-sdk/package.json +2 -2
- package/node_modules/aws-sdk/scripts/region-checker/allowlist.js +8 -5
- package/node_modules/jmespath/jmespath.js +32 -27
- package/node_modules/jmespath/package.json +2 -7
- package/node_modules/jszip/.github/workflows/pr.yaml +42 -0
- package/node_modules/jszip/CHANGES.md +15 -1
- package/node_modules/jszip/LICENSE.markdown +1 -1
- package/node_modules/jszip/dist/jszip.js +37 -5
- package/node_modules/jszip/dist/jszip.min.js +2 -2
- package/node_modules/jszip/index.d.ts +79 -14
- package/node_modules/jszip/lib/index.js +1 -1
- package/node_modules/jszip/lib/load.js +8 -1
- package/node_modules/jszip/lib/utils.js +27 -2
- package/node_modules/jszip/package.json +9 -8
- package/node_modules/jszip/tsconfig.json +101 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/.npmignore +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/CHANGELOG.md +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/LICENSE +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/README.md +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/Utility.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLAttribute.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLCData.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLComment.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLDTDAttList.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLDTDElement.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLDTDEntity.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLDTDNotation.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLDeclaration.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLDocType.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLDocument.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLDocumentCB.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLElement.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLNode.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLProcessingInstruction.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLRaw.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLStreamWriter.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLStringWriter.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLStringifier.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLText.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/XMLWriterBase.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/lib/index.js +0 -0
- package/node_modules/{xmlbuilder → xml2js/node_modules/xmlbuilder}/package.json +0 -0
- package/package.json +20 -15
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
- package/node_modules/jmespath/.eslintrc +0 -10
- package/node_modules/jmespath/.npmignore +0 -1
- package/node_modules/jmespath/.travis.yml +0 -6
- package/node_modules/jmespath/BASELINE +0 -15
- package/node_modules/jmespath/Gruntfile.js +0 -36
- package/node_modules/jmespath/g.sh +0 -5
- package/node_modules/jmespath/index.html +0 -93
- package/node_modules/jmespath/james.html +0 -7
- package/node_modules/jmespath/l.js +0 -189
- package/node_modules/jmespath/perf.js +0 -33
- package/node_modules/jmespath/reservedWords.json +0 -4
- package/node_modules/jmespath/test/compliance/basic.json +0 -96
- package/node_modules/jmespath/test/compliance/boolean.json +0 -257
- package/node_modules/jmespath/test/compliance/current.json +0 -25
- package/node_modules/jmespath/test/compliance/escape.json +0 -46
- package/node_modules/jmespath/test/compliance/filters.json +0 -468
- package/node_modules/jmespath/test/compliance/functions.json +0 -825
- package/node_modules/jmespath/test/compliance/identifiers.json +0 -1377
- package/node_modules/jmespath/test/compliance/indices.json +0 -346
- package/node_modules/jmespath/test/compliance/literal.json +0 -190
- package/node_modules/jmespath/test/compliance/multiselect.json +0 -393
- package/node_modules/jmespath/test/compliance/pipe.json +0 -131
- package/node_modules/jmespath/test/compliance/slice.json +0 -187
- package/node_modules/jmespath/test/compliance/syntax.json +0 -616
- package/node_modules/jmespath/test/compliance/unicode.json +0 -38
- package/node_modules/jmespath/test/compliance/wildcard.json +0 -460
- package/node_modules/jmespath/test/compliance.js +0 -56
- package/node_modules/jmespath/test/jmespath.js +0 -217
|
@@ -300,6 +300,12 @@ export abstract class ConfigurationServicePlaceholders {
|
|
|
300
300
|
iottwinmaker?: AWS.IoTTwinMaker.Types.ClientConfiguration;
|
|
301
301
|
workspacesweb?: AWS.WorkSpacesWeb.Types.ClientConfiguration;
|
|
302
302
|
amplifyuibuilder?: AWS.AmplifyUIBuilder.Types.ClientConfiguration;
|
|
303
|
+
keyspaces?: AWS.Keyspaces.Types.ClientConfiguration;
|
|
304
|
+
billingconductor?: AWS.Billingconductor.Types.ClientConfiguration;
|
|
305
|
+
gamesparks?: AWS.GameSparks.Types.ClientConfiguration;
|
|
306
|
+
pinpointsmsvoicev2?: AWS.PinpointSMSVoiceV2.Types.ClientConfiguration;
|
|
307
|
+
ivschat?: AWS.Ivschat.Types.ClientConfiguration;
|
|
308
|
+
chimesdkmediapipelines?: AWS.ChimeSDKMediaPipelines.Types.ClientConfiguration;
|
|
303
309
|
}
|
|
304
310
|
export interface ConfigurationServiceApiVersions {
|
|
305
311
|
acm?: AWS.ACM.Types.apiVersion;
|
|
@@ -602,4 +608,10 @@ export interface ConfigurationServiceApiVersions {
|
|
|
602
608
|
iottwinmaker?: AWS.IoTTwinMaker.Types.apiVersion;
|
|
603
609
|
workspacesweb?: AWS.WorkSpacesWeb.Types.apiVersion;
|
|
604
610
|
amplifyuibuilder?: AWS.AmplifyUIBuilder.Types.apiVersion;
|
|
611
|
+
keyspaces?: AWS.Keyspaces.Types.apiVersion;
|
|
612
|
+
billingconductor?: AWS.Billingconductor.Types.apiVersion;
|
|
613
|
+
gamesparks?: AWS.GameSparks.Types.apiVersion;
|
|
614
|
+
pinpointsmsvoicev2?: AWS.PinpointSMSVoiceV2.Types.apiVersion;
|
|
615
|
+
ivschat?: AWS.Ivschat.Types.apiVersion;
|
|
616
|
+
chimesdkmediapipelines?: AWS.ChimeSDKMediaPipelines.Types.apiVersion;
|
|
605
617
|
}
|
|
@@ -10,6 +10,7 @@ export {EnvironmentCredentials} from './credentials/environment_credentials';
|
|
|
10
10
|
export {FileSystemCredentials} from './credentials/file_system_credentials';
|
|
11
11
|
export {SAMLCredentials} from './credentials/saml_credentials';
|
|
12
12
|
export {SharedIniFileCredentials} from './credentials/shared_ini_file_credentials';
|
|
13
|
+
export {SsoCredentials} from './credentials/sso_credentials';
|
|
13
14
|
export {ProcessCredentials} from './credentials/process_credentials';
|
|
14
15
|
export {TemporaryCredentials} from './credentials/temporary_credentials';
|
|
15
16
|
export {ChainableTemporaryCredentials} from './credentials/chainable_temporary_credentials';
|
|
@@ -152,6 +152,7 @@ AWS.CredentialProviderChain = AWS.util.inherit(AWS.Credentials, {
|
|
|
152
152
|
* AWS.CredentialProviderChain.defaultProviders = [
|
|
153
153
|
* function () { return new AWS.EnvironmentCredentials('AWS'); },
|
|
154
154
|
* function () { return new AWS.EnvironmentCredentials('AMAZON'); },
|
|
155
|
+
* function () { return new AWS.SsoCredentials(); },
|
|
155
156
|
* function () { return new AWS.SharedIniFileCredentials(); },
|
|
156
157
|
* function () { return new AWS.ECSCredentials(); },
|
|
157
158
|
* function () { return new AWS.ProcessCredentials(); },
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import {Credentials} from '../credentials';
|
|
2
|
+
import {Logger} from '../config-base';
|
|
3
|
+
|
|
2
4
|
export class EC2MetadataCredentials extends Credentials {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Creates credentials from the metadata service on an EC2 instance.
|
|
7
|
+
* @param {object} options - Override the default (1s) timeout period.
|
|
8
|
+
*/
|
|
9
|
+
constructor(options?: EC2MetadataCredentialsOptions);
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The original expiration of the current credential. In case of AWS
|
|
13
|
+
* outage, the EC2 metadata will extend expiration of the existing
|
|
14
|
+
* credential.
|
|
15
|
+
*/
|
|
16
|
+
originalExpiration?: Date;
|
|
17
|
+
}
|
|
18
|
+
interface EC2MetadataCredentialsOptions {
|
|
19
|
+
httpOptions?: {
|
|
20
|
+
/**
|
|
21
|
+
* Timeout in milliseconds.
|
|
22
|
+
*/
|
|
23
|
+
timeout?: number
|
|
24
|
+
/**
|
|
25
|
+
* Connection timeout in milliseconds.
|
|
26
|
+
*/
|
|
27
|
+
connectTimeout?: number
|
|
21
28
|
}
|
|
29
|
+
maxRetries?: number
|
|
30
|
+
logger?: Logger
|
|
31
|
+
}
|
|
@@ -18,15 +18,27 @@ require('../metadata_service');
|
|
|
18
18
|
* AWS.config.credentials = new AWS.EC2MetadataCredentials({
|
|
19
19
|
* httpOptions: { timeout: 5000 }, // 5 second timeout
|
|
20
20
|
* maxRetries: 10, // retry 10 times
|
|
21
|
-
* retryDelayOptions: { base: 200 } // see AWS.Config for information
|
|
21
|
+
* retryDelayOptions: { base: 200 }, // see AWS.Config for information
|
|
22
|
+
* logger: console // see AWS.Config for information
|
|
22
23
|
* });
|
|
24
|
+
* ```
|
|
23
25
|
*
|
|
24
26
|
* If your requests are timing out in connecting to the metadata service, such
|
|
25
27
|
* as when testing on a development machine, you can use the connectTimeout
|
|
26
28
|
* option, specified in milliseconds, which also defaults to 1 second.
|
|
27
|
-
*
|
|
29
|
+
*
|
|
30
|
+
* If the requests failed or returns expired credentials, it will
|
|
31
|
+
* extend the expiration of current credential, with a warning message. For more
|
|
32
|
+
* information, please go to:
|
|
33
|
+
* https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html
|
|
34
|
+
*
|
|
35
|
+
* @!attribute originalExpiration
|
|
36
|
+
* @return [Date] The optional original expiration of the current credential.
|
|
37
|
+
* In case of AWS outage, the EC2 metadata will extend expiration of the
|
|
38
|
+
* existing credential.
|
|
28
39
|
*
|
|
29
40
|
* @see AWS.Config.retryDelayOptions
|
|
41
|
+
* @see AWS.Config.logger
|
|
30
42
|
*
|
|
31
43
|
* @!macro nobrowser
|
|
32
44
|
*/
|
|
@@ -44,7 +56,7 @@ AWS.EC2MetadataCredentials = AWS.util.inherit(AWS.Credentials, {
|
|
|
44
56
|
options.httpOptions);
|
|
45
57
|
|
|
46
58
|
this.metadataService = new AWS.MetadataService(options);
|
|
47
|
-
this.
|
|
59
|
+
this.logger = options.logger || AWS.config && AWS.config.logger;
|
|
48
60
|
},
|
|
49
61
|
|
|
50
62
|
/**
|
|
@@ -62,6 +74,13 @@ AWS.EC2MetadataCredentials = AWS.util.inherit(AWS.Credentials, {
|
|
|
62
74
|
*/
|
|
63
75
|
defaultMaxRetries: 3,
|
|
64
76
|
|
|
77
|
+
/**
|
|
78
|
+
* The original expiration of the current credential. In case of AWS
|
|
79
|
+
* outage, the EC2 metadata will extend expiration of the existing
|
|
80
|
+
* credential.
|
|
81
|
+
*/
|
|
82
|
+
originalExpiration: undefined,
|
|
83
|
+
|
|
65
84
|
/**
|
|
66
85
|
* Loads the credentials from the instance metadata service
|
|
67
86
|
*
|
|
@@ -84,24 +103,62 @@ AWS.EC2MetadataCredentials = AWS.util.inherit(AWS.Credentials, {
|
|
|
84
103
|
load: function load(callback) {
|
|
85
104
|
var self = this;
|
|
86
105
|
self.metadataService.loadCredentials(function(err, creds) {
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
err = AWS.util.error(
|
|
92
|
-
new Error('EC2 Instance Metadata Serivce provided expired credentials'),
|
|
93
|
-
{ code: 'EC2MetadataCredentialsProviderFailure' }
|
|
94
|
-
);
|
|
106
|
+
if (err) {
|
|
107
|
+
if (self.hasLoadedCredentials()) {
|
|
108
|
+
self.extendExpirationIfExpired();
|
|
109
|
+
callback();
|
|
95
110
|
} else {
|
|
96
|
-
|
|
97
|
-
self.metadata = creds;
|
|
98
|
-
self.accessKeyId = creds.AccessKeyId;
|
|
99
|
-
self.secretAccessKey = creds.SecretAccessKey;
|
|
100
|
-
self.sessionToken = creds.Token;
|
|
101
|
-
self.expireTime = expireTime;
|
|
111
|
+
callback(err);
|
|
102
112
|
}
|
|
113
|
+
} else {
|
|
114
|
+
self.setCredentials(creds);
|
|
115
|
+
self.extendExpirationIfExpired();
|
|
116
|
+
callback();
|
|
103
117
|
}
|
|
104
|
-
callback(err);
|
|
105
118
|
});
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Whether this credential has been loaded.
|
|
123
|
+
* @api private
|
|
124
|
+
*/
|
|
125
|
+
hasLoadedCredentials: function hasLoadedCredentials() {
|
|
126
|
+
return this.AccessKeyId && this.secretAccessKey;
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* if expired, extend the expiration by 15 minutes base plus a jitter of 5
|
|
131
|
+
* minutes range.
|
|
132
|
+
* @api private
|
|
133
|
+
*/
|
|
134
|
+
extendExpirationIfExpired: function extendExpirationIfExpired() {
|
|
135
|
+
if (this.needsRefresh()) {
|
|
136
|
+
this.originalExpiration = this.originalExpiration || this.expireTime;
|
|
137
|
+
this.expired = false;
|
|
138
|
+
var nextTimeout = 15 * 60 + Math.floor(Math.random() * 5 * 60);
|
|
139
|
+
var currentTime = AWS.util.date.getDate().getTime();
|
|
140
|
+
this.expireTime = new Date(currentTime + nextTimeout * 1000);
|
|
141
|
+
// TODO: add doc link;
|
|
142
|
+
this.logger.warn('Attempting credential expiration extension due to a '
|
|
143
|
+
+ 'credential service availability issue. A refresh of these '
|
|
144
|
+
+ 'credentials will be attempted again at ' + this.expireTime
|
|
145
|
+
+ '\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html');
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Update the credential with new credential responded from EC2 metadata
|
|
151
|
+
* service.
|
|
152
|
+
* @api private
|
|
153
|
+
*/
|
|
154
|
+
setCredentials: function setCredentials(creds) {
|
|
155
|
+
var currentTime = AWS.util.date.getDate().getTime();
|
|
156
|
+
var expireTime = new Date(creds.Expiration);
|
|
157
|
+
this.expired = currentTime >= expireTime ? true : false;
|
|
158
|
+
this.metadata = creds;
|
|
159
|
+
this.accessKeyId = creds.AccessKeyId;
|
|
160
|
+
this.secretAccessKey = creds.SecretAccessKey;
|
|
161
|
+
this.sessionToken = creds.Token;
|
|
162
|
+
this.expireTime = expireTime;
|
|
106
163
|
}
|
|
107
164
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {Credentials} from '../credentials';
|
|
2
|
+
import SSO = require('../../clients/sso');
|
|
3
|
+
export class SsoCredentials extends Credentials {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new SsoCredentials object.
|
|
6
|
+
*/
|
|
7
|
+
constructor(options?: SsoCredentialsOptions);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface SsoCredentialsOptions {
|
|
11
|
+
profile?: string;
|
|
12
|
+
filename?: string;
|
|
13
|
+
ssoClient?: SSO;
|
|
14
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
var AWS = require('../core');
|
|
2
|
+
var path = require('path');
|
|
3
|
+
var crypto = require('crypto');
|
|
4
|
+
var iniLoader = AWS.util.iniLoader;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Represents credentials from sso.getRoleCredentials API for
|
|
8
|
+
* `sso_*` values defined in shared credentials file.
|
|
9
|
+
*
|
|
10
|
+
* ## Using SSO credentials
|
|
11
|
+
*
|
|
12
|
+
* The credentials file must specify the information below to use sso:
|
|
13
|
+
*
|
|
14
|
+
* [default]
|
|
15
|
+
* sso_account_id = 012345678901
|
|
16
|
+
* sso_region = us-east-1
|
|
17
|
+
* sso_role_name = SampleRole
|
|
18
|
+
* sso_start_url = https://d-abc123.awsapps.com/start
|
|
19
|
+
*
|
|
20
|
+
* This information will be automatically added to your shared credentials file by running
|
|
21
|
+
* `aws configure sso`.
|
|
22
|
+
*
|
|
23
|
+
* ## Using custom profiles
|
|
24
|
+
*
|
|
25
|
+
* The SDK supports loading credentials for separate profiles. This can be done
|
|
26
|
+
* in two ways:
|
|
27
|
+
*
|
|
28
|
+
* 1. Set the `AWS_PROFILE` environment variable in your process prior to
|
|
29
|
+
* loading the SDK.
|
|
30
|
+
* 2. Directly load the AWS.SsoCredentials provider:
|
|
31
|
+
*
|
|
32
|
+
* ```javascript
|
|
33
|
+
* var creds = new AWS.SsoCredentials({profile: 'myprofile'});
|
|
34
|
+
* AWS.config.credentials = creds;
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @!macro nobrowser
|
|
38
|
+
*/
|
|
39
|
+
AWS.SsoCredentials = AWS.util.inherit(AWS.Credentials, {
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new SsoCredentials object.
|
|
42
|
+
*
|
|
43
|
+
* @param options [map] a set of options
|
|
44
|
+
* @option options profile [String] (AWS_PROFILE env var or 'default')
|
|
45
|
+
* the name of the profile to load.
|
|
46
|
+
* @option options filename [String] ('~/.aws/credentials' or defined by
|
|
47
|
+
* AWS_SHARED_CREDENTIALS_FILE process env var)
|
|
48
|
+
* the filename to use when loading credentials.
|
|
49
|
+
* @option options callback [Function] (err) Credentials are eagerly loaded
|
|
50
|
+
* by the constructor. When the callback is called with no error, the
|
|
51
|
+
* credentials have been loaded successfully.
|
|
52
|
+
*/
|
|
53
|
+
constructor: function SsoCredentials(options) {
|
|
54
|
+
AWS.Credentials.call(this);
|
|
55
|
+
|
|
56
|
+
options = options || {};
|
|
57
|
+
this.errorCode = 'SsoCredentialsProviderFailure';
|
|
58
|
+
this.expired = true;
|
|
59
|
+
|
|
60
|
+
this.filename = options.filename;
|
|
61
|
+
this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile;
|
|
62
|
+
this.service = options.ssoClient;
|
|
63
|
+
this.get(options.callback || AWS.util.fn.noop);
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @api private
|
|
68
|
+
*/
|
|
69
|
+
load: function load(callback) {
|
|
70
|
+
/**
|
|
71
|
+
* The time window (15 mins) that SDK will treat the SSO token expires in before the defined expiration date in token.
|
|
72
|
+
* This is needed because server side may have invalidated the token before the defined expiration date.
|
|
73
|
+
*
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
var EXPIRE_WINDOW_MS = 15 * 60 * 1000;
|
|
77
|
+
var self = this;
|
|
78
|
+
try {
|
|
79
|
+
var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename);
|
|
80
|
+
var profile = profiles[this.profile] || {};
|
|
81
|
+
|
|
82
|
+
if (Object.keys(profile).length === 0) {
|
|
83
|
+
throw AWS.util.error(
|
|
84
|
+
new Error('Profile ' + this.profile + ' not found'),
|
|
85
|
+
{ code: self.errorCode }
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (!profile.sso_start_url || !profile.sso_account_id || !profile.sso_region || !profile.sso_role_name) {
|
|
90
|
+
throw AWS.util.error(
|
|
91
|
+
new Error('Profile ' + this.profile + ' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", ' +
|
|
92
|
+
'"sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'),
|
|
93
|
+
{ code: self.errorCode }
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
var hasher = crypto.createHash('sha1');
|
|
98
|
+
var fileName = hasher.update(profile.sso_start_url).digest('hex') + '.json';
|
|
99
|
+
|
|
100
|
+
var cachePath = path.join(
|
|
101
|
+
iniLoader.getHomeDir(),
|
|
102
|
+
'.aws',
|
|
103
|
+
'sso',
|
|
104
|
+
'cache',
|
|
105
|
+
fileName
|
|
106
|
+
);
|
|
107
|
+
var cacheFile = AWS.util.readFileSync(cachePath);
|
|
108
|
+
var cacheContent = null;
|
|
109
|
+
if (cacheFile) {
|
|
110
|
+
cacheContent = JSON.parse(cacheFile);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (!cacheContent) {
|
|
114
|
+
throw AWS.util.error(
|
|
115
|
+
new Error('Cached credentials not found under ' + this.profile + ' profile. Please make sure you log in with aws sso login first'),
|
|
116
|
+
{ code: self.errorCode }
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (!cacheContent.startUrl || !cacheContent.region || !cacheContent.accessToken || !cacheContent.expiresAt) {
|
|
121
|
+
throw AWS.util.error(
|
|
122
|
+
new Error('Cached credentials are missing required properties. Try running aws sso login.')
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (new Date(cacheContent.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) {
|
|
127
|
+
throw AWS.util.error(new Error(
|
|
128
|
+
'The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.'
|
|
129
|
+
));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (!self.service || self.service.config.region !== profile.sso_region) {
|
|
133
|
+
self.service = new AWS.SSO({ region: profile.sso_region });
|
|
134
|
+
}
|
|
135
|
+
var request = {
|
|
136
|
+
accessToken: cacheContent.accessToken,
|
|
137
|
+
accountId: profile.sso_account_id,
|
|
138
|
+
roleName: profile.sso_role_name,
|
|
139
|
+
};
|
|
140
|
+
self.service.getRoleCredentials(request, function(err, data) {
|
|
141
|
+
if (err || !data || !data.roleCredentials) {
|
|
142
|
+
callback(AWS.util.error(
|
|
143
|
+
err || new Error('Please log in using "aws sso login"'),
|
|
144
|
+
{ code: self.errorCode }
|
|
145
|
+
), null);
|
|
146
|
+
} else if (!data.roleCredentials.accessKeyId || !data.roleCredentials.secretAccessKey || !data.roleCredentials.sessionToken || !data.roleCredentials.expiration) {
|
|
147
|
+
throw AWS.util.error(new Error(
|
|
148
|
+
'SSO returns an invalid temporary credential.'
|
|
149
|
+
));
|
|
150
|
+
} else {
|
|
151
|
+
self.expired = false;
|
|
152
|
+
self.accessKeyId = data.roleCredentials.accessKeyId;
|
|
153
|
+
self.secretAccessKey = data.roleCredentials.secretAccessKey;
|
|
154
|
+
self.sessionToken = data.roleCredentials.sessionToken;
|
|
155
|
+
self.expireTime = new Date(data.roleCredentials.expiration);
|
|
156
|
+
callback(null);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
} catch (err) {
|
|
160
|
+
callback(err);
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Loads the credentials from the AWS SSO process
|
|
166
|
+
*
|
|
167
|
+
* @callback callback function(err)
|
|
168
|
+
* Called after the AWS SSO process has been executed. When this
|
|
169
|
+
* callback is called with no error, it means that the credentials
|
|
170
|
+
* information has been loaded into the object (as the `accessKeyId`,
|
|
171
|
+
* `secretAccessKey`, and `sessionToken` properties).
|
|
172
|
+
* @param err [Error] if an error occurred, this value will be filled
|
|
173
|
+
* @see get
|
|
174
|
+
*/
|
|
175
|
+
refresh: function refresh(callback) {
|
|
176
|
+
iniLoader.clearCachedFiles();
|
|
177
|
+
this.coalesceRefresh(callback || AWS.util.fn.callback);
|
|
178
|
+
},
|
|
179
|
+
});
|
|
@@ -1078,6 +1078,10 @@ export namespace DocumentClient {
|
|
|
1078
1078
|
*/
|
|
1079
1079
|
NextToken?: PartiQLNextToken;
|
|
1080
1080
|
ReturnConsumedCapacity?: ReturnConsumedCapacity;
|
|
1081
|
+
/**
|
|
1082
|
+
* The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, along with a key in LastEvaluatedKey to apply in a subsequent operation so you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation.
|
|
1083
|
+
*/
|
|
1084
|
+
Limit?: PositiveIntegerObject;
|
|
1081
1085
|
}
|
|
1082
1086
|
export interface ExecuteStatementOutput {
|
|
1083
1087
|
/**
|
|
@@ -1089,6 +1093,10 @@ export namespace DocumentClient {
|
|
|
1089
1093
|
*/
|
|
1090
1094
|
NextToken?: PartiQLNextToken;
|
|
1091
1095
|
ConsumedCapacity?: ConsumedCapacity;
|
|
1096
|
+
/**
|
|
1097
|
+
* The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If LastEvaluatedKey is empty, then the "last page" of results has been processed and there is no more data to be retrieved. If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.
|
|
1098
|
+
*/
|
|
1099
|
+
LastEvaluatedKey?: Key;
|
|
1092
1100
|
}
|
|
1093
1101
|
export interface ExecuteTransactionInput {
|
|
1094
1102
|
/**
|
|
@@ -1840,7 +1848,7 @@ export namespace DocumentClient {
|
|
|
1840
1848
|
export type PartiQLStatement = string;
|
|
1841
1849
|
export interface PointInTimeRecoveryDescription {
|
|
1842
1850
|
/**
|
|
1843
|
-
* The current state of point in time recovery:
|
|
1851
|
+
* The current state of point in time recovery: ENABLED - Point in time recovery is enabled. DISABLED - Point in time recovery is disabled.
|
|
1844
1852
|
*/
|
|
1845
1853
|
PointInTimeRecoveryStatus?: PointInTimeRecoveryStatus;
|
|
1846
1854
|
/**
|
|
@@ -23,7 +23,12 @@ function Operation(name, operation, options) {
|
|
|
23
23
|
(operation.endpointdiscovery.required ? 'REQUIRED' : 'OPTIONAL') :
|
|
24
24
|
'NULL'
|
|
25
25
|
);
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
// httpChecksum replaces usage of httpChecksumRequired, but some APIs
|
|
28
|
+
// (s3control) still uses old trait.
|
|
29
|
+
var httpChecksumRequired = operation.httpChecksumRequired
|
|
30
|
+
|| (operation.httpChecksum && operation.httpChecksum.requestChecksumRequired);
|
|
31
|
+
property(this, 'httpChecksumRequired', httpChecksumRequired, false);
|
|
27
32
|
|
|
28
33
|
memoizedProperty(this, 'input', function() {
|
|
29
34
|
if (!operation.input) {
|
|
@@ -85,6 +85,7 @@ require('./credentials/environment_credentials');
|
|
|
85
85
|
require('./credentials/file_system_credentials');
|
|
86
86
|
require('./credentials/shared_ini_file_credentials');
|
|
87
87
|
require('./credentials/process_credentials');
|
|
88
|
+
require('./credentials/sso_credentials');
|
|
88
89
|
|
|
89
90
|
// Setup default chain providers
|
|
90
91
|
// If this changes, please update documentation for
|
|
@@ -93,6 +94,7 @@ require('./credentials/process_credentials');
|
|
|
93
94
|
AWS.CredentialProviderChain.defaultProviders = [
|
|
94
95
|
function () { return new AWS.EnvironmentCredentials('AWS'); },
|
|
95
96
|
function () { return new AWS.EnvironmentCredentials('AMAZON'); },
|
|
97
|
+
function () { return new AWS.SsoCredentials(); },
|
|
96
98
|
function () { return new AWS.SharedIniFileCredentials(); },
|
|
97
99
|
function () { return new AWS.ECSCredentials(); },
|
|
98
100
|
function () { return new AWS.ProcessCredentials(); },
|
|
@@ -51,8 +51,9 @@ AWS.ParamValidator = AWS.util.inherit({
|
|
|
51
51
|
},
|
|
52
52
|
|
|
53
53
|
validateStructure: function validateStructure(shape, params, context) {
|
|
54
|
-
|
|
54
|
+
if (shape.isDocument) return true;
|
|
55
55
|
|
|
56
|
+
this.validateType(params, context, ['object'], 'structure');
|
|
56
57
|
var paramName;
|
|
57
58
|
for (var i = 0; shape.required && i < shape.required.length; i++) {
|
|
58
59
|
paramName = shape.required[i];
|
|
@@ -24,6 +24,16 @@
|
|
|
24
24
|
"signingRegion": "cn-northwest-1"
|
|
25
25
|
},
|
|
26
26
|
"us-gov-*/route53": "globalGovCloud",
|
|
27
|
+
"us-iso-*/route53": {
|
|
28
|
+
"endpoint": "{service}.c2s.ic.gov",
|
|
29
|
+
"globalEndpoint": true,
|
|
30
|
+
"signingRegion": "us-iso-east-1"
|
|
31
|
+
},
|
|
32
|
+
"us-isob-*/route53": {
|
|
33
|
+
"endpoint": "{service}.sc2s.sgov.gov",
|
|
34
|
+
"globalEndpoint": true,
|
|
35
|
+
"signingRegion": "us-isob-east-1"
|
|
36
|
+
},
|
|
27
37
|
|
|
28
38
|
"*/waf": "globalSSL",
|
|
29
39
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var AWS = require('../core');
|
|
2
|
+
|
|
3
|
+
AWS.util.update(AWS.EventBridge.prototype, {
|
|
4
|
+
/**
|
|
5
|
+
* @api private
|
|
6
|
+
*/
|
|
7
|
+
setupRequestListeners: function setupRequestListeners(request) {
|
|
8
|
+
if (request.operation === 'putEvents') {
|
|
9
|
+
var params = request.params || {};
|
|
10
|
+
if (params.EndpointId !== undefined) {
|
|
11
|
+
throw new AWS.util.error(new Error(), {
|
|
12
|
+
code: 'InvalidParameter',
|
|
13
|
+
message: 'EndpointId is not supported in current SDK.\n' +
|
|
14
|
+
'You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).'
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
});
|
|
@@ -453,7 +453,8 @@ AWS.util.update(AWS.S3.prototype, {
|
|
|
453
453
|
willComputeChecksums: function willComputeChecksums(req) {
|
|
454
454
|
var rules = req.service.api.operations[req.operation].input.members;
|
|
455
455
|
var body = req.httpRequest.body;
|
|
456
|
-
var needsContentMD5 =
|
|
456
|
+
var needsContentMD5 = req.service.config.computeChecksums &&
|
|
457
|
+
rules.ContentMD5 &&
|
|
457
458
|
!req.params.ContentMD5 &&
|
|
458
459
|
body &&
|
|
459
460
|
(AWS.util.Buffer.isBuffer(req.httpRequest.body) || typeof req.httpRequest.body === 'string');
|
|
@@ -144,9 +144,14 @@ var s3util = {
|
|
|
144
144
|
var allowFipsEndpoint = options.allowFipsEndpoint || false;
|
|
145
145
|
|
|
146
146
|
if (!regionFromArn) {
|
|
147
|
+
var message = 'ARN region is empty';
|
|
148
|
+
if (req._parsedArn.service === 's3') {
|
|
149
|
+
message = message + '\nYou may want to use multi-regional ARN. The feature is not supported in current SDK. ' +
|
|
150
|
+
'You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).';
|
|
151
|
+
}
|
|
147
152
|
throw AWS.util.error(new Error(), {
|
|
148
153
|
code: 'InvalidARN',
|
|
149
|
-
message:
|
|
154
|
+
message: message
|
|
150
155
|
});
|
|
151
156
|
}
|
|
152
157
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aws-sdk",
|
|
3
3
|
"description": "AWS SDK for JavaScript",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1137.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Amazon Web Services",
|
|
7
7
|
"email": "",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"buffer": "4.9.2",
|
|
45
45
|
"events": "1.1.1",
|
|
46
46
|
"ieee754": "1.1.13",
|
|
47
|
-
"jmespath": "0.
|
|
47
|
+
"jmespath": "0.16.0",
|
|
48
48
|
"querystring": "0.2.0",
|
|
49
49
|
"sax": "1.2.1",
|
|
50
50
|
"url": "0.10.3",
|
|
@@ -16,6 +16,9 @@ var allowlist = {
|
|
|
16
16
|
'/credentials/shared_ini_file_credentials.js': [
|
|
17
17
|
4,
|
|
18
18
|
],
|
|
19
|
+
'/credentials/sso_credentials.js': [
|
|
20
|
+
15,
|
|
21
|
+
],
|
|
19
22
|
'/http.js': [
|
|
20
23
|
5
|
|
21
24
|
],
|
|
@@ -41,13 +44,13 @@ var allowlist = {
|
|
|
41
44
|
262,
|
|
42
45
|
275,
|
|
43
46
|
281,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
772,
|
|
47
|
+
641,
|
|
48
|
+
643,
|
|
49
|
+
762,
|
|
48
50
|
773,
|
|
49
51
|
774,
|
|
50
|
-
|
|
52
|
+
775,
|
|
53
|
+
780,
|
|
51
54
|
]
|
|
52
55
|
};
|
|
53
56
|
|