awscli 1.40.17__py3-none-any.whl → 1.44.26__py3-none-any.whl
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.
- awscli/__init__.py +1 -1
- awscli/alias.py +3 -3
- awscli/argprocess.py +7 -2
- awscli/arguments.py +1 -1
- awscli/bcdoc/docevents.py +3 -0
- awscli/clidocs.py +19 -2
- awscli/clidriver.py +57 -10
- awscli/compat.py +11 -0
- awscli/customizations/argrename.py +1 -3
- awscli/customizations/cliinputjson.py +4 -0
- awscli/customizations/cloudformation/deploy.py +23 -6
- awscli/customizations/cloudformation/deployer.py +2 -2
- awscli/customizations/cloudformation/package.py +3 -2
- awscli/customizations/cloudfront.py +3 -1
- awscli/customizations/cloudtrail/subscribe.py +5 -5
- awscli/customizations/cloudtrail/validation.py +32 -11
- awscli/customizations/codecommit.py +2 -3
- awscli/customizations/codedeploy/deregister.py +5 -2
- awscli/customizations/codedeploy/push.py +7 -6
- awscli/customizations/codedeploy/register.py +5 -2
- awscli/customizations/codedeploy/systems.py +3 -1
- awscli/customizations/commands.py +2 -1
- awscli/customizations/configservice/getstatus.py +3 -3
- awscli/customizations/datapipeline/__init__.py +7 -4
- awscli/customizations/datapipeline/createdefaultroles.py +4 -2
- awscli/customizations/dlm/createdefaultrole.py +4 -2
- awscli/customizations/ec2/bundleinstance.py +2 -1
- awscli/customizations/eks/get_token.py +6 -4
- awscli/customizations/eks/update_kubeconfig.py +15 -3
- awscli/customizations/emr/argumentschema.py +355 -344
- awscli/customizations/emr/createcluster.py +520 -282
- awscli/customizations/emr/emrutils.py +83 -50
- awscli/customizations/emr/helptext.py +132 -74
- awscli/customizations/emr/steputils.py +92 -52
- awscli/customizations/gamelift/getlog.py +3 -2
- awscli/customizations/gamelift/uploadbuild.py +30 -15
- awscli/customizations/globalargs.py +169 -0
- awscli/customizations/logs/startlivetail.py +3 -3
- awscli/customizations/paginate.py +66 -1
- awscli/customizations/rds.py +3 -1
- awscli/customizations/removals.py +4 -0
- awscli/customizations/s3/filegenerator.py +7 -1
- awscli/customizations/s3/fileinfo.py +5 -1
- awscli/customizations/s3/fileinfobuilder.py +7 -0
- awscli/customizations/s3/s3handler.py +11 -0
- awscli/customizations/s3/subcommands.py +147 -6
- awscli/customizations/s3/syncstrategy/base.py +9 -0
- awscli/customizations/s3/syncstrategy/caseconflict.py +96 -0
- awscli/customizations/s3/utils.py +25 -0
- awscli/customizations/s3uploader.py +18 -8
- awscli/customizations/scalarparse.py +48 -9
- awscli/customizations/utils.py +2 -1
- awscli/customizations/waiters.py +3 -2
- awscli/data/cli.json +5 -0
- awscli/examples/apigateway/update-vpc-link.rst +47 -0
- awscli/examples/apigatewayv2/create-routing-rule.rst +52 -0
- awscli/examples/apigatewayv2/delete-routing-rule.rst +11 -0
- awscli/examples/apigatewayv2/get-routing-rule.rst +35 -0
- awscli/examples/apigatewayv2/list-routing-rules.rst +38 -0
- awscli/examples/apigatewayv2/put-routing-rule.rst +52 -0
- awscli/examples/application-signals/batch-get-service-level-objective-budget-report.rst +99 -0
- awscli/examples/application-signals/create-service-level-objective.rst +88 -0
- awscli/examples/application-signals/delete-service-level-objective.rst +10 -0
- awscli/examples/application-signals/get-service-level-objective.rst +53 -0
- awscli/examples/application-signals/get-service.rst +72 -0
- awscli/examples/application-signals/list-service-dependencies.rst +96 -0
- awscli/examples/application-signals/list-service-dependents.rst +36 -0
- awscli/examples/application-signals/list-service-level-objectives.rst +17 -0
- awscli/examples/application-signals/list-service-operations.rst +63 -0
- awscli/examples/application-signals/list-services.rst +61 -0
- awscli/examples/application-signals/list-tags-for-resource.rst +17 -0
- awscli/examples/application-signals/start-discovery.rst +9 -0
- awscli/examples/application-signals/tag-resource.rst +11 -0
- awscli/examples/application-signals/untag-resource.rst +11 -0
- awscli/examples/application-signals/update-service-level-objective.rst +69 -0
- awscli/examples/cloudformation/_package_description.rst +4 -4
- awscli/examples/cloudformation/create-generated-template.rst +50 -0
- awscli/examples/cloudformation/create-stack-refactor.rst +16 -0
- awscli/examples/cloudformation/delete-generated-template.rst +10 -0
- awscli/examples/cloudformation/describe-generated-template.rst +62 -0
- awscli/examples/cloudformation/describe-resource-scan.rst +38 -0
- awscli/examples/cloudformation/describe-stack-refactor.rst +20 -0
- awscli/examples/cloudformation/execute-stack-refactor.rst +10 -0
- awscli/examples/cloudformation/list-generated-templates.rst +41 -0
- awscli/examples/cloudformation/list-resource-scan-related-resources.rst +47 -0
- awscli/examples/cloudformation/list-resource-scan-resources.rst +30 -0
- awscli/examples/cloudformation/list-stack-refactor-actions.rst +71 -0
- awscli/examples/cloudformation/start-resource-scan.rst +14 -0
- awscli/examples/cloudfront/associate-distribution-tenant-web-acl.rst +18 -0
- awscli/examples/cloudfront/associate-distribution-web-acl.rst +18 -0
- awscli/examples/cloudfront/create-connection-group.rst +39 -0
- awscli/examples/cloudfront/create-distribution-tenant.rst +275 -0
- awscli/examples/cloudfront/create-distribution.rst +625 -235
- awscli/examples/cloudfront/create-invalidation-for-distribution-tenant.rst +29 -0
- awscli/examples/cloudfront/delete-connection-group.rst +11 -0
- awscli/examples/cloudfront/delete-distribution-tenant.rst +11 -0
- awscli/examples/cloudfront/disassociate-distribution-tenant-web-acl.rst +16 -0
- awscli/examples/cloudfront/disassociate-distribution-web-acl.rst +16 -0
- awscli/examples/cloudfront/get-connection-group-by-routing-endpoint.rst +26 -0
- awscli/examples/cloudfront/get-connection-group.rst +26 -0
- awscli/examples/cloudfront/get-distribution-tenant-by-domain.rst +37 -0
- awscli/examples/cloudfront/get-distribution-tenant.rst +31 -0
- awscli/examples/cloudfront/get-invalidation-for-distribution-tenant.rst +29 -0
- awscli/examples/cloudfront/get-managed-certificate-details.rst +25 -0
- awscli/examples/cloudfront/list-connection-groups.rst +38 -0
- awscli/examples/cloudfront/list-distribution-tenants-by-customization.rst +45 -0
- awscli/examples/cloudfront/list-distribution-tenants.rst +90 -0
- awscli/examples/cloudfront/list-distributions-by-connection-mode.rst +115 -0
- awscli/examples/cloudfront/list-domain-conflicts.rst +22 -0
- awscli/examples/cloudfront/list-invalidations-for-distribution-tenant.rst +22 -0
- awscli/examples/cloudfront/update-connection-group.rst +29 -0
- awscli/examples/cloudfront/update-distribution-tenant.rst +76 -0
- awscli/examples/cloudfront/update-domain-association.rst +18 -0
- awscli/examples/cloudfront/verify-dns-configuration.rst +20 -0
- awscli/examples/ec2/associate-ipam-resource-discovery.rst +1 -1
- awscli/examples/ec2/authorize-security-group-ingress.rst +1 -1
- awscli/examples/ec2/create-ipam-resource-discovery.rst +1 -1
- awscli/examples/ec2/delete-ipam-pool.rst +1 -1
- awscli/examples/ec2/describe-addresses-attribute.rst +1 -1
- awscli/examples/ec2/get-ipam-discovered-public-addresses.rst +1 -1
- awscli/examples/ec2/modify-ipam-resource-discovery.rst +1 -1
- awscli/examples/ec2/modify-ipam-scope.rst +1 -1
- awscli/examples/ec2/release-ipam-pool-allocation.rst +3 -3
- awscli/examples/eks/associate-access-policy.rst +29 -0
- awscli/examples/eks/create-access-entry.rst +54 -0
- awscli/examples/eks/create-pod-identity-association.rst +59 -0
- awscli/examples/eks/delete-access-entry.rst +11 -0
- awscli/examples/eks/delete-pod-identity-association.rst +28 -0
- awscli/examples/eks/describe-access-entry.rst +25 -0
- awscli/examples/eks/describe-insight.rst +36 -0
- awscli/examples/eks/describe-pod-identity-association.rst +28 -0
- awscli/examples/eks/disassociate-access-policy.rst +12 -0
- awscli/examples/eks/list-access-entries.rst +19 -0
- awscli/examples/eks/list-access-policies.rst +90 -0
- awscli/examples/eks/list-associated-access-policies.rst +27 -0
- awscli/examples/eks/list-insights.rst +67 -0
- awscli/examples/eks/list-pod-identity-associations.rst +61 -0
- awscli/examples/eks/update-access-entry.rst +28 -0
- awscli/examples/eks/update-pod-identity-association.rst +29 -0
- awscli/examples/elbv2/modify-listener.rst +95 -86
- awscli/examples/emr/create-cluster-synopsis.txt +1 -0
- awscli/examples/global_options.rst +4 -0
- awscli/examples/global_synopsis.rst +1 -0
- awscli/examples/guardduty/update-detector.rst +23 -0
- awscli/examples/ivs-realtime/create-stage.rst +6 -3
- awscli/examples/ivs-realtime/get-composition.rst +7 -4
- awscli/examples/ivs-realtime/get-participant.rst +99 -31
- awscli/examples/ivs-realtime/get-stage.rst +3 -2
- awscli/examples/ivs-realtime/list-participant-events.rst +54 -2
- awscli/examples/ivs-realtime/list-participant-replicas.rst +24 -0
- awscli/examples/ivs-realtime/list-participants.rst +61 -3
- awscli/examples/ivs-realtime/start-composition.rst +88 -3
- awscli/examples/ivs-realtime/start-participant-replication.rst +24 -0
- awscli/examples/ivs-realtime/stop-participant-replication.rst +24 -0
- awscli/examples/ivs-realtime/update-stage.rst +51 -3
- awscli/examples/kms/create-key.rst +42 -7
- awscli/examples/kms/delete-imported-key-material.rst +8 -2
- awscli/examples/kms/describe-key.rst +2 -0
- awscli/examples/kms/disable-key.rst +1 -1
- awscli/examples/kms/generate-data-key-pair-without-plaintext.rst +1 -0
- awscli/examples/kms/generate-data-key-pair.rst +1 -0
- awscli/examples/kms/generate-data-key-without-plaintext.rst +2 -1
- awscli/examples/kms/generate-data-key.rst +5 -4
- awscli/examples/kms/generate-mac.rst +45 -0
- awscli/examples/kms/generate-random.rst +1 -1
- awscli/examples/kms/get-public-key.rst +2 -3
- awscli/examples/kms/import-key-material.rst +6 -1
- awscli/examples/kms/re-encrypt.rst +3 -3
- awscli/examples/kms/sign.rst +1 -1
- awscli/examples/kms/verify-mac.rst +27 -0
- awscli/examples/kms/verify.rst +5 -1
- awscli/examples/lambda/create-function.rst +4 -4
- awscli/examples/lambda/get-function.rst +3 -3
- awscli/examples/lambda/list-functions.rst +6 -6
- awscli/examples/medical-imaging/create-datastore.rst +19 -2
- awscli/examples/medical-imaging/get-datastore.rst +24 -1
- awscli/examples/networkmanager/get-vpc-attachment.rst +1 -1
- awscli/examples/omics/cancel-run.rst +1 -1
- awscli/examples/omics/create-run-group.rst +4 -2
- awscli/examples/omics/create-workflow.rst +1 -1
- awscli/examples/omics/delete-run-group.rst +1 -1
- awscli/examples/omics/delete-run.rst +1 -1
- awscli/examples/omics/delete-workflow.rst +1 -1
- awscli/examples/omics/get-run-group.rst +1 -1
- awscli/examples/omics/get-run-task.rst +1 -1
- awscli/examples/omics/get-run.rst +1 -1
- awscli/examples/omics/get-workflow.rst +1 -1
- awscli/examples/omics/list-run-groups.rst +1 -1
- awscli/examples/omics/list-run-tasks.rst +1 -1
- awscli/examples/omics/list-runs.rst +1 -1
- awscli/examples/omics/list-workflows.rst +1 -1
- awscli/examples/omics/start-run.rst +1 -2
- awscli/examples/omics/update-workflow.rst +1 -1
- awscli/examples/pi/create-performance-analysis-report.rst +17 -0
- awscli/examples/pi/delete-performance-analysis-report.rst +12 -0
- awscli/examples/pi/describe-dimension-keys.rst +33 -1
- awscli/examples/pi/get-dimension-key-details.rst +25 -0
- awscli/examples/pi/get-performance-analysis-report.rst +27 -0
- awscli/examples/pi/get-resource-metadata.rst +20 -0
- awscli/examples/pi/list-available-resource-dimensions.rst +48 -0
- awscli/examples/pi/list-available-resource-metrics.rst +29 -0
- awscli/examples/pi/list-performance-analysis-reports.rst +44 -0
- awscli/examples/pi/list-tags-for-resource.rst +20 -0
- awscli/examples/pi/tag-resource.rst +12 -0
- awscli/examples/pi/untag-resource.rst +12 -0
- awscli/examples/route53domains/get-domain-detail.rst +3 -3
- awscli/examples/securityhub/describe-hub.rst +6 -4
- awscli/examples/servicediscovery/create-service.rst +50 -10
- awscli/examples/servicediscovery/delete-namespace.rst +18 -4
- awscli/examples/servicediscovery/delete-service-attributes.rst +15 -3
- awscli/examples/servicediscovery/delete-service.rst +13 -3
- awscli/examples/servicediscovery/deregister-instance.rst +18 -2
- awscli/examples/servicediscovery/discover-instances-revision.rst +18 -1
- awscli/examples/servicediscovery/discover-instances.rst +32 -2
- awscli/examples/servicediscovery/get-instance.rst +30 -4
- awscli/examples/servicediscovery/get-instances-health-status.rst +19 -1
- awscli/examples/servicediscovery/get-namespace.rst +40 -9
- awscli/examples/servicediscovery/get-operation.rst +32 -6
- awscli/examples/servicediscovery/get-service-attributes.rst +25 -3
- awscli/examples/servicediscovery/get-service.rst +35 -7
- awscli/examples/servicediscovery/list-instances.rst +38 -3
- awscli/examples/servicediscovery/list-namespaces.rst +45 -22
- awscli/examples/servicediscovery/list-services.rst +30 -2
- awscli/examples/servicediscovery/register-instance.rst +18 -2
- awscli/examples/servicediscovery/update-http-namespace.rst +22 -5
- awscli/examples/servicediscovery/update-instance-custom-health-status.rst +14 -1
- awscli/examples/servicediscovery/update-private-dns-namespace.rst +22 -5
- awscli/examples/servicediscovery/update-public-dns-namespace.rst +22 -5
- awscli/examples/servicediscovery/update-service-attributes.rst +14 -2
- awscli/examples/servicediscovery/update-service.rst +20 -4
- awscli/examples/ssm/put-parameter.rst +6 -6
- awscli/examples/verifiedpermissions/update-policy.rst +10 -78
- awscli/examples/workspaces/describe-workspace-directories.rst +1 -2
- awscli/examples/workspaces/register-workspace-directory.rst +2 -3
- awscli/handlers.py +0 -4
- awscli/paramfile.py +21 -4
- awscli/testutils.py +22 -4
- awscli/topics/config-vars.rst +1 -1
- awscli/topics/s3-case-insensitivity.rst +105 -0
- awscli/topics/topic-tags.json +16 -0
- awscli/utils.py +33 -2
- {awscli-1.40.17.dist-info → awscli-1.44.26.dist-info}/METADATA +18 -3
- {awscli-1.40.17.dist-info → awscli-1.44.26.dist-info}/RECORD +251 -308
- awscli/customizations/opsworks.py +0 -543
- awscli/customizations/opsworkscm.py +0 -21
- awscli/examples/elastictranscoder/cancel-job.rst +0 -8
- awscli/examples/elastictranscoder/create-job.rst +0 -94
- awscli/examples/elastictranscoder/create-pipeline.rst +0 -94
- awscli/examples/elastictranscoder/create-preset.rst +0 -141
- awscli/examples/elastictranscoder/delete-pipeline.rst +0 -13
- awscli/examples/elastictranscoder/delete-preset.rst +0 -8
- awscli/examples/elastictranscoder/list-jobs-by-pipeline.rst +0 -13
- awscli/examples/elastictranscoder/list-jobs-by-status.rst +0 -14
- awscli/examples/elastictranscoder/list-pipelines.rst +0 -84
- awscli/examples/elastictranscoder/list-presets.rst +0 -95
- awscli/examples/elastictranscoder/read-job.rst +0 -65
- awscli/examples/elastictranscoder/read-pipeline.rst +0 -59
- awscli/examples/elastictranscoder/read-preset.rst +0 -100
- awscli/examples/elastictranscoder/update-pipeline-notifications.rst +0 -52
- awscli/examples/elastictranscoder/update-pipeline-status.rst +0 -53
- awscli/examples/elastictranscoder/update-pipeline.rst +0 -95
- awscli/examples/opsworks/assign-instance.rst +0 -14
- awscli/examples/opsworks/assign-volume.rst +0 -17
- awscli/examples/opsworks/associate-elastic-ip.rst +0 -14
- awscli/examples/opsworks/attach-elastic-load-balancer.rst +0 -14
- awscli/examples/opsworks/create-app.rst +0 -64
- awscli/examples/opsworks/create-deployment.rst +0 -66
- awscli/examples/opsworks/create-instance.rst +0 -25
- awscli/examples/opsworks/create-layer.rst +0 -17
- awscli/examples/opsworks/create-server.rst +0 -43
- awscli/examples/opsworks/create-stack.rst +0 -25
- awscli/examples/opsworks/create-user-profile.rst +0 -24
- awscli/examples/opsworks/delete-app.rst +0 -17
- awscli/examples/opsworks/delete-instance.rst +0 -15
- awscli/examples/opsworks/delete-layer.rst +0 -17
- awscli/examples/opsworks/delete-stack.rst +0 -18
- awscli/examples/opsworks/delete-user-profile.rst +0 -17
- awscli/examples/opsworks/deregister-elastic-ip.rst +0 -13
- awscli/examples/opsworks/deregister-instance.rst +0 -14
- awscli/examples/opsworks/deregister-rds-db-instance.rst +0 -20
- awscli/examples/opsworks/deregister-volume.rst +0 -15
- awscli/examples/opsworks/describe-apps.rst +0 -38
- awscli/examples/opsworks/describe-commands.rst +0 -43
- awscli/examples/opsworks/describe-deployments.rst +0 -52
- awscli/examples/opsworks/describe-elastic-ips.rst +0 -24
- awscli/examples/opsworks/describe-elastic-load-balancers.rst +0 -37
- awscli/examples/opsworks/describe-instances.rst +0 -95
- awscli/examples/opsworks/describe-layers.rst +0 -171
- awscli/examples/opsworks/describe-load-based-auto-scaling.rst +0 -37
- awscli/examples/opsworks/describe-my-user-profile.rst +0 -24
- awscli/examples/opsworks/describe-permissions.rst +0 -26
- awscli/examples/opsworks/describe-raid-arrays.rst +0 -31
- awscli/examples/opsworks/describe-rds-db-instances.rst +0 -29
- awscli/examples/opsworks/describe-stack-provisioning-parameters.rst +0 -32
- awscli/examples/opsworks/describe-stack-summary.rst +0 -27
- awscli/examples/opsworks/describe-stacks.rst +0 -65
- awscli/examples/opsworks/describe-timebased-auto-scaling.rst +0 -39
- awscli/examples/opsworks/describe-user-profiles.rst +0 -32
- awscli/examples/opsworks/describe-volumes.rst +0 -31
- awscli/examples/opsworks/detach-elastic-load-balancer.rst +0 -14
- awscli/examples/opsworks/disassociate-elastic-ip.rst +0 -14
- awscli/examples/opsworks/get-hostname-suggestion.rst +0 -21
- awscli/examples/opsworks/reboot-instance.rst +0 -14
- awscli/examples/opsworks/register-elastic-ip.rst +0 -19
- awscli/examples/opsworks/register-rds-db-instance.rst +0 -15
- awscli/examples/opsworks/register-volume.rst +0 -18
- awscli/examples/opsworks/register.rst +0 -105
- awscli/examples/opsworks/set-load-based-auto-scaling.rst +0 -38
- awscli/examples/opsworks/set-permission.rst +0 -23
- awscli/examples/opsworks/set-time-based-auto-scaling.rst +0 -33
- awscli/examples/opsworks/start-instance.rst +0 -20
- awscli/examples/opsworks/start-stack.rst +0 -15
- awscli/examples/opsworks/stop-instance.rst +0 -20
- awscli/examples/opsworks/stop-stack.rst +0 -15
- awscli/examples/opsworks/unassign-instance.rst +0 -14
- awscli/examples/opsworks/unassign-volume.rst +0 -16
- awscli/examples/opsworks/update-app.rst +0 -14
- awscli/examples/opsworks/update-elastic-ip.rst +0 -14
- awscli/examples/opsworks/update-instance.rst +0 -14
- awscli/examples/opsworks/update-layer.rst +0 -14
- awscli/examples/opsworks/update-my-user-profile.rst +0 -16
- awscli/examples/opsworks/update-rds-db-instance.rst +0 -18
- awscli/examples/opsworks/update-volume.rst +0 -16
- awscli/examples/opsworkscm/associate-node.rst +0 -22
- awscli/examples/opsworkscm/create-backup.rst +0 -46
- awscli/examples/opsworkscm/create-server.rst +0 -48
- awscli/examples/opsworkscm/delete-backup.rst +0 -17
- awscli/examples/opsworkscm/delete-server.rst +0 -16
- awscli/examples/opsworkscm/describe-account-attributes.rst +0 -26
- awscli/examples/opsworkscm/describe-backups.rst +0 -44
- awscli/examples/opsworkscm/describe-events.rst +0 -21
- awscli/examples/opsworkscm/describe-node-association-status.rst +0 -20
- awscli/examples/opsworkscm/describe-servers.rst +0 -48
- awscli/examples/opsworkscm/disassociate-node.rst +0 -19
- awscli/examples/opsworkscm/restore-server.rst +0 -20
- awscli/examples/opsworkscm/start-maintenance.rst +0 -39
- awscli/examples/opsworkscm/update-server-engine-attributes.rst +0 -43
- awscli/examples/opsworkscm/update-server.rst +0 -42
- awscli/examples/qldb/cancel-journal-kinesis-stream.rst +0 -15
- awscli/examples/qldb/create-ledger.rst +0 -43
- awscli/examples/qldb/delete-ledger.rst +0 -10
- awscli/examples/qldb/describe-journal-kinesis-stream.rst +0 -29
- awscli/examples/qldb/describe-journal-s3-export.rst +0 -30
- awscli/examples/qldb/describe-ledger.rst +0 -23
- awscli/examples/qldb/export-journal-to-s3.rst +0 -28
- awscli/examples/qldb/get-block.rst +0 -55
- awscli/examples/qldb/get-digest.rst +0 -17
- awscli/examples/qldb/get-revision.rst +0 -57
- awscli/examples/qldb/list-journal-kinesis-streams-for-ledger.rst +0 -30
- awscli/examples/qldb/list-journal-s3-exports-for-ledger.rst +0 -31
- awscli/examples/qldb/list-journal-s3-exports.rst +0 -46
- awscli/examples/qldb/list-ledgers.rst +0 -24
- awscli/examples/qldb/list-tags-for-resource.rst +0 -17
- awscli/examples/qldb/stream-journal-to-kinesis.rst +0 -46
- awscli/examples/qldb/tag-resource.rst +0 -11
- awscli/examples/qldb/untag-resource.rst +0 -11
- awscli/examples/qldb/update-ledger-permissions-mode.rst +0 -34
- awscli/examples/qldb/update-ledger.rst +0 -63
- awscli/examples/robomaker/batch-describe-simulation-job.rst +0 -150
- awscli/examples/robomaker/cancel-simulation-job.rst +0 -6
- awscli/examples/robomaker/create-deployment-job.rst +0 -37
- awscli/examples/robomaker/create-fleet.rst +0 -18
- awscli/examples/robomaker/create-robot-application-version.rst +0 -31
- awscli/examples/robomaker/create-robot-application.rst +0 -29
- awscli/examples/robomaker/create-robot.rst +0 -20
- awscli/examples/robomaker/create-simulation-application-version.rst +0 -39
- awscli/examples/robomaker/create-simulation-application.rst +0 -38
- awscli/examples/robomaker/create-simulation-job.rst +0 -43
- awscli/examples/robomaker/delete-fleet.rst +0 -7
- awscli/examples/robomaker/delete-robot-application.rst +0 -7
- awscli/examples/robomaker/delete-robot.rst +0 -7
- awscli/examples/robomaker/delete-simulation-application.rst +0 -7
- awscli/examples/robomaker/deregister-robot.rst +0 -14
- awscli/examples/robomaker/describe-deployment-job.rst +0 -38
- awscli/examples/robomaker/describe-fleet.rst +0 -28
- awscli/examples/robomaker/describe-robot-application.rst +0 -29
- awscli/examples/robomaker/describe-robot.rst +0 -21
- awscli/examples/robomaker/describe-simulation-application.rst +0 -37
- awscli/examples/robomaker/describe-simulation-job.rst +0 -45
- awscli/examples/robomaker/list-deployment-jobs.rst +0 -57
- awscli/examples/robomaker/list-fleets.rst +0 -22
- awscli/examples/robomaker/list-robot-applications.rst +0 -32
- awscli/examples/robomaker/list-robots.rst +0 -45
- awscli/examples/robomaker/list-simulation-applications.rst +0 -50
- awscli/examples/robomaker/list-simulation-jobs.rst +0 -80
- awscli/examples/robomaker/list-tags-for-resource.rst +0 -16
- awscli/examples/robomaker/register-robot.rst +0 -14
- awscli/examples/robomaker/restart-simulation-job.rst +0 -7
- awscli/examples/robomaker/sync-deployment-job.rst +0 -30
- awscli/examples/robomaker/tag-resource.rst +0 -7
- awscli/examples/robomaker/untag-resource.rst +0 -7
- awscli/examples/robomaker/update-robot-application.rst +0 -28
- awscli/examples/robomaker/update-simulation-application.rst +0 -36
- {awscli-1.40.17.data → awscli-1.44.26.data}/scripts/aws +0 -0
- {awscli-1.40.17.data → awscli-1.44.26.data}/scripts/aws.cmd +0 -0
- {awscli-1.40.17.data → awscli-1.44.26.data}/scripts/aws_bash_completer +0 -0
- {awscli-1.40.17.data → awscli-1.44.26.data}/scripts/aws_completer +0 -0
- {awscli-1.40.17.data → awscli-1.44.26.data}/scripts/aws_zsh_completer.sh +0 -0
- {awscli-1.40.17.dist-info → awscli-1.44.26.dist-info}/LICENSE.txt +0 -0
- {awscli-1.40.17.dist-info → awscli-1.44.26.dist-info}/WHEEL +0 -0
- {awscli-1.40.17.dist-info → awscli-1.44.26.dist-info}/top_level.txt +0 -0
|
@@ -15,12 +15,10 @@ import json
|
|
|
15
15
|
import logging
|
|
16
16
|
import os
|
|
17
17
|
|
|
18
|
+
from botocore.exceptions import NoCredentialsError
|
|
18
19
|
|
|
19
20
|
from awscli.clidriver import CLIOperationCaller
|
|
20
|
-
from awscli.customizations.emr import constants
|
|
21
|
-
from awscli.customizations.emr import exceptions
|
|
22
|
-
from botocore.exceptions import WaiterError, NoCredentialsError
|
|
23
|
-
from botocore import xform_name
|
|
21
|
+
from awscli.customizations.emr import constants, exceptions
|
|
24
22
|
|
|
25
23
|
LOG = logging.getLogger(__name__)
|
|
26
24
|
|
|
@@ -56,11 +54,16 @@ def parse_key_value_string(key_value_string):
|
|
|
56
54
|
|
|
57
55
|
|
|
58
56
|
def apply_boolean_options(
|
|
59
|
-
|
|
57
|
+
true_option, true_option_name, false_option, false_option_name
|
|
58
|
+
):
|
|
60
59
|
if true_option and false_option:
|
|
61
|
-
error_message =
|
|
62
|
-
'aws: error: cannot use both '
|
|
63
|
-
|
|
60
|
+
error_message = (
|
|
61
|
+
'aws: error: cannot use both '
|
|
62
|
+
+ true_option_name
|
|
63
|
+
+ ' and '
|
|
64
|
+
+ false_option_name
|
|
65
|
+
+ ' options together.'
|
|
66
|
+
)
|
|
64
67
|
raise ValueError(error_message)
|
|
65
68
|
elif true_option:
|
|
66
69
|
return True
|
|
@@ -91,13 +94,16 @@ def apply_params(src_params, src_key, dest_params, dest_key):
|
|
|
91
94
|
|
|
92
95
|
|
|
93
96
|
def build_step(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
jar,
|
|
98
|
+
name='Step',
|
|
99
|
+
action_on_failure=constants.DEFAULT_FAILURE_ACTION,
|
|
100
|
+
args=None,
|
|
101
|
+
main_class=None,
|
|
102
|
+
properties=None,
|
|
103
|
+
log_uri=None,
|
|
104
|
+
encryption_key_arn=None,
|
|
105
|
+
):
|
|
106
|
+
check_required_field(structure='HadoopJarStep', name='Jar', value=jar)
|
|
101
107
|
|
|
102
108
|
step = {}
|
|
103
109
|
apply_dict(step, 'Name', name)
|
|
@@ -108,17 +114,26 @@ def build_step(
|
|
|
108
114
|
apply_dict(jar_config, 'MainClass', main_class)
|
|
109
115
|
apply_dict(jar_config, 'Properties', properties)
|
|
110
116
|
step['HadoopJarStep'] = jar_config
|
|
117
|
+
step_monitoring_config = {}
|
|
118
|
+
s3_monitoring_configuration = {}
|
|
119
|
+
apply_dict(s3_monitoring_configuration, 'LogUri', log_uri)
|
|
120
|
+
apply_dict(
|
|
121
|
+
s3_monitoring_configuration, 'EncryptionKeyArn', encryption_key_arn
|
|
122
|
+
)
|
|
123
|
+
if s3_monitoring_configuration:
|
|
124
|
+
step_monitoring_config['S3MonitoringConfiguration'] = (
|
|
125
|
+
s3_monitoring_configuration
|
|
126
|
+
)
|
|
127
|
+
step['StepMonitoringConfiguration'] = step_monitoring_config
|
|
111
128
|
|
|
112
129
|
return step
|
|
113
130
|
|
|
114
131
|
|
|
115
|
-
def build_bootstrap_action(
|
|
116
|
-
path,
|
|
117
|
-
name='Bootstrap Action',
|
|
118
|
-
args=None):
|
|
132
|
+
def build_bootstrap_action(path, name='Bootstrap Action', args=None):
|
|
119
133
|
if path is None:
|
|
120
134
|
raise exceptions.MissingParametersError(
|
|
121
|
-
object_name='ScriptBootstrapActionConfig', missing='Path'
|
|
135
|
+
object_name='ScriptBootstrapActionConfig', missing='Path'
|
|
136
|
+
)
|
|
122
137
|
ba_config = {}
|
|
123
138
|
apply_dict(ba_config, 'Name', name)
|
|
124
139
|
script_config = {}
|
|
@@ -132,20 +147,22 @@ def build_bootstrap_action(
|
|
|
132
147
|
def build_s3_link(relative_path='', region='us-east-1'):
|
|
133
148
|
if region is None:
|
|
134
149
|
region = 'us-east-1'
|
|
135
|
-
return 's3://{
|
|
150
|
+
return f's3://{region}.elasticmapreduce{relative_path}'
|
|
136
151
|
|
|
137
152
|
|
|
138
153
|
def get_script_runner(region='us-east-1'):
|
|
139
154
|
if region is None:
|
|
140
155
|
region = 'us-east-1'
|
|
141
156
|
return build_s3_link(
|
|
142
|
-
relative_path=constants.SCRIPT_RUNNER_PATH, region=region
|
|
157
|
+
relative_path=constants.SCRIPT_RUNNER_PATH, region=region
|
|
158
|
+
)
|
|
143
159
|
|
|
144
160
|
|
|
145
161
|
def check_required_field(structure, name, value):
|
|
146
162
|
if not value:
|
|
147
163
|
raise exceptions.MissingParametersError(
|
|
148
|
-
object_name=structure, missing=name
|
|
164
|
+
object_name=structure, missing=name
|
|
165
|
+
)
|
|
149
166
|
|
|
150
167
|
|
|
151
168
|
def check_empty_string_list(name, value):
|
|
@@ -153,8 +170,14 @@ def check_empty_string_list(name, value):
|
|
|
153
170
|
raise exceptions.EmptyListError(param=name)
|
|
154
171
|
|
|
155
172
|
|
|
156
|
-
def call(
|
|
157
|
-
|
|
173
|
+
def call(
|
|
174
|
+
session,
|
|
175
|
+
operation_name,
|
|
176
|
+
parameters,
|
|
177
|
+
region_name=None,
|
|
178
|
+
endpoint_url=None,
|
|
179
|
+
verify=None,
|
|
180
|
+
):
|
|
158
181
|
# We could get an error from get_endpoint() about not having
|
|
159
182
|
# a region configured. Before this happens we want to check
|
|
160
183
|
# for credentials so we can give a good error message.
|
|
@@ -162,8 +185,11 @@ def call(session, operation_name, parameters, region_name=None,
|
|
|
162
185
|
raise NoCredentialsError()
|
|
163
186
|
|
|
164
187
|
client = session.create_client(
|
|
165
|
-
'emr',
|
|
166
|
-
|
|
188
|
+
'emr',
|
|
189
|
+
region_name=region_name,
|
|
190
|
+
endpoint_url=endpoint_url,
|
|
191
|
+
verify=verify,
|
|
192
|
+
)
|
|
167
193
|
LOG.debug('Calling ' + str(operation_name))
|
|
168
194
|
return getattr(client, operation_name)(**parameters)
|
|
169
195
|
|
|
@@ -181,7 +207,8 @@ def get_client(session, parsed_globals):
|
|
|
181
207
|
'emr',
|
|
182
208
|
region_name=get_region(session, parsed_globals),
|
|
183
209
|
endpoint_url=parsed_globals.endpoint_url,
|
|
184
|
-
verify=parsed_globals.verify_ssl
|
|
210
|
+
verify=parsed_globals.verify_ssl,
|
|
211
|
+
)
|
|
185
212
|
|
|
186
213
|
|
|
187
214
|
def get_cluster_state(session, parsed_globals, cluster_id):
|
|
@@ -209,12 +236,13 @@ def which(program):
|
|
|
209
236
|
return None
|
|
210
237
|
|
|
211
238
|
|
|
212
|
-
def call_and_display_response(
|
|
213
|
-
|
|
239
|
+
def call_and_display_response(
|
|
240
|
+
session, operation_name, parameters, parsed_globals
|
|
241
|
+
):
|
|
214
242
|
cli_operation_caller = CLIOperationCaller(session)
|
|
215
243
|
cli_operation_caller.invoke(
|
|
216
|
-
'emr', operation_name,
|
|
217
|
-
|
|
244
|
+
'emr', operation_name, parameters, parsed_globals
|
|
245
|
+
)
|
|
218
246
|
|
|
219
247
|
|
|
220
248
|
def display_response(session, operation_name, result, parsed_globals):
|
|
@@ -222,7 +250,8 @@ def display_response(session, operation_name, result, parsed_globals):
|
|
|
222
250
|
# Calling a private method. Should be changed after the functionality
|
|
223
251
|
# is moved outside CliOperationCaller.
|
|
224
252
|
cli_operation_caller._display_response(
|
|
225
|
-
operation_name, result, parsed_globals
|
|
253
|
+
operation_name, result, parsed_globals
|
|
254
|
+
)
|
|
226
255
|
|
|
227
256
|
|
|
228
257
|
def get_region(session, parsed_globals):
|
|
@@ -244,8 +273,9 @@ def join(values, separator=',', lastSeparator='and'):
|
|
|
244
273
|
return values[0]
|
|
245
274
|
else:
|
|
246
275
|
separator = '%s ' % separator
|
|
247
|
-
return ' '.join(
|
|
248
|
-
|
|
276
|
+
return ' '.join(
|
|
277
|
+
[separator.join(values[:-1]), lastSeparator, values[-1]]
|
|
278
|
+
)
|
|
249
279
|
|
|
250
280
|
|
|
251
281
|
def split_to_key_value(string):
|
|
@@ -255,21 +285,24 @@ def split_to_key_value(string):
|
|
|
255
285
|
return string.split('=', 1)
|
|
256
286
|
|
|
257
287
|
|
|
258
|
-
def get_cluster(cluster_id, session, region,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
288
|
+
def get_cluster(cluster_id, session, region, endpoint_url, verify_ssl):
|
|
289
|
+
describe_cluster_params = {'ClusterId': cluster_id}
|
|
290
|
+
describe_cluster_response = call(
|
|
291
|
+
session,
|
|
292
|
+
'describe_cluster',
|
|
293
|
+
describe_cluster_params,
|
|
294
|
+
region,
|
|
295
|
+
endpoint_url,
|
|
296
|
+
verify_ssl,
|
|
297
|
+
)
|
|
265
298
|
|
|
266
|
-
|
|
267
|
-
|
|
299
|
+
if describe_cluster_response is not None:
|
|
300
|
+
return describe_cluster_response.get('Cluster')
|
|
268
301
|
|
|
269
302
|
|
|
270
|
-
def get_release_label(cluster_id, session, region,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
303
|
+
def get_release_label(cluster_id, session, region, endpoint_url, verify_ssl):
|
|
304
|
+
cluster = get_cluster(
|
|
305
|
+
cluster_id, session, region, endpoint_url, verify_ssl
|
|
306
|
+
)
|
|
307
|
+
if cluster is not None:
|
|
308
|
+
return cluster.get('ReleaseLabel')
|