awscli 1.42.33__py3-none-any.whl → 1.44.6__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.

Potentially problematic release.


This version of awscli might be problematic. Click here for more details.

Files changed (146) hide show
  1. awscli/__init__.py +1 -1
  2. awscli/alias.py +3 -3
  3. awscli/argprocess.py +2 -1
  4. awscli/arguments.py +1 -1
  5. awscli/bcdoc/docevents.py +3 -0
  6. awscli/clidocs.py +19 -2
  7. awscli/clidriver.py +55 -9
  8. awscli/customizations/argrename.py +1 -0
  9. awscli/customizations/cliinputjson.py +4 -0
  10. awscli/customizations/cloudformation/deploy.py +19 -3
  11. awscli/customizations/cloudtrail/validation.py +22 -2
  12. awscli/customizations/commands.py +2 -1
  13. awscli/customizations/eks/update_kubeconfig.py +12 -1
  14. awscli/customizations/emr/argumentschema.py +355 -344
  15. awscli/customizations/emr/createcluster.py +12 -0
  16. awscli/customizations/emr/emrutils.py +83 -50
  17. awscli/customizations/emr/helptext.py +10 -0
  18. awscli/customizations/emr/steputils.py +92 -52
  19. awscli/customizations/globalargs.py +169 -0
  20. awscli/customizations/paginate.py +66 -1
  21. awscli/customizations/s3/filegenerator.py +4 -1
  22. awscli/customizations/s3/fileinfo.py +4 -1
  23. awscli/customizations/s3/fileinfobuilder.py +6 -0
  24. awscli/customizations/s3/s3handler.py +9 -0
  25. awscli/customizations/s3/subcommands.py +147 -6
  26. awscli/customizations/s3/syncstrategy/base.py +9 -0
  27. awscli/customizations/s3/syncstrategy/caseconflict.py +92 -0
  28. awscli/customizations/s3/utils.py +14 -0
  29. awscli/customizations/scalarparse.py +48 -9
  30. awscli/data/cli.json +5 -0
  31. awscli/examples/cloudformation/create-generated-template.rst +50 -0
  32. awscli/examples/cloudformation/create-stack-refactor.rst +16 -0
  33. awscli/examples/cloudformation/delete-generated-template.rst +10 -0
  34. awscli/examples/cloudformation/describe-generated-template.rst +62 -0
  35. awscli/examples/cloudformation/describe-resource-scan.rst +38 -0
  36. awscli/examples/cloudformation/describe-stack-refactor.rst +20 -0
  37. awscli/examples/cloudformation/execute-stack-refactor.rst +10 -0
  38. awscli/examples/cloudformation/list-generated-templates.rst +41 -0
  39. awscli/examples/cloudformation/list-resource-scan-related-resources.rst +47 -0
  40. awscli/examples/cloudformation/list-resource-scan-resources.rst +30 -0
  41. awscli/examples/cloudformation/list-stack-refactor-actions.rst +71 -0
  42. awscli/examples/cloudformation/start-resource-scan.rst +14 -0
  43. awscli/examples/global_options.rst +4 -0
  44. awscli/examples/global_synopsis.rst +1 -0
  45. awscli/examples/ivs-realtime/get-composition.rst +7 -4
  46. awscli/examples/ivs-realtime/start-composition.rst +88 -3
  47. awscli/examples/lambda/create-function.rst +4 -4
  48. awscli/examples/lambda/get-function.rst +3 -3
  49. awscli/examples/lambda/list-functions.rst +6 -6
  50. awscli/examples/medical-imaging/create-datastore.rst +19 -2
  51. awscli/examples/medical-imaging/get-datastore.rst +24 -1
  52. awscli/examples/securityhub/describe-hub.rst +6 -4
  53. awscli/examples/servicediscovery/create-service.rst +50 -10
  54. awscli/examples/servicediscovery/delete-namespace.rst +18 -4
  55. awscli/examples/servicediscovery/delete-service-attributes.rst +15 -3
  56. awscli/examples/servicediscovery/delete-service.rst +13 -3
  57. awscli/examples/servicediscovery/deregister-instance.rst +18 -2
  58. awscli/examples/servicediscovery/discover-instances-revision.rst +18 -1
  59. awscli/examples/servicediscovery/discover-instances.rst +32 -2
  60. awscli/examples/servicediscovery/get-instance.rst +30 -4
  61. awscli/examples/servicediscovery/get-instances-health-status.rst +19 -1
  62. awscli/examples/servicediscovery/get-namespace.rst +40 -9
  63. awscli/examples/servicediscovery/get-operation.rst +32 -6
  64. awscli/examples/servicediscovery/get-service-attributes.rst +25 -3
  65. awscli/examples/servicediscovery/get-service.rst +35 -7
  66. awscli/examples/servicediscovery/list-instances.rst +38 -3
  67. awscli/examples/servicediscovery/list-namespaces.rst +45 -22
  68. awscli/examples/servicediscovery/list-services.rst +30 -2
  69. awscli/examples/servicediscovery/register-instance.rst +18 -2
  70. awscli/examples/servicediscovery/update-http-namespace.rst +22 -5
  71. awscli/examples/servicediscovery/update-instance-custom-health-status.rst +14 -1
  72. awscli/examples/servicediscovery/update-private-dns-namespace.rst +22 -5
  73. awscli/examples/servicediscovery/update-public-dns-namespace.rst +22 -5
  74. awscli/examples/servicediscovery/update-service-attributes.rst +14 -2
  75. awscli/examples/servicediscovery/update-service.rst +20 -4
  76. awscli/paramfile.py +21 -4
  77. awscli/testutils.py +17 -0
  78. awscli/topics/config-vars.rst +1 -1
  79. awscli/topics/s3-case-insensitivity.rst +105 -0
  80. awscli/topics/topic-tags.json +16 -0
  81. awscli/utils.py +19 -2
  82. {awscli-1.42.33.dist-info → awscli-1.44.6.dist-info}/METADATA +5 -3
  83. {awscli-1.42.33.dist-info → awscli-1.44.6.dist-info}/RECORD +91 -132
  84. awscli/examples/qldb/cancel-journal-kinesis-stream.rst +0 -15
  85. awscli/examples/qldb/create-ledger.rst +0 -43
  86. awscli/examples/qldb/delete-ledger.rst +0 -10
  87. awscli/examples/qldb/describe-journal-kinesis-stream.rst +0 -29
  88. awscli/examples/qldb/describe-journal-s3-export.rst +0 -30
  89. awscli/examples/qldb/describe-ledger.rst +0 -23
  90. awscli/examples/qldb/export-journal-to-s3.rst +0 -28
  91. awscli/examples/qldb/get-block.rst +0 -55
  92. awscli/examples/qldb/get-digest.rst +0 -17
  93. awscli/examples/qldb/get-revision.rst +0 -57
  94. awscli/examples/qldb/list-journal-kinesis-streams-for-ledger.rst +0 -30
  95. awscli/examples/qldb/list-journal-s3-exports-for-ledger.rst +0 -31
  96. awscli/examples/qldb/list-journal-s3-exports.rst +0 -46
  97. awscli/examples/qldb/list-ledgers.rst +0 -24
  98. awscli/examples/qldb/list-tags-for-resource.rst +0 -17
  99. awscli/examples/qldb/stream-journal-to-kinesis.rst +0 -46
  100. awscli/examples/qldb/tag-resource.rst +0 -11
  101. awscli/examples/qldb/untag-resource.rst +0 -11
  102. awscli/examples/qldb/update-ledger-permissions-mode.rst +0 -34
  103. awscli/examples/qldb/update-ledger.rst +0 -63
  104. awscli/examples/robomaker/batch-describe-simulation-job.rst +0 -150
  105. awscli/examples/robomaker/cancel-simulation-job.rst +0 -6
  106. awscli/examples/robomaker/create-deployment-job.rst +0 -37
  107. awscli/examples/robomaker/create-fleet.rst +0 -18
  108. awscli/examples/robomaker/create-robot-application-version.rst +0 -31
  109. awscli/examples/robomaker/create-robot-application.rst +0 -29
  110. awscli/examples/robomaker/create-robot.rst +0 -20
  111. awscli/examples/robomaker/create-simulation-application-version.rst +0 -39
  112. awscli/examples/robomaker/create-simulation-application.rst +0 -38
  113. awscli/examples/robomaker/create-simulation-job.rst +0 -43
  114. awscli/examples/robomaker/delete-fleet.rst +0 -7
  115. awscli/examples/robomaker/delete-robot-application.rst +0 -7
  116. awscli/examples/robomaker/delete-robot.rst +0 -7
  117. awscli/examples/robomaker/delete-simulation-application.rst +0 -7
  118. awscli/examples/robomaker/deregister-robot.rst +0 -14
  119. awscli/examples/robomaker/describe-deployment-job.rst +0 -38
  120. awscli/examples/robomaker/describe-fleet.rst +0 -28
  121. awscli/examples/robomaker/describe-robot-application.rst +0 -29
  122. awscli/examples/robomaker/describe-robot.rst +0 -21
  123. awscli/examples/robomaker/describe-simulation-application.rst +0 -37
  124. awscli/examples/robomaker/describe-simulation-job.rst +0 -45
  125. awscli/examples/robomaker/list-deployment-jobs.rst +0 -57
  126. awscli/examples/robomaker/list-fleets.rst +0 -22
  127. awscli/examples/robomaker/list-robot-applications.rst +0 -32
  128. awscli/examples/robomaker/list-robots.rst +0 -45
  129. awscli/examples/robomaker/list-simulation-applications.rst +0 -50
  130. awscli/examples/robomaker/list-simulation-jobs.rst +0 -80
  131. awscli/examples/robomaker/list-tags-for-resource.rst +0 -16
  132. awscli/examples/robomaker/register-robot.rst +0 -14
  133. awscli/examples/robomaker/restart-simulation-job.rst +0 -7
  134. awscli/examples/robomaker/sync-deployment-job.rst +0 -30
  135. awscli/examples/robomaker/tag-resource.rst +0 -7
  136. awscli/examples/robomaker/untag-resource.rst +0 -7
  137. awscli/examples/robomaker/update-robot-application.rst +0 -28
  138. awscli/examples/robomaker/update-simulation-application.rst +0 -36
  139. {awscli-1.42.33.data → awscli-1.44.6.data}/scripts/aws +0 -0
  140. {awscli-1.42.33.data → awscli-1.44.6.data}/scripts/aws.cmd +0 -0
  141. {awscli-1.42.33.data → awscli-1.44.6.data}/scripts/aws_bash_completer +0 -0
  142. {awscli-1.42.33.data → awscli-1.44.6.data}/scripts/aws_completer +0 -0
  143. {awscli-1.42.33.data → awscli-1.44.6.data}/scripts/aws_zsh_completer.sh +0 -0
  144. {awscli-1.42.33.dist-info → awscli-1.44.6.dist-info}/LICENSE.txt +0 -0
  145. {awscli-1.42.33.dist-info → awscli-1.44.6.dist-info}/WHEEL +0 -0
  146. {awscli-1.42.33.dist-info → awscli-1.44.6.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- **To get the details of an instance**
1
+ **Example 1: To get the details of an instance**
2
2
 
3
3
  The following ``get-instance`` example gets the attributes of a service. ::
4
4
 
@@ -8,8 +8,9 @@ The following ``get-instance`` example gets the attributes of a service. ::
8
8
 
9
9
  Output::
10
10
 
11
- {
12
- "Instances": {
11
+ {
12
+ "ResourceOwner": "123456789012",
13
+ "Instance": {
13
14
  "Id": "arn:aws:servicediscovery:us-west-2:111122223333;:service/srv-e4anhexample0004",
14
15
  "Attributes": {
15
16
  "AWS_INSTANCE_IPV4": "192.0.2.44",
@@ -17,8 +18,33 @@ Output::
17
18
  "color": "green",
18
19
  "region": "us-west-2",
19
20
  "stage": "beta"
20
- }
21
+ },
22
+ "CreatedByAccount": "123456789012"
21
23
  }
22
24
  }
23
25
 
24
26
  For more information, see `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
27
+
28
+ **Example 2: To get the details of an instance using service ARN for shared namespaces**
29
+
30
+ The following ``get-instance`` example gets the attributes of an instance using a service ARN instead of service ID. Specifying an ARN is required when getting details of instances associated with namespaces that are shared with your account. The instance returned in this example was registered by account ``123456789111`` in a namespace owned by account ``123456789012``. ::
31
+
32
+ aws servicediscovery get-instance \
33
+ --service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita \
34
+ --instance-id web-server-01
35
+
36
+ Output::
37
+
38
+ {
39
+ "ResourceOwner": "123456789012",
40
+ "Instance": {
41
+ "Id": "web-server-01",
42
+ "Attributes": {
43
+ "AWS_INSTANCE_IPV4": "203.0.113.15",
44
+ "AWS_INSTANCE_PORT": "80"
45
+ },
46
+ "CreatedByAccount": "123456789111"
47
+ }
48
+ }
49
+
50
+ For more information about cross-account namespace sharing, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,4 +1,4 @@
1
- **To get the health status of instances associated with a service**
1
+ **Example 1: To get the health status of instances associated with a service**
2
2
 
3
3
  The following ``get-instances-health-status`` example gets the health status of instances associated with the specified service. ::
4
4
 
@@ -15,3 +15,21 @@ Output::
15
15
  }
16
16
 
17
17
  For more information, see `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
18
+
19
+ **Example 2: To get the health status of instances using service ARN for shared namespaces**
20
+
21
+ The following ``get-instances-health-status`` example gets the health status of instances using a service ARN instead of service ID. Specifying an ARN is required when getting health status for instances associated with namespaces that are shared with the requester's account. ::
22
+
23
+ aws servicediscovery get-instances-health-status \
24
+ --service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita
25
+
26
+ Output::
27
+
28
+ {
29
+ "Status": {
30
+ "web-server-01": "HEALTHY",
31
+ "web-server-02": "UNHEALTHY"
32
+ }
33
+ }
34
+
35
+ For more information, see `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ and `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,28 +1,59 @@
1
- **To get the details of a namespace**
1
+ **Example 1: To get the details of a namespace**
2
2
 
3
3
  The following ``get-namespace`` example retrieves information about the specified namespace. ::
4
4
 
5
5
  aws servicediscovery get-namespace \
6
- --id ns-e4anhexample0004
6
+ --id ns-abcd1234xmpl5678
7
7
 
8
8
  Output::
9
9
 
10
10
  {
11
- "Namespaces": {
12
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-e4anhexample0004",
13
- "CreateDate": "20181118T211712Z",
14
- "CreatorRequestId": "example-creator-request-id-0001",
15
- "Description": "Example.com AWS Cloud Map HTTP Namespace",
16
- "Id": "ns-e4anhexample0004",
11
+ "Namespace": {
12
+ "Id": "ns-abcd1234xmpl5678",
13
+ "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678",
14
+ "ResourceOwner": "123456789012",
17
15
  "Name": "example-http.com",
16
+ "Type": "HTTP",
17
+ "Description": "Example.com AWS Cloud Map HTTP Namespace",
18
18
  "Properties": {
19
19
  "DnsProperties": {},
20
20
  "HttpProperties": {
21
21
  "HttpName": "example-http.com"
22
22
  }
23
23
  },
24
- "Type": "HTTP"
24
+ "CreateDate": "2024-02-23T13:35:21.874000-06:00",
25
+ "CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678"
25
26
  }
26
27
  }
27
28
 
28
29
  For more information, see `AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
30
+
31
+ **Example 2: To get the details of a namespace using ARN**
32
+
33
+ The following ``get-namespace`` example retrieves information about the specified namespace using its ARN. Specifying the ARN is necessary for retreiving details of a namespace shared with your account. ::
34
+
35
+ aws servicediscovery get-namespace \
36
+ --id arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678
37
+
38
+ Output::
39
+
40
+ {
41
+ "Namespace": {
42
+ "Id": "ns-abcd1234xmpl5678",
43
+ "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678",
44
+ "ResourceOwner": "123456789012",
45
+ "Name": "example-http.com",
46
+ "Type": "HTTP",
47
+ "Description": "Example.com AWS Cloud Map HTTP Namespace",
48
+ "Properties": {
49
+ "DnsProperties": {},
50
+ "HttpProperties": {
51
+ "HttpName": "example-http.com"
52
+ }
53
+ },
54
+ "CreateDate": "2024-02-23T13:35:21.874000-06:00",
55
+ "CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678"
56
+ }
57
+ }
58
+
59
+ For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,23 +1,49 @@
1
- **To get the result of an operation**
1
+ **Example 1: To get the result of an operation**
2
2
 
3
3
  The following ``get-operation`` example gets the result of a namespace creation operation. ::
4
4
 
5
5
  aws servicediscovery get-operation \
6
- --operation-id gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd
6
+ --operation-id abcd1234xmpl5678abcd1234xmpl5678-abcd1234
7
7
 
8
8
  Output::
9
9
 
10
10
  {
11
11
  "Operation": {
12
- "Id": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd",
12
+ "Id": "abcd1234xmpl5678abcd1234xmpl5678-abcd1234",
13
13
  "Type": "CREATE_NAMESPACE",
14
14
  "Status": "SUCCESS",
15
- "CreateDate": 1587055860.121,
16
- "UpdateDate": 1587055900.469,
15
+ "CreateDate": "2025-01-13T13:35:21.874000-06:00",
16
+ "UpdateDate": "2025-01-13T13:36:02.469000-06:00",
17
17
  "Targets": {
18
- "NAMESPACE": "ns-ylexjili4cdxy3xm"
18
+ "NAMESPACE": "ns-abcd1234xmpl5678"
19
19
  }
20
20
  }
21
21
  }
22
22
 
23
23
  For more information, see `Creating an AWS Cloud Map namespace to group application services <https://docs.aws.amazon.com/cloud-map/latest/dg/creating-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
24
+
25
+ **Example 2: To get an operation from a specific owner account**
26
+
27
+ The following ``get-operation`` example gets the result of an operation associated with a specific namespace owner account. This parameter is necessary to get the result of operations associated with namespaces shared with your account. ::
28
+
29
+ aws servicediscovery get-operation \
30
+ --operation-id abcd1234xmpl5678abcd1234xmpl5678-abcd1234 \
31
+ --owner-account 123456789111
32
+
33
+ Output::
34
+
35
+ {
36
+ "Operation": {
37
+ "Id": "abcd1234xmpl5678abcd1234xmpl5678-abcd1234",
38
+ "OwnerAccount": "123456789111",
39
+ "Type": "CREATE_NAMESPACE",
40
+ "Status": "SUCCESS",
41
+ "CreateDate": "2025-01-13T13:35:21.874000-06:00",
42
+ "UpdateDate": "2025-01-13T13:36:02.469000-06:00",
43
+ "Targets": {
44
+ "NAMESPACE": "ns-abcd1234xmpl5678"
45
+ }
46
+ }
47
+ }
48
+
49
+ For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,15 +1,16 @@
1
- **To get the attributes of an service**
1
+ **Example 1: To get the attributes of a service**
2
2
 
3
3
  The following ``get-service-attributes`` example gets the attributes of a service. ::
4
4
 
5
5
  aws servicediscovery get-service-attributes \
6
- --service-id srv-e4anhexample0004
6
+ --service-id srv-abcd1234xmpl5678
7
7
 
8
8
  Output::
9
9
 
10
10
  {
11
11
  "ServiceAttributes": {
12
- "ServiceArn": "arn:aws:servicediscovery:us-west-2:111122223333;:service/srv-e4anhexample0004",
12
+ "ServiceArn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
13
+ "ResourceOwner": "123456789012",
13
14
  "Attributes": {
14
15
  "Port": "80"
15
16
  }
@@ -17,3 +18,24 @@ Output::
17
18
  }
18
19
 
19
20
  For more information, see `AWS Cloud Map services <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html>`__ in the *AWS Cloud Map Developer Guide*.
21
+
22
+ **Example 2: To get the attributes of a service using ARN**
23
+
24
+ The following ``get-service-attributes`` example gets the attributes of a service using its ARN. Specifying an ARN is necessary for getting attributes of a service created in a namespace shared with your account. ::
25
+
26
+ aws servicediscovery get-service-attributes \
27
+ --service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678
28
+
29
+ Output::
30
+
31
+ {
32
+ "ServiceAttributes": {
33
+ "ServiceArn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
34
+ "ResourceOwner": "123456789012",
35
+ "Attributes": {
36
+ "Port": "80"
37
+ }
38
+ }
39
+ }
40
+
41
+ For more information, see `AWS Cloud Map services <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html>`__ and `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,23 +1,51 @@
1
- **To get the settings of a service**
1
+ **Example 1: To get the settings of a service**
2
2
 
3
3
  The following ``get-service`` example gets the settings of a specified service. ::
4
4
 
5
5
  aws servicediscovery get-service \
6
- --id srv-e4anhexample0004
6
+ --id srv-abcd1234xmpl5678
7
7
 
8
8
  Output::
9
9
 
10
10
  {
11
11
  "Service": {
12
- "Id": "srv-e4anhexample0004",
13
- "Arn": "arn:aws:servicediscovery:us-west-2:111122223333:service/srv-e4anhexample0004",
12
+ "Id": "srv-abcd1234xmpl5678",
13
+ "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
14
+ "ResourceOwner": "123456789012",
14
15
  "Name": "test-service",
15
- "NamespaceId": "ns-e4anhexample0004",
16
+ "NamespaceId": "ns-abcd1234xmpl5678",
16
17
  "DnsConfig": {},
17
18
  "Type": "HTTP",
18
- "CreateDate": "2025-02-24T10:59:02.905000-06:00",
19
- "CreatorRequestId": "3f50f9d9-b14c-482e-a556-d2a22fe6106d"
19
+ "CreateDate": "2025-08-18T13:53:02.775000-05:00",
20
+ "CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678",
21
+ "CreatedByAccount": "123456789012"
20
22
  }
21
23
  }
22
24
 
23
25
  For more information, see `AWS Cloud Map services <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html>`__ in the *AWS Cloud Map Developer Guide*.
26
+
27
+ **Example 2: To get the settings of a service using ARN**
28
+
29
+ The following ``get-service`` example gets the settings of a specified service using its ARN. Specifying the ARN is necessary when retrieving information about a service created in a namespace that is shared with your account. The caller account ``123456789111`` created the service in a namespace shared by account ``123456789012``. ::
30
+
31
+ aws servicediscovery get-service \
32
+ --id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678
33
+
34
+ Output::
35
+
36
+ {
37
+ "Service": {
38
+ "Id": "srv-abcd1234xmpl5678",
39
+ "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
40
+ "ResourceOwner": "123456789012",
41
+ "Name": "test-service",
42
+ "NamespaceId": "ns-abcd1234xmpl5678",
43
+ "DnsConfig": {},
44
+ "Type": "HTTP",
45
+ "CreateDate": "2025-08-18T13:53:02.775000-05:00",
46
+ "CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678",
47
+ "CreatedByAccount": "123456789111"
48
+ }
49
+ }
50
+
51
+ For more information, see `Creating an AWS Cloud Map service for an application component <https://docs.aws.amazon.com/cloud-map/latest/dg/creating-services.html>`__ and `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,4 +1,4 @@
1
- **To list service instances**
1
+ **Example 1: To list service instances**
2
2
 
3
3
  The following ``list-instances`` example lists service instances. ::
4
4
 
@@ -14,10 +14,45 @@ Output::
14
14
  "Attributes": {
15
15
  "AWS_INSTANCE_IPV4": "172.2.1.3",
16
16
  "AWS_INSTANCE_PORT": "808"
17
- }
17
+ },
18
+ "CreatedByAccount": "123456789012"
19
+ }
20
+ ],
21
+ "ResourceOwner": "123456789012"
22
+ }
23
+
24
+ For more information, see `Listing AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
25
+
26
+ **Example 2: To list service instances using service ARN**
27
+
28
+ The following ``list-instances`` example lists service instances using a service ARN instead of service ID. Specifying an ARN is required when listing instances associated with namespaces that are shared with your account. ::
29
+
30
+ aws servicediscovery list-instances \
31
+ --service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita
32
+
33
+ Output::
34
+
35
+ {
36
+ "ResourceOwner": "123456789012",
37
+ "Instances": [
38
+ {
39
+ "Id": "web-server-01",
40
+ "Attributes": {
41
+ "AWS_INSTANCE_IPV4": "203.0.113.15",
42
+ "AWS_INSTANCE_PORT": "80"
43
+ },
44
+ "CreatedByAccount": "123456789012"
45
+ },
46
+ {
47
+ "Id": "web-server-02",
48
+ "Attributes": {
49
+ "AWS_INSTANCE_IPV4": "203.0.113.16",
50
+ "AWS_INSTANCE_PORT": "80"
51
+ },
52
+ "CreatedByAccount": "123456789012"
18
53
  }
19
54
  ]
20
55
  }
21
56
 
22
- For more information, see `Viewing a list of service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
57
+ For more information about cross-account namespace sharing, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`_ and `Listing AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
23
58
 
@@ -1,4 +1,4 @@
1
- **To list namespaces**
1
+ **Example 1: To list namespaces**
2
2
 
3
3
  The following ``list-namespaces`` example lists namespaces. ::
4
4
 
@@ -9,50 +9,73 @@ Output::
9
9
  {
10
10
  "Namespaces": [
11
11
  {
12
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-a3ccy2e7e3a7rile",
13
- "CreateDate": 1585354387.357,
14
- "Id": "ns-a3ccy2e7e3a7rile",
12
+ "Id": "ns-abcd1234xmpl5678",
13
+ "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678",
14
+ "ResourceOwner": "123456789012",
15
15
  "Name": "local",
16
+ "Type": "DNS_PRIVATE",
16
17
  "Properties": {
17
18
  "DnsProperties": {
18
- "HostedZoneId": "Z06752353VBUDTC32S84S"
19
+ "HostedZoneId": "Z06752353VBUDTC32S84S",
20
+ "SOA": {}
19
21
  },
20
22
  "HttpProperties": {
21
23
  "HttpName": "local"
22
24
  }
23
25
  },
24
- "Type": "DNS_PRIVATE"
26
+ "CreateDate": "2023-07-17T13:37:27.872000-05:00"
25
27
  },
26
28
  {
27
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-pocfyjtrsmwtvcxx",
28
- "CreateDate": 1586468974.698,
29
- "Description": "My second namespace",
30
- "Id": "ns-pocfyjtrsmwtvcxx",
29
+ "Id": "ns-abcd1234xmpl9012",
30
+ "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl9012",
31
+ "ResourceOwner": "123456789012",
31
32
  "Name": "My-second-namespace",
33
+ "Type": "HTTP",
34
+ "Description": "My second namespace",
32
35
  "Properties": {
33
- "DnsProperties": {},
36
+ "DnsProperties": {
37
+ "SOA": {}
38
+ },
34
39
  "HttpProperties": {
35
40
  "HttpName": "My-second-namespace"
36
41
  }
37
42
  },
38
- "Type": "HTTP"
39
- },
43
+ "CreateDate": "2023-11-14T10:35:47.840000-06:00"
44
+ }
45
+ ]
46
+ }
47
+
48
+ For more information, see `Listing AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
49
+
50
+ **Example 2: To list namespaces shared by other accounts**
51
+
52
+ The following ``list-namespaces`` example lists namespaces that are shared with the caller account by other AWS accounts using the ``RESOURCE_OWNER`` filter. ::
53
+
54
+ aws servicediscovery list-namespaces \
55
+ --filters Name=RESOURCE_OWNER,Values=OTHER_ACCOUNTS,Condition=EQ
56
+
57
+ Output::
58
+
59
+ {
60
+ "Namespaces": [
40
61
  {
41
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-ylexjili4cdxy3xm",
42
- "CreateDate": 1587055896.798,
43
- "Id": "ns-ylexjili4cdxy3xm",
44
- "Name": "example.com",
62
+ "Id": "ns-abcd1234xmpl5678",
63
+ "Arn": "arn:aws:servicediscovery:us-west-2:123456789111:namespace/ns-abcd1234xmpl5678",
64
+ "ResourceOwner": "123456789111",
65
+ "Name": "shared-namespace",
66
+ "Type": "HTTP",
67
+ "Description": "Namespace shared from another account",
45
68
  "Properties": {
46
69
  "DnsProperties": {
47
- "HostedZoneId": "Z09983722P0QME1B3KC8I"
70
+ "SOA": {}
48
71
  },
49
- "HttpProperties": {
50
- "HttpName": "example.com"
72
+ "HttpProperties": {
73
+ "HttpName": "shared-namespace"
51
74
  }
52
75
  },
53
- "Type": "DNS_PRIVATE"
76
+ "CreateDate": "2025-01-13T13:35:21.874000-06:00"
54
77
  }
55
78
  ]
56
79
  }
57
80
 
58
- For more information, see `Viewing a list of namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
81
+ For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,4 +1,4 @@
1
- **To list services**
1
+ **Example 1: To list services**
2
2
 
3
3
  The following ``list-services`` example lists services. ::
4
4
 
@@ -26,5 +26,33 @@ Output::
26
26
  ]
27
27
  }
28
28
 
29
- For more information, see `Viewing a list of services <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-services.html>`__ in the *AWS Cloud Map Developer Guide*.
29
+ For more information, see `Listing AWS Cloud Map services in a namespace <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-services.html>`__ in the *AWS Cloud Map Developer Guide*.
30
30
 
31
+ **Example 2: To list services created in shared namespaces**
32
+
33
+ The following ``list-services`` example lists services that are created in namespaces shared with the caller account ``123456789012`` by other AWS accounts using the ``RESOURCE_OWNER`` filter. ::
34
+
35
+ aws servicediscovery list-services \
36
+ --filters Name=RESOURCE_OWNER,Values=OTHER_ACCOUNTS,Condition=EQ
37
+
38
+ Output::
39
+
40
+ {
41
+ "Services": [
42
+ {
43
+ "Id": "srv-abcd1234xmpl5678",
44
+ "Arn": "arn:aws:servicediscovery:us-west-2:123456789111:service/srv-abcd1234xmpl5678",
45
+ "ResourceOwner": "123456789111",
46
+ "Name": "shared-service",
47
+ "NamespaceId": "ns-abcd1234xmpl5678",
48
+ "Type": "HTTP",
49
+ "Description": "Service in shared namespace",
50
+ "DnsConfig": {},
51
+ "CreateDate": "2025-01-13T13:35:21.874000-06:00",
52
+ "CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678",
53
+ "CreatedByAccount": "123456789012"
54
+ }
55
+ ]
56
+ }
57
+
58
+ For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ and `Listing AWS Cloud Map services in a namespace <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-services.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,4 +1,4 @@
1
- **To register a service instance**
1
+ **Example 1: To register a service instance using service ID**
2
2
 
3
3
  The following ``register-instance`` example registers a service instance. ::
4
4
 
@@ -15,5 +15,21 @@ Output::
15
15
 
16
16
  To confirm that the operation succeeded, you can run ``get-operation``. For more information, see `get-operation <https://docs.aws.amazon.com/cli/latest/reference/servicediscovery/get-operation.html>`__ .
17
17
 
18
- For more information, see `Registering instances <https://docs.aws.amazon.com/cloud-map/latest/dg/registering-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
18
+ For more information about registering an instance, see `Registering a resource as an AWS Cloud Map service instance <https://docs.aws.amazon.com/cloud-map/latest/dg/registering-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
19
19
 
20
+ **Example 2: To register a service instance using service ARN**
21
+
22
+ The following ``register-instance`` example registers a service instance using a service ARN. Specifying the ARN is required when registering instances in services that are shared with your account. ::
23
+
24
+ aws servicediscovery register-instance \
25
+ --service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita \
26
+ --instance-id web-server-01 \
27
+ --attributes=AWS_INSTANCE_IPV4=203.0.113.15,AWS_INSTANCE_PORT=80
28
+
29
+ Output::
30
+
31
+ {
32
+ "OperationId": "gv4g5meo7ndmkqjrhpn39wk42xmpl"
33
+ }
34
+
35
+ For more information about cross-account namespace sharing, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,18 +1,35 @@
1
- **To update an HTTP namespace**
1
+ **Example 1: To update an HTTP namespace**
2
2
 
3
3
  The following ``update-http-namespace`` example updates the specified HTTP namespace's description. ::
4
4
 
5
5
  aws servicediscovery update-http-namespace \
6
- --id ns-vh4nbmEXAMPLE \
7
- --updater-request-id example-request-id \
6
+ --id ns-abcd1234xmpl5678 \
7
+ --updater-request-id abcd1234-5678-90ab-cdef-xmpl12345678 \
8
8
  --namespace Description="The updated namespace description."
9
9
 
10
10
  Output::
11
11
 
12
12
  {
13
- "OperationId": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd"
13
+ "OperationId": "abcd1234-5678-90ab-cdef-xmpl12345678"
14
14
  }
15
15
 
16
16
  To confirm that the operation succeeded, you can run ``get-operation``. For more information, see `get-operation <https://docs.aws.amazon.com/cli/latest/reference/servicediscovery/get-operation.html>`__ .
17
17
 
18
- For more information, see `AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
18
+ For more information, see `AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
19
+
20
+ **Example 2: To update an HTTP namespace using ARN**
21
+
22
+ The following ``update-http-namespace`` example updates the specified HTTP namespace using its ARN. ::
23
+
24
+ aws servicediscovery update-http-namespace \
25
+ --id arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678 \
26
+ --updater-request-id abcd1234-5678-90ab-cdef-xmpl12345678 \
27
+ --namespace Description="The updated namespace description."
28
+
29
+ Output::
30
+
31
+ {
32
+ "OperationId": "abcd1234-5678-90ab-cdef-xmpl12345678"
33
+ }
34
+
35
+ For more information, see `AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,4 +1,4 @@
1
- **To update a custom health check**
1
+ **Example 1: To update a custom health check**
2
2
 
3
3
  The following ``update-instance-custom-health-status`` example updates the status of the custom health check for the specified service and example service instance to ``HEALTHY``. ::
4
4
 
@@ -10,3 +10,16 @@ The following ``update-instance-custom-health-status`` example updates the statu
10
10
  This command produces no output.
11
11
 
12
12
  For more information, see `AWS Cloud Map service health check configuration <https://docs.aws.amazon.com/cloud-map/latest/dg/services-health-checks.html>`__ in the *AWS Cloud Map Developer Guide*.
13
+
14
+ **Example 2: To update a custom health check using service ARN**
15
+
16
+ The following ``update-instance-custom-health-status`` example updates the status of the custom health check using a service ARN. The ARN is required when updating health status for instances associated with namespaces that are shared with the your account. ::
17
+
18
+ aws servicediscovery update-instance-custom-health-status \
19
+ --service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita \
20
+ --instance-id web-server-01 \
21
+ --status HEALTHY
22
+
23
+ This command produces no output.
24
+
25
+ For more information, see `AWS Cloud Map service health check configuration <https://docs.aws.amazon.com/cloud-map/latest/dg/services-health-checks.html>`__ and `Cross-account AWS Cloud Map namespace sharing <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
@@ -1,18 +1,35 @@
1
- **To update a private DNS namespace**
1
+ **Example 1: To update a private DNS namespace using ID**
2
2
 
3
- The following ``update-private-dns-namespace`` example updates the description of a private DNS namespace. ::
3
+ The following ``update-private-dns-namespace`` example updates the description of a private DNS namespace using namespace ID. ::
4
4
 
5
5
  aws servicediscovery update-private-dns-namespace \
6
- --id ns-bk3aEXAMPLE \
7
- --updater-request-id example-private-request-id \
6
+ --id ns-abcd1234xmpl5678 \
7
+ --updater-request-id abcd1234-5678-90ab-cdef-xmpl12345678 \
8
8
  --namespace Description="The updated namespace description."
9
9
 
10
10
  Output::
11
11
 
12
12
  {
13
- "OperationId": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd"
13
+ "OperationId": "abcd1234-5678-90ab-cdef-xmpl12345678"
14
14
  }
15
15
 
16
16
  To confirm that the operation succeeded, you can run ``get-operation``.
17
17
 
18
18
  For more information, see `AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
19
+
20
+ **Example 2: To update a private DNS namespace using ARN**
21
+
22
+ The following ``update-private-dns-namespace`` example updates a private DNS namespace using its ARN. ::
23
+
24
+ aws servicediscovery update-private-dns-namespace \
25
+ --id arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678 \
26
+ --updater-request-id abcd1234-5678-90ab-cdef-xmpl12345678 \
27
+ --namespace Description="The updated namespace description."
28
+
29
+ Output::
30
+
31
+ {
32
+ "OperationId": "abcd1234-5678-90ab-cdef-xmpl12345678"
33
+ }
34
+
35
+ For more information, see `AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.