aws-sdk-greengrassv2 1.24.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-greengrassv2/client.rb +2 -2
- data/lib/aws-sdk-greengrassv2/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-greengrassv2/endpoint_provider.rb +37 -40
- data/lib/aws-sdk-greengrassv2/types.rb +28 -1
- data/lib/aws-sdk-greengrassv2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 899b4894e0e31d80962b6111e11e157d75fb10a3645aa33445e922847dc9207d
|
4
|
+
data.tar.gz: 1ad9fdc33ddc1703c9afd9fac001600e16baa533722d704bfcc7b0a8e2e6f1d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1b43aefff86758f926d9ae13ed026548024d9116a71e2e6547aa9678218ad46e6156d19a6b92e347e027c3495ed76defabcae0523032936643ed920ec667b87
|
7
|
+
data.tar.gz: 2b1925ffcb7b834b813f3280742405458ce9c4f7a2ed4901e41d19cf19a99d98bc56812096f6ef01d4f3153c54a254647f03de6bd6987b4875454135742b48f6
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.25.0
|
@@ -1733,7 +1733,7 @@ module Aws::GreengrassV2
|
|
1733
1733
|
# resp.effective_deployments[0].iot_job_arn #=> String
|
1734
1734
|
# resp.effective_deployments[0].description #=> String
|
1735
1735
|
# resp.effective_deployments[0].target_arn #=> String
|
1736
|
-
# resp.effective_deployments[0].core_device_execution_status #=> String, one of "IN_PROGRESS", "QUEUED", "FAILED", "COMPLETED", "TIMED_OUT", "CANCELED", "REJECTED"
|
1736
|
+
# resp.effective_deployments[0].core_device_execution_status #=> String, one of "IN_PROGRESS", "QUEUED", "FAILED", "COMPLETED", "TIMED_OUT", "CANCELED", "REJECTED", "SUCCEEDED"
|
1737
1737
|
# resp.effective_deployments[0].reason #=> String
|
1738
1738
|
# resp.effective_deployments[0].creation_timestamp #=> Time
|
1739
1739
|
# resp.effective_deployments[0].modified_timestamp #=> Time
|
@@ -2092,7 +2092,7 @@ module Aws::GreengrassV2
|
|
2092
2092
|
params: params,
|
2093
2093
|
config: config)
|
2094
2094
|
context[:gem_name] = 'aws-sdk-greengrassv2'
|
2095
|
-
context[:gem_version] = '1.
|
2095
|
+
context[:gem_version] = '1.25.0'
|
2096
2096
|
Seahorse::Client::Request.new(handlers, context)
|
2097
2097
|
end
|
2098
2098
|
|
@@ -50,9 +50,6 @@ module Aws::GreengrassV2
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,54 +14,51 @@ module Aws::GreengrassV2
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
28
|
-
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
32
23
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
37
31
|
end
|
38
|
-
|
39
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
40
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
41
|
+
end
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
43
|
end
|
41
|
-
|
44
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
45
|
end
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
47
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
49
|
+
end
|
50
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
48
51
|
end
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
return Aws::Endpoints::Endpoint.new(url: "https://greengrass
|
56
|
-
end
|
57
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
|
58
|
-
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
59
|
-
end
|
60
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
61
|
-
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
52
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "dataplane-us-gov-east-1")
|
53
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"greengrass", "signingRegion"=>"us-gov-east-1"}]})
|
54
|
+
end
|
55
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "dataplane-us-gov-west-1")
|
56
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"greengrass", "signingRegion"=>"us-gov-west-1"}]})
|
57
|
+
end
|
58
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
62
59
|
end
|
63
|
-
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
64
60
|
end
|
61
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
65
62
|
raise ArgumentError, 'No endpoint could be resolved'
|
66
63
|
|
67
64
|
end
|
@@ -1342,6 +1342,28 @@ module Aws::GreengrassV2
|
|
1342
1342
|
#
|
1343
1343
|
# @!attribute [rw] core_device_execution_status
|
1344
1344
|
# The status of the deployment job on the Greengrass core device.
|
1345
|
+
#
|
1346
|
+
# * `IN_PROGRESS` – The deployment job is running.
|
1347
|
+
#
|
1348
|
+
# * `QUEUED` – The deployment job is in the job queue and waiting to
|
1349
|
+
# run.
|
1350
|
+
#
|
1351
|
+
# * `FAILED` – The deployment failed. For more information, see the
|
1352
|
+
# `statusDetails` field.
|
1353
|
+
#
|
1354
|
+
# * `COMPLETED` – The deployment to an IoT thing was completed
|
1355
|
+
# successfully.
|
1356
|
+
#
|
1357
|
+
# * `TIMED_OUT` – The deployment didn't complete in the allotted
|
1358
|
+
# time.
|
1359
|
+
#
|
1360
|
+
# * `CANCELED` – The deployment was canceled by the user.
|
1361
|
+
#
|
1362
|
+
# * `REJECTED` – The deployment was rejected. For more information,
|
1363
|
+
# see the `statusDetails` field.
|
1364
|
+
#
|
1365
|
+
# * `SUCCEEDED` – The deployment to an IoT thing group was completed
|
1366
|
+
# successfully.
|
1345
1367
|
# @return [String]
|
1346
1368
|
#
|
1347
1369
|
# @!attribute [rw] reason
|
@@ -1785,7 +1807,7 @@ module Aws::GreengrassV2
|
|
1785
1807
|
#
|
1786
1808
|
# @!attribute [rw] last_reported_timestamp
|
1787
1809
|
# The last time the Greengrass core device sent a message containing a
|
1788
|
-
#
|
1810
|
+
# component's state to the Amazon Web Services Cloud.
|
1789
1811
|
#
|
1790
1812
|
# A component does not need to see a state change for this field to
|
1791
1813
|
# update.
|
@@ -1796,6 +1818,11 @@ module Aws::GreengrassV2
|
|
1796
1818
|
# Greengrass core device. For a thing group deployment or thing
|
1797
1819
|
# deployment, the source will be the The ID of the deployment. and for
|
1798
1820
|
# local deployments it will be `LOCAL`.
|
1821
|
+
#
|
1822
|
+
# <note markdown="1"> Any deployment will attempt to reinstall currently broken components
|
1823
|
+
# on the device, which will update the last installation source.
|
1824
|
+
#
|
1825
|
+
# </note>
|
1799
1826
|
# @return [String]
|
1800
1827
|
#
|
1801
1828
|
# @!attribute [rw] lifecycle_status_codes
|
data/lib/aws-sdk-greengrassv2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-greengrassv2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|