aws-sdk-licensemanager 1.21.0 → 1.26.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 +143 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-licensemanager.rb +3 -3
- data/lib/aws-sdk-licensemanager/client.rb +1382 -20
- data/lib/aws-sdk-licensemanager/client_api.rb +870 -2
- data/lib/aws-sdk-licensemanager/errors.rb +123 -1
- data/lib/aws-sdk-licensemanager/resource.rb +1 -1
- data/lib/aws-sdk-licensemanager/types.rb +2301 -95
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a66b72915ee294bc8928b635ae40f76a764bc1ae1fb4645abcdb26b574a1c96
|
4
|
+
data.tar.gz: b7deca2d69a90680ad8a04e6d64775f0e34e21e3ee5fefbec7d06afbd45246e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3ff4221b51ca280e1bc3773383c9df5ab7cc09548de5cdda58daa01101e46495844f59fec984788c10177c366c10e5d95838867475611dfee2cdecd71500d82
|
7
|
+
data.tar.gz: e85abf6cc2c996fcb4e86dff4537ef44f2f62b212cc56ff9c90d69bef87099ce0b9df9014fe5f83666516bd396badf8941bcc38fd2963d946e5bf8f86896da05
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
Unreleased Changes
|
2
|
+
------------------
|
3
|
+
|
4
|
+
1.26.0 (2021-03-10)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.25.0 (2021-03-05)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - License Manager Automated Discovery now supports Exclusion Filters.
|
13
|
+
|
14
|
+
1.24.0 (2021-02-02)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.23.0 (2020-12-04)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Automated Discovery now has support for custom tags, and detects software uninstalls.
|
23
|
+
|
24
|
+
1.22.0 (2020-12-03)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - AWS License Manager enables managed entitlements for AWS customers and Software Vendors (ISV). You can track and distribute license entitlements from AWS Marketplace and supported ISVs.
|
28
|
+
|
29
|
+
1.21.0 (2020-11-23)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - AWS License Manager now provides the ability for license administrators to be able to associate license configurations to AMIs shared with their AWS account
|
33
|
+
|
34
|
+
1.20.0 (2020-09-30)
|
35
|
+
------------------
|
36
|
+
|
37
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
38
|
+
|
39
|
+
1.19.0 (2020-09-15)
|
40
|
+
------------------
|
41
|
+
|
42
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
43
|
+
|
44
|
+
1.18.0 (2020-08-25)
|
45
|
+
------------------
|
46
|
+
|
47
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
48
|
+
|
49
|
+
1.17.0 (2020-08-14)
|
50
|
+
------------------
|
51
|
+
|
52
|
+
* Feature - This release includes ability to enforce license assignment rules with EC2 Dedicated Hosts.
|
53
|
+
|
54
|
+
1.16.0 (2020-06-23)
|
55
|
+
------------------
|
56
|
+
|
57
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
58
|
+
|
59
|
+
1.15.1 (2020-06-11)
|
60
|
+
------------------
|
61
|
+
|
62
|
+
* Issue - Republish previous version with correct dependency on `aws-sdk-core`.
|
63
|
+
|
64
|
+
1.15.0 (2020-06-10)
|
65
|
+
------------------
|
66
|
+
|
67
|
+
* Issue - This version has been yanked. (#2327).
|
68
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
69
|
+
|
70
|
+
1.14.0 (2020-05-28)
|
71
|
+
------------------
|
72
|
+
|
73
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
74
|
+
|
75
|
+
1.13.0 (2020-05-07)
|
76
|
+
------------------
|
77
|
+
|
78
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
79
|
+
|
80
|
+
1.12.0 (2020-03-09)
|
81
|
+
------------------
|
82
|
+
|
83
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
84
|
+
|
85
|
+
1.11.0 (2019-12-02)
|
86
|
+
------------------
|
87
|
+
|
88
|
+
* Feature - AWS License Manager now automates discovery of bring-your-own-license usage across the customers organization. With few simple settings, customers can add bring your own license product information along with licensing rules, which would enable License Manager to automatically track the instances that have the specified products installed. If License Manager detects any violation of licensing rules, it would notify the customers designated license administrator to take corrective action.
|
89
|
+
|
90
|
+
1.10.0 (2019-10-23)
|
91
|
+
------------------
|
92
|
+
|
93
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
94
|
+
|
95
|
+
1.9.0 (2019-07-25)
|
96
|
+
------------------
|
97
|
+
|
98
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
99
|
+
|
100
|
+
1.8.0 (2019-07-01)
|
101
|
+
------------------
|
102
|
+
|
103
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
104
|
+
|
105
|
+
1.7.0 (2019-06-17)
|
106
|
+
------------------
|
107
|
+
|
108
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
109
|
+
|
110
|
+
1.6.0 (2019-05-21)
|
111
|
+
------------------
|
112
|
+
|
113
|
+
* Feature - API update.
|
114
|
+
|
115
|
+
1.5.0 (2019-05-15)
|
116
|
+
------------------
|
117
|
+
|
118
|
+
* Feature - API update.
|
119
|
+
|
120
|
+
1.4.0 (2019-05-14)
|
121
|
+
------------------
|
122
|
+
|
123
|
+
* Feature - API update.
|
124
|
+
|
125
|
+
1.3.0 (2019-03-21)
|
126
|
+
------------------
|
127
|
+
|
128
|
+
* Feature - API update.
|
129
|
+
|
130
|
+
1.2.0 (2019-03-18)
|
131
|
+
------------------
|
132
|
+
|
133
|
+
* Feature - API update.
|
134
|
+
|
135
|
+
1.1.0 (2019-03-14)
|
136
|
+
------------------
|
137
|
+
|
138
|
+
* Feature - API update.
|
139
|
+
|
140
|
+
1.0.0 (2018-11-29)
|
141
|
+
------------------
|
142
|
+
|
143
|
+
* Feature - Initial release of `aws-sdk-licensemanager`.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.26.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-licensemanager/customizations'
|
|
28
28
|
# structure.
|
29
29
|
#
|
30
30
|
# license_manager = Aws::LicenseManager::Client.new
|
31
|
-
# resp = license_manager.
|
31
|
+
# resp = license_manager.accept_grant(params)
|
32
32
|
#
|
33
33
|
# See {Client} for more information.
|
34
34
|
#
|
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-licensemanager/customizations'
|
|
48
48
|
# @!group service
|
49
49
|
module Aws::LicenseManager
|
50
50
|
|
51
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.26.0'
|
52
52
|
|
53
53
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -337,6 +337,437 @@ module Aws::LicenseManager
|
|
337
337
|
|
338
338
|
# @!group API Operations
|
339
339
|
|
340
|
+
# Accepts the specified grant.
|
341
|
+
#
|
342
|
+
# @option params [required, String] :grant_arn
|
343
|
+
# Amazon Resource Name (ARN) of the grant.
|
344
|
+
#
|
345
|
+
# @return [Types::AcceptGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
346
|
+
#
|
347
|
+
# * {Types::AcceptGrantResponse#grant_arn #grant_arn} => String
|
348
|
+
# * {Types::AcceptGrantResponse#status #status} => String
|
349
|
+
# * {Types::AcceptGrantResponse#version #version} => String
|
350
|
+
#
|
351
|
+
# @example Request syntax with placeholder values
|
352
|
+
#
|
353
|
+
# resp = client.accept_grant({
|
354
|
+
# grant_arn: "Arn", # required
|
355
|
+
# })
|
356
|
+
#
|
357
|
+
# @example Response structure
|
358
|
+
#
|
359
|
+
# resp.grant_arn #=> String
|
360
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
361
|
+
# resp.version #=> String
|
362
|
+
#
|
363
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/AcceptGrant AWS API Documentation
|
364
|
+
#
|
365
|
+
# @overload accept_grant(params = {})
|
366
|
+
# @param [Hash] params ({})
|
367
|
+
def accept_grant(params = {}, options = {})
|
368
|
+
req = build_request(:accept_grant, params)
|
369
|
+
req.send_request(options)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Checks in the specified license. Check in a license when it is no
|
373
|
+
# longer in use.
|
374
|
+
#
|
375
|
+
# @option params [required, String] :license_consumption_token
|
376
|
+
# License consumption token.
|
377
|
+
#
|
378
|
+
# @option params [String] :beneficiary
|
379
|
+
# License beneficiary.
|
380
|
+
#
|
381
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
382
|
+
#
|
383
|
+
# @example Request syntax with placeholder values
|
384
|
+
#
|
385
|
+
# resp = client.check_in_license({
|
386
|
+
# license_consumption_token: "String", # required
|
387
|
+
# beneficiary: "String",
|
388
|
+
# })
|
389
|
+
#
|
390
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckInLicense AWS API Documentation
|
391
|
+
#
|
392
|
+
# @overload check_in_license(params = {})
|
393
|
+
# @param [Hash] params ({})
|
394
|
+
def check_in_license(params = {}, options = {})
|
395
|
+
req = build_request(:check_in_license, params)
|
396
|
+
req.send_request(options)
|
397
|
+
end
|
398
|
+
|
399
|
+
# Checks out the specified license for offline use.
|
400
|
+
#
|
401
|
+
# @option params [required, String] :license_arn
|
402
|
+
# Amazon Resource Name (ARN) of the license. The license must use the
|
403
|
+
# borrow consumption configuration.
|
404
|
+
#
|
405
|
+
# @option params [required, Array<Types::EntitlementData>] :entitlements
|
406
|
+
# License entitlements. Partial checkouts are not supported.
|
407
|
+
#
|
408
|
+
# @option params [required, String] :digital_signature_method
|
409
|
+
# Digital signature method. The possible value is JSON Web Signature
|
410
|
+
# (JWS) algorithm PS384. For more information, see [RFC 7518 Digital
|
411
|
+
# Signature with RSASSA-PSS][1].
|
412
|
+
#
|
413
|
+
#
|
414
|
+
#
|
415
|
+
# [1]: https://tools.ietf.org/html/rfc7518#section-3.5
|
416
|
+
#
|
417
|
+
# @option params [String] :node_id
|
418
|
+
# Node ID.
|
419
|
+
#
|
420
|
+
# @option params [Array<Types::Metadata>] :checkout_metadata
|
421
|
+
# Information about constraints.
|
422
|
+
#
|
423
|
+
# @option params [required, String] :client_token
|
424
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
425
|
+
# idempotency of the request.
|
426
|
+
#
|
427
|
+
# @return [Types::CheckoutBorrowLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
428
|
+
#
|
429
|
+
# * {Types::CheckoutBorrowLicenseResponse#license_arn #license_arn} => String
|
430
|
+
# * {Types::CheckoutBorrowLicenseResponse#license_consumption_token #license_consumption_token} => String
|
431
|
+
# * {Types::CheckoutBorrowLicenseResponse#entitlements_allowed #entitlements_allowed} => Array<Types::EntitlementData>
|
432
|
+
# * {Types::CheckoutBorrowLicenseResponse#node_id #node_id} => String
|
433
|
+
# * {Types::CheckoutBorrowLicenseResponse#signed_token #signed_token} => String
|
434
|
+
# * {Types::CheckoutBorrowLicenseResponse#issued_at #issued_at} => String
|
435
|
+
# * {Types::CheckoutBorrowLicenseResponse#expiration #expiration} => String
|
436
|
+
# * {Types::CheckoutBorrowLicenseResponse#checkout_metadata #checkout_metadata} => Array<Types::Metadata>
|
437
|
+
#
|
438
|
+
# @example Request syntax with placeholder values
|
439
|
+
#
|
440
|
+
# resp = client.checkout_borrow_license({
|
441
|
+
# license_arn: "Arn", # required
|
442
|
+
# entitlements: [ # required
|
443
|
+
# {
|
444
|
+
# name: "String", # required
|
445
|
+
# value: "String",
|
446
|
+
# unit: "Count", # required, accepts Count, None, Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second
|
447
|
+
# },
|
448
|
+
# ],
|
449
|
+
# digital_signature_method: "JWT_PS384", # required, accepts JWT_PS384
|
450
|
+
# node_id: "String",
|
451
|
+
# checkout_metadata: [
|
452
|
+
# {
|
453
|
+
# name: "String",
|
454
|
+
# value: "String",
|
455
|
+
# },
|
456
|
+
# ],
|
457
|
+
# client_token: "ClientToken", # required
|
458
|
+
# })
|
459
|
+
#
|
460
|
+
# @example Response structure
|
461
|
+
#
|
462
|
+
# resp.license_arn #=> String
|
463
|
+
# resp.license_consumption_token #=> String
|
464
|
+
# resp.entitlements_allowed #=> Array
|
465
|
+
# resp.entitlements_allowed[0].name #=> String
|
466
|
+
# resp.entitlements_allowed[0].value #=> String
|
467
|
+
# resp.entitlements_allowed[0].unit #=> String, one of "Count", "None", "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second"
|
468
|
+
# resp.node_id #=> String
|
469
|
+
# resp.signed_token #=> String
|
470
|
+
# resp.issued_at #=> String
|
471
|
+
# resp.expiration #=> String
|
472
|
+
# resp.checkout_metadata #=> Array
|
473
|
+
# resp.checkout_metadata[0].name #=> String
|
474
|
+
# resp.checkout_metadata[0].value #=> String
|
475
|
+
#
|
476
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckoutBorrowLicense AWS API Documentation
|
477
|
+
#
|
478
|
+
# @overload checkout_borrow_license(params = {})
|
479
|
+
# @param [Hash] params ({})
|
480
|
+
def checkout_borrow_license(params = {}, options = {})
|
481
|
+
req = build_request(:checkout_borrow_license, params)
|
482
|
+
req.send_request(options)
|
483
|
+
end
|
484
|
+
|
485
|
+
# Checks out the specified license.
|
486
|
+
#
|
487
|
+
# @option params [required, String] :product_sku
|
488
|
+
# Product SKU.
|
489
|
+
#
|
490
|
+
# @option params [required, String] :checkout_type
|
491
|
+
# Checkout type.
|
492
|
+
#
|
493
|
+
# @option params [required, String] :key_fingerprint
|
494
|
+
# Key fingerprint identifying the license.
|
495
|
+
#
|
496
|
+
# @option params [required, Array<Types::EntitlementData>] :entitlements
|
497
|
+
# License entitlements.
|
498
|
+
#
|
499
|
+
# @option params [required, String] :client_token
|
500
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
501
|
+
# idempotency of the request.
|
502
|
+
#
|
503
|
+
# @option params [String] :beneficiary
|
504
|
+
# License beneficiary.
|
505
|
+
#
|
506
|
+
# @option params [String] :node_id
|
507
|
+
# Node ID.
|
508
|
+
#
|
509
|
+
# @return [Types::CheckoutLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
510
|
+
#
|
511
|
+
# * {Types::CheckoutLicenseResponse#checkout_type #checkout_type} => String
|
512
|
+
# * {Types::CheckoutLicenseResponse#license_consumption_token #license_consumption_token} => String
|
513
|
+
# * {Types::CheckoutLicenseResponse#entitlements_allowed #entitlements_allowed} => Array<Types::EntitlementData>
|
514
|
+
# * {Types::CheckoutLicenseResponse#signed_token #signed_token} => String
|
515
|
+
# * {Types::CheckoutLicenseResponse#node_id #node_id} => String
|
516
|
+
# * {Types::CheckoutLicenseResponse#issued_at #issued_at} => String
|
517
|
+
# * {Types::CheckoutLicenseResponse#expiration #expiration} => String
|
518
|
+
#
|
519
|
+
# @example Request syntax with placeholder values
|
520
|
+
#
|
521
|
+
# resp = client.checkout_license({
|
522
|
+
# product_sku: "String", # required
|
523
|
+
# checkout_type: "PROVISIONAL", # required, accepts PROVISIONAL
|
524
|
+
# key_fingerprint: "String", # required
|
525
|
+
# entitlements: [ # required
|
526
|
+
# {
|
527
|
+
# name: "String", # required
|
528
|
+
# value: "String",
|
529
|
+
# unit: "Count", # required, accepts Count, None, Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second
|
530
|
+
# },
|
531
|
+
# ],
|
532
|
+
# client_token: "ClientToken", # required
|
533
|
+
# beneficiary: "String",
|
534
|
+
# node_id: "String",
|
535
|
+
# })
|
536
|
+
#
|
537
|
+
# @example Response structure
|
538
|
+
#
|
539
|
+
# resp.checkout_type #=> String, one of "PROVISIONAL"
|
540
|
+
# resp.license_consumption_token #=> String
|
541
|
+
# resp.entitlements_allowed #=> Array
|
542
|
+
# resp.entitlements_allowed[0].name #=> String
|
543
|
+
# resp.entitlements_allowed[0].value #=> String
|
544
|
+
# resp.entitlements_allowed[0].unit #=> String, one of "Count", "None", "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second"
|
545
|
+
# resp.signed_token #=> String
|
546
|
+
# resp.node_id #=> String
|
547
|
+
# resp.issued_at #=> String
|
548
|
+
# resp.expiration #=> String
|
549
|
+
#
|
550
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckoutLicense AWS API Documentation
|
551
|
+
#
|
552
|
+
# @overload checkout_license(params = {})
|
553
|
+
# @param [Hash] params ({})
|
554
|
+
def checkout_license(params = {}, options = {})
|
555
|
+
req = build_request(:checkout_license, params)
|
556
|
+
req.send_request(options)
|
557
|
+
end
|
558
|
+
|
559
|
+
# Creates a grant for the specified license. A grant shares the use of
|
560
|
+
# license entitlements with specific AWS accounts.
|
561
|
+
#
|
562
|
+
# @option params [required, String] :client_token
|
563
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
564
|
+
# idempotency of the request.
|
565
|
+
#
|
566
|
+
# @option params [required, String] :grant_name
|
567
|
+
# Grant name.
|
568
|
+
#
|
569
|
+
# @option params [required, String] :license_arn
|
570
|
+
# Amazon Resource Name (ARN) of the license.
|
571
|
+
#
|
572
|
+
# @option params [required, Array<String>] :principals
|
573
|
+
# The grant principals.
|
574
|
+
#
|
575
|
+
# @option params [required, String] :home_region
|
576
|
+
# Home Region of the grant.
|
577
|
+
#
|
578
|
+
# @option params [required, Array<String>] :allowed_operations
|
579
|
+
# Allowed operations for the grant.
|
580
|
+
#
|
581
|
+
# @return [Types::CreateGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
582
|
+
#
|
583
|
+
# * {Types::CreateGrantResponse#grant_arn #grant_arn} => String
|
584
|
+
# * {Types::CreateGrantResponse#status #status} => String
|
585
|
+
# * {Types::CreateGrantResponse#version #version} => String
|
586
|
+
#
|
587
|
+
# @example Request syntax with placeholder values
|
588
|
+
#
|
589
|
+
# resp = client.create_grant({
|
590
|
+
# client_token: "String", # required
|
591
|
+
# grant_name: "String", # required
|
592
|
+
# license_arn: "Arn", # required
|
593
|
+
# principals: ["Arn"], # required
|
594
|
+
# home_region: "String", # required
|
595
|
+
# allowed_operations: ["CreateGrant"], # required, accepts CreateGrant, CheckoutLicense, CheckoutBorrowLicense, CheckInLicense, ExtendConsumptionLicense, ListPurchasedLicenses, CreateToken
|
596
|
+
# })
|
597
|
+
#
|
598
|
+
# @example Response structure
|
599
|
+
#
|
600
|
+
# resp.grant_arn #=> String
|
601
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
602
|
+
# resp.version #=> String
|
603
|
+
#
|
604
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateGrant AWS API Documentation
|
605
|
+
#
|
606
|
+
# @overload create_grant(params = {})
|
607
|
+
# @param [Hash] params ({})
|
608
|
+
def create_grant(params = {}, options = {})
|
609
|
+
req = build_request(:create_grant, params)
|
610
|
+
req.send_request(options)
|
611
|
+
end
|
612
|
+
|
613
|
+
# Creates a new version of the specified grant.
|
614
|
+
#
|
615
|
+
# @option params [required, String] :client_token
|
616
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
617
|
+
# idempotency of the request.
|
618
|
+
#
|
619
|
+
# @option params [required, String] :grant_arn
|
620
|
+
# Amazon Resource Name (ARN) of the grant.
|
621
|
+
#
|
622
|
+
# @option params [String] :grant_name
|
623
|
+
# Grant name.
|
624
|
+
#
|
625
|
+
# @option params [Array<String>] :allowed_operations
|
626
|
+
# Allowed operations for the grant.
|
627
|
+
#
|
628
|
+
# @option params [String] :status
|
629
|
+
# Grant status.
|
630
|
+
#
|
631
|
+
# @option params [String] :source_version
|
632
|
+
# Current version of the grant.
|
633
|
+
#
|
634
|
+
# @return [Types::CreateGrantVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
635
|
+
#
|
636
|
+
# * {Types::CreateGrantVersionResponse#grant_arn #grant_arn} => String
|
637
|
+
# * {Types::CreateGrantVersionResponse#status #status} => String
|
638
|
+
# * {Types::CreateGrantVersionResponse#version #version} => String
|
639
|
+
#
|
640
|
+
# @example Request syntax with placeholder values
|
641
|
+
#
|
642
|
+
# resp = client.create_grant_version({
|
643
|
+
# client_token: "String", # required
|
644
|
+
# grant_arn: "Arn", # required
|
645
|
+
# grant_name: "String",
|
646
|
+
# allowed_operations: ["CreateGrant"], # accepts CreateGrant, CheckoutLicense, CheckoutBorrowLicense, CheckInLicense, ExtendConsumptionLicense, ListPurchasedLicenses, CreateToken
|
647
|
+
# status: "PENDING_WORKFLOW", # accepts PENDING_WORKFLOW, PENDING_ACCEPT, REJECTED, ACTIVE, FAILED_WORKFLOW, DELETED, PENDING_DELETE, DISABLED
|
648
|
+
# source_version: "String",
|
649
|
+
# })
|
650
|
+
#
|
651
|
+
# @example Response structure
|
652
|
+
#
|
653
|
+
# resp.grant_arn #=> String
|
654
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
655
|
+
# resp.version #=> String
|
656
|
+
#
|
657
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateGrantVersion AWS API Documentation
|
658
|
+
#
|
659
|
+
# @overload create_grant_version(params = {})
|
660
|
+
# @param [Hash] params ({})
|
661
|
+
def create_grant_version(params = {}, options = {})
|
662
|
+
req = build_request(:create_grant_version, params)
|
663
|
+
req.send_request(options)
|
664
|
+
end
|
665
|
+
|
666
|
+
# Creates a license.
|
667
|
+
#
|
668
|
+
# @option params [required, String] :license_name
|
669
|
+
# License name.
|
670
|
+
#
|
671
|
+
# @option params [required, String] :product_name
|
672
|
+
# Product name.
|
673
|
+
#
|
674
|
+
# @option params [required, String] :product_sku
|
675
|
+
# Product SKU.
|
676
|
+
#
|
677
|
+
# @option params [required, Types::Issuer] :issuer
|
678
|
+
# License issuer.
|
679
|
+
#
|
680
|
+
# @option params [required, String] :home_region
|
681
|
+
# Home Region for the license.
|
682
|
+
#
|
683
|
+
# @option params [required, Types::DatetimeRange] :validity
|
684
|
+
# Date and time range during which the license is valid, in ISO8601-UTC
|
685
|
+
# format.
|
686
|
+
#
|
687
|
+
# @option params [required, Array<Types::Entitlement>] :entitlements
|
688
|
+
# License entitlements.
|
689
|
+
#
|
690
|
+
# @option params [required, String] :beneficiary
|
691
|
+
# License beneficiary.
|
692
|
+
#
|
693
|
+
# @option params [required, Types::ConsumptionConfiguration] :consumption_configuration
|
694
|
+
# Configuration for consumption of the license. Choose a provisional
|
695
|
+
# configuration for workloads running with continuous connectivity.
|
696
|
+
# Choose a borrow configuration for workloads with offline usage.
|
697
|
+
#
|
698
|
+
# @option params [Array<Types::Metadata>] :license_metadata
|
699
|
+
# Information about the license.
|
700
|
+
#
|
701
|
+
# @option params [required, String] :client_token
|
702
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
703
|
+
# idempotency of the request.
|
704
|
+
#
|
705
|
+
# @return [Types::CreateLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
706
|
+
#
|
707
|
+
# * {Types::CreateLicenseResponse#license_arn #license_arn} => String
|
708
|
+
# * {Types::CreateLicenseResponse#status #status} => String
|
709
|
+
# * {Types::CreateLicenseResponse#version #version} => String
|
710
|
+
#
|
711
|
+
# @example Request syntax with placeholder values
|
712
|
+
#
|
713
|
+
# resp = client.create_license({
|
714
|
+
# license_name: "String", # required
|
715
|
+
# product_name: "String", # required
|
716
|
+
# product_sku: "String", # required
|
717
|
+
# issuer: { # required
|
718
|
+
# name: "String", # required
|
719
|
+
# sign_key: "String",
|
720
|
+
# },
|
721
|
+
# home_region: "String", # required
|
722
|
+
# validity: { # required
|
723
|
+
# begin: "ISO8601DateTime", # required
|
724
|
+
# end: "ISO8601DateTime",
|
725
|
+
# },
|
726
|
+
# entitlements: [ # required
|
727
|
+
# {
|
728
|
+
# name: "String", # required
|
729
|
+
# value: "String",
|
730
|
+
# max_count: 1,
|
731
|
+
# overage: false,
|
732
|
+
# unit: "Count", # required, accepts Count, None, Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second
|
733
|
+
# allow_check_in: false,
|
734
|
+
# },
|
735
|
+
# ],
|
736
|
+
# beneficiary: "String", # required
|
737
|
+
# consumption_configuration: { # required
|
738
|
+
# renew_type: "None", # accepts None, Weekly, Monthly
|
739
|
+
# provisional_configuration: {
|
740
|
+
# max_time_to_live_in_minutes: 1, # required
|
741
|
+
# },
|
742
|
+
# borrow_configuration: {
|
743
|
+
# allow_early_check_in: false, # required
|
744
|
+
# max_time_to_live_in_minutes: 1, # required
|
745
|
+
# },
|
746
|
+
# },
|
747
|
+
# license_metadata: [
|
748
|
+
# {
|
749
|
+
# name: "String",
|
750
|
+
# value: "String",
|
751
|
+
# },
|
752
|
+
# ],
|
753
|
+
# client_token: "String", # required
|
754
|
+
# })
|
755
|
+
#
|
756
|
+
# @example Response structure
|
757
|
+
#
|
758
|
+
# resp.license_arn #=> String
|
759
|
+
# resp.status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
760
|
+
# resp.version #=> String
|
761
|
+
#
|
762
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicense AWS API Documentation
|
763
|
+
#
|
764
|
+
# @overload create_license(params = {})
|
765
|
+
# @param [Hash] params ({})
|
766
|
+
def create_license(params = {}, options = {})
|
767
|
+
req = build_request(:create_license, params)
|
768
|
+
req.send_request(options)
|
769
|
+
end
|
770
|
+
|
340
771
|
# Creates a license configuration.
|
341
772
|
#
|
342
773
|
# A license configuration is an abstraction of a customer license
|
@@ -389,6 +820,9 @@ module Aws::LicenseManager
|
|
389
820
|
# @option params [Array<Types::Tag>] :tags
|
390
821
|
# Tags to add to the license configuration.
|
391
822
|
#
|
823
|
+
# @option params [Boolean] :disassociate_when_not_found
|
824
|
+
# When true, disassociates a resource when software is uninstalled.
|
825
|
+
#
|
392
826
|
# @option params [Array<Types::ProductInformation>] :product_information_list
|
393
827
|
# Product information.
|
394
828
|
#
|
@@ -411,13 +845,14 @@ module Aws::LicenseManager
|
|
411
845
|
# value: "String",
|
412
846
|
# },
|
413
847
|
# ],
|
848
|
+
# disassociate_when_not_found: false,
|
414
849
|
# product_information_list: [
|
415
850
|
# {
|
416
851
|
# resource_type: "String", # required
|
417
852
|
# product_information_filter_list: [ # required
|
418
853
|
# {
|
419
854
|
# product_information_filter_name: "String", # required
|
420
|
-
# product_information_filter_value: ["String"],
|
855
|
+
# product_information_filter_value: ["String"],
|
421
856
|
# product_information_filter_comparator: "String", # required
|
422
857
|
# },
|
423
858
|
# ],
|
@@ -431,34 +866,463 @@ module Aws::LicenseManager
|
|
431
866
|
#
|
432
867
|
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseConfiguration AWS API Documentation
|
433
868
|
#
|
434
|
-
# @overload create_license_configuration(params = {})
|
869
|
+
# @overload create_license_configuration(params = {})
|
870
|
+
# @param [Hash] params ({})
|
871
|
+
def create_license_configuration(params = {}, options = {})
|
872
|
+
req = build_request(:create_license_configuration, params)
|
873
|
+
req.send_request(options)
|
874
|
+
end
|
875
|
+
|
876
|
+
# Creates a new version of the specified license.
|
877
|
+
#
|
878
|
+
# @option params [required, String] :license_arn
|
879
|
+
# Amazon Resource Name (ARN) of the license.
|
880
|
+
#
|
881
|
+
# @option params [required, String] :license_name
|
882
|
+
# License name.
|
883
|
+
#
|
884
|
+
# @option params [required, String] :product_name
|
885
|
+
# Product name.
|
886
|
+
#
|
887
|
+
# @option params [required, Types::Issuer] :issuer
|
888
|
+
# License issuer.
|
889
|
+
#
|
890
|
+
# @option params [required, String] :home_region
|
891
|
+
# Home Region of the license.
|
892
|
+
#
|
893
|
+
# @option params [required, Types::DatetimeRange] :validity
|
894
|
+
# Date and time range during which the license is valid, in ISO8601-UTC
|
895
|
+
# format.
|
896
|
+
#
|
897
|
+
# @option params [Array<Types::Metadata>] :license_metadata
|
898
|
+
# Information about the license.
|
899
|
+
#
|
900
|
+
# @option params [required, Array<Types::Entitlement>] :entitlements
|
901
|
+
# License entitlements.
|
902
|
+
#
|
903
|
+
# @option params [required, Types::ConsumptionConfiguration] :consumption_configuration
|
904
|
+
# Configuration for consumption of the license. Choose a provisional
|
905
|
+
# configuration for workloads running with continuous connectivity.
|
906
|
+
# Choose a borrow configuration for workloads with offline usage.
|
907
|
+
#
|
908
|
+
# @option params [required, String] :status
|
909
|
+
# License status.
|
910
|
+
#
|
911
|
+
# @option params [required, String] :client_token
|
912
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
913
|
+
# idempotency of the request.
|
914
|
+
#
|
915
|
+
# @option params [String] :source_version
|
916
|
+
# Current version of the license.
|
917
|
+
#
|
918
|
+
# @return [Types::CreateLicenseVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
919
|
+
#
|
920
|
+
# * {Types::CreateLicenseVersionResponse#license_arn #license_arn} => String
|
921
|
+
# * {Types::CreateLicenseVersionResponse#version #version} => String
|
922
|
+
# * {Types::CreateLicenseVersionResponse#status #status} => String
|
923
|
+
#
|
924
|
+
# @example Request syntax with placeholder values
|
925
|
+
#
|
926
|
+
# resp = client.create_license_version({
|
927
|
+
# license_arn: "Arn", # required
|
928
|
+
# license_name: "String", # required
|
929
|
+
# product_name: "String", # required
|
930
|
+
# issuer: { # required
|
931
|
+
# name: "String", # required
|
932
|
+
# sign_key: "String",
|
933
|
+
# },
|
934
|
+
# home_region: "String", # required
|
935
|
+
# validity: { # required
|
936
|
+
# begin: "ISO8601DateTime", # required
|
937
|
+
# end: "ISO8601DateTime",
|
938
|
+
# },
|
939
|
+
# license_metadata: [
|
940
|
+
# {
|
941
|
+
# name: "String",
|
942
|
+
# value: "String",
|
943
|
+
# },
|
944
|
+
# ],
|
945
|
+
# entitlements: [ # required
|
946
|
+
# {
|
947
|
+
# name: "String", # required
|
948
|
+
# value: "String",
|
949
|
+
# max_count: 1,
|
950
|
+
# overage: false,
|
951
|
+
# unit: "Count", # required, accepts Count, None, Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second
|
952
|
+
# allow_check_in: false,
|
953
|
+
# },
|
954
|
+
# ],
|
955
|
+
# consumption_configuration: { # required
|
956
|
+
# renew_type: "None", # accepts None, Weekly, Monthly
|
957
|
+
# provisional_configuration: {
|
958
|
+
# max_time_to_live_in_minutes: 1, # required
|
959
|
+
# },
|
960
|
+
# borrow_configuration: {
|
961
|
+
# allow_early_check_in: false, # required
|
962
|
+
# max_time_to_live_in_minutes: 1, # required
|
963
|
+
# },
|
964
|
+
# },
|
965
|
+
# status: "AVAILABLE", # required, accepts AVAILABLE, PENDING_AVAILABLE, DEACTIVATED, SUSPENDED, EXPIRED, PENDING_DELETE, DELETED
|
966
|
+
# client_token: "String", # required
|
967
|
+
# source_version: "String",
|
968
|
+
# })
|
969
|
+
#
|
970
|
+
# @example Response structure
|
971
|
+
#
|
972
|
+
# resp.license_arn #=> String
|
973
|
+
# resp.version #=> String
|
974
|
+
# resp.status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
975
|
+
#
|
976
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseVersion AWS API Documentation
|
977
|
+
#
|
978
|
+
# @overload create_license_version(params = {})
|
979
|
+
# @param [Hash] params ({})
|
980
|
+
def create_license_version(params = {}, options = {})
|
981
|
+
req = build_request(:create_license_version, params)
|
982
|
+
req.send_request(options)
|
983
|
+
end
|
984
|
+
|
985
|
+
# Creates a long-lived token.
|
986
|
+
#
|
987
|
+
# A refresh token is a JWT token used to get an access token. With an
|
988
|
+
# access token, you can call AssumeRoleWithWebIdentity to get role
|
989
|
+
# credentials that you can use to call License Manager to manage the
|
990
|
+
# specified license.
|
991
|
+
#
|
992
|
+
# @option params [required, String] :license_arn
|
993
|
+
# Amazon Resource Name (ARN) of the license. The ARN is mapped to the
|
994
|
+
# aud claim of the JWT token.
|
995
|
+
#
|
996
|
+
# @option params [Array<String>] :role_arns
|
997
|
+
# Amazon Resource Name (ARN) of the IAM roles to embed in the token.
|
998
|
+
# License Manager does not check whether the roles are in use.
|
999
|
+
#
|
1000
|
+
# @option params [Integer] :expiration_in_days
|
1001
|
+
# Token expiration, in days, counted from token creation. The default is
|
1002
|
+
# 365 days.
|
1003
|
+
#
|
1004
|
+
# @option params [Array<String>] :token_properties
|
1005
|
+
# Data specified by the caller to be included in the JWT token. The data
|
1006
|
+
# is mapped to the amr claim of the JWT token.
|
1007
|
+
#
|
1008
|
+
# @option params [required, String] :client_token
|
1009
|
+
# Idempotency token, valid for 10 minutes.
|
1010
|
+
#
|
1011
|
+
# @return [Types::CreateTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1012
|
+
#
|
1013
|
+
# * {Types::CreateTokenResponse#token_id #token_id} => String
|
1014
|
+
# * {Types::CreateTokenResponse#token_type #token_type} => String
|
1015
|
+
# * {Types::CreateTokenResponse#token #token} => String
|
1016
|
+
#
|
1017
|
+
# @example Request syntax with placeholder values
|
1018
|
+
#
|
1019
|
+
# resp = client.create_token({
|
1020
|
+
# license_arn: "Arn", # required
|
1021
|
+
# role_arns: ["Arn"],
|
1022
|
+
# expiration_in_days: 1,
|
1023
|
+
# token_properties: ["String"],
|
1024
|
+
# client_token: "IdempotencyToken", # required
|
1025
|
+
# })
|
1026
|
+
#
|
1027
|
+
# @example Response structure
|
1028
|
+
#
|
1029
|
+
# resp.token_id #=> String
|
1030
|
+
# resp.token_type #=> String, one of "REFRESH_TOKEN"
|
1031
|
+
# resp.token #=> String
|
1032
|
+
#
|
1033
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateToken AWS API Documentation
|
1034
|
+
#
|
1035
|
+
# @overload create_token(params = {})
|
1036
|
+
# @param [Hash] params ({})
|
1037
|
+
def create_token(params = {}, options = {})
|
1038
|
+
req = build_request(:create_token, params)
|
1039
|
+
req.send_request(options)
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
# Deletes the specified grant.
|
1043
|
+
#
|
1044
|
+
# @option params [required, String] :grant_arn
|
1045
|
+
# Amazon Resource Name (ARN) of the grant.
|
1046
|
+
#
|
1047
|
+
# @option params [required, String] :version
|
1048
|
+
# Current version of the grant.
|
1049
|
+
#
|
1050
|
+
# @return [Types::DeleteGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1051
|
+
#
|
1052
|
+
# * {Types::DeleteGrantResponse#grant_arn #grant_arn} => String
|
1053
|
+
# * {Types::DeleteGrantResponse#status #status} => String
|
1054
|
+
# * {Types::DeleteGrantResponse#version #version} => String
|
1055
|
+
#
|
1056
|
+
# @example Request syntax with placeholder values
|
1057
|
+
#
|
1058
|
+
# resp = client.delete_grant({
|
1059
|
+
# grant_arn: "Arn", # required
|
1060
|
+
# version: "String", # required
|
1061
|
+
# })
|
1062
|
+
#
|
1063
|
+
# @example Response structure
|
1064
|
+
#
|
1065
|
+
# resp.grant_arn #=> String
|
1066
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
1067
|
+
# resp.version #=> String
|
1068
|
+
#
|
1069
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteGrant AWS API Documentation
|
1070
|
+
#
|
1071
|
+
# @overload delete_grant(params = {})
|
1072
|
+
# @param [Hash] params ({})
|
1073
|
+
def delete_grant(params = {}, options = {})
|
1074
|
+
req = build_request(:delete_grant, params)
|
1075
|
+
req.send_request(options)
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# Deletes the specified license.
|
1079
|
+
#
|
1080
|
+
# @option params [required, String] :license_arn
|
1081
|
+
# Amazon Resource Name (ARN) of the license.
|
1082
|
+
#
|
1083
|
+
# @option params [required, String] :source_version
|
1084
|
+
# Current version of the license.
|
1085
|
+
#
|
1086
|
+
# @return [Types::DeleteLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1087
|
+
#
|
1088
|
+
# * {Types::DeleteLicenseResponse#status #status} => String
|
1089
|
+
# * {Types::DeleteLicenseResponse#deletion_date #deletion_date} => String
|
1090
|
+
#
|
1091
|
+
# @example Request syntax with placeholder values
|
1092
|
+
#
|
1093
|
+
# resp = client.delete_license({
|
1094
|
+
# license_arn: "Arn", # required
|
1095
|
+
# source_version: "String", # required
|
1096
|
+
# })
|
1097
|
+
#
|
1098
|
+
# @example Response structure
|
1099
|
+
#
|
1100
|
+
# resp.status #=> String, one of "PENDING_DELETE", "DELETED"
|
1101
|
+
# resp.deletion_date #=> String
|
1102
|
+
#
|
1103
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicense AWS API Documentation
|
1104
|
+
#
|
1105
|
+
# @overload delete_license(params = {})
|
1106
|
+
# @param [Hash] params ({})
|
1107
|
+
def delete_license(params = {}, options = {})
|
1108
|
+
req = build_request(:delete_license, params)
|
1109
|
+
req.send_request(options)
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
# Deletes the specified license configuration.
|
1113
|
+
#
|
1114
|
+
# You cannot delete a license configuration that is in use.
|
1115
|
+
#
|
1116
|
+
# @option params [required, String] :license_configuration_arn
|
1117
|
+
# ID of the license configuration.
|
1118
|
+
#
|
1119
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1120
|
+
#
|
1121
|
+
# @example Request syntax with placeholder values
|
1122
|
+
#
|
1123
|
+
# resp = client.delete_license_configuration({
|
1124
|
+
# license_configuration_arn: "String", # required
|
1125
|
+
# })
|
1126
|
+
#
|
1127
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseConfiguration AWS API Documentation
|
1128
|
+
#
|
1129
|
+
# @overload delete_license_configuration(params = {})
|
1130
|
+
# @param [Hash] params ({})
|
1131
|
+
def delete_license_configuration(params = {}, options = {})
|
1132
|
+
req = build_request(:delete_license_configuration, params)
|
1133
|
+
req.send_request(options)
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
# Deletes the specified token. Must be called in the license home
|
1137
|
+
# Region.
|
1138
|
+
#
|
1139
|
+
# @option params [required, String] :token_id
|
1140
|
+
# Token ID.
|
1141
|
+
#
|
1142
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1143
|
+
#
|
1144
|
+
# @example Request syntax with placeholder values
|
1145
|
+
#
|
1146
|
+
# resp = client.delete_token({
|
1147
|
+
# token_id: "String", # required
|
1148
|
+
# })
|
1149
|
+
#
|
1150
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteToken AWS API Documentation
|
1151
|
+
#
|
1152
|
+
# @overload delete_token(params = {})
|
1153
|
+
# @param [Hash] params ({})
|
1154
|
+
def delete_token(params = {}, options = {})
|
1155
|
+
req = build_request(:delete_token, params)
|
1156
|
+
req.send_request(options)
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
# Extends the expiration date for license consumption.
|
1160
|
+
#
|
1161
|
+
# @option params [required, String] :license_consumption_token
|
1162
|
+
# License consumption token.
|
1163
|
+
#
|
1164
|
+
# @option params [Boolean] :dry_run
|
1165
|
+
# Checks whether you have the required permissions for the action,
|
1166
|
+
# without actually making the request. Provides an error response if you
|
1167
|
+
# do not have the required permissions.
|
1168
|
+
#
|
1169
|
+
# @return [Types::ExtendLicenseConsumptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1170
|
+
#
|
1171
|
+
# * {Types::ExtendLicenseConsumptionResponse#license_consumption_token #license_consumption_token} => String
|
1172
|
+
# * {Types::ExtendLicenseConsumptionResponse#expiration #expiration} => String
|
1173
|
+
#
|
1174
|
+
# @example Request syntax with placeholder values
|
1175
|
+
#
|
1176
|
+
# resp = client.extend_license_consumption({
|
1177
|
+
# license_consumption_token: "String", # required
|
1178
|
+
# dry_run: false,
|
1179
|
+
# })
|
1180
|
+
#
|
1181
|
+
# @example Response structure
|
1182
|
+
#
|
1183
|
+
# resp.license_consumption_token #=> String
|
1184
|
+
# resp.expiration #=> String
|
1185
|
+
#
|
1186
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ExtendLicenseConsumption AWS API Documentation
|
1187
|
+
#
|
1188
|
+
# @overload extend_license_consumption(params = {})
|
1189
|
+
# @param [Hash] params ({})
|
1190
|
+
def extend_license_consumption(params = {}, options = {})
|
1191
|
+
req = build_request(:extend_license_consumption, params)
|
1192
|
+
req.send_request(options)
|
1193
|
+
end
|
1194
|
+
|
1195
|
+
# Gets a temporary access token to use with AssumeRoleWithWebIdentity.
|
1196
|
+
# Access tokens are valid for one hour.
|
1197
|
+
#
|
1198
|
+
# @option params [required, String] :token
|
1199
|
+
# Refresh token, encoded as a JWT token.
|
1200
|
+
#
|
1201
|
+
# @option params [Array<String>] :token_properties
|
1202
|
+
# Token properties to validate against those present in the JWT token.
|
1203
|
+
#
|
1204
|
+
# @return [Types::GetAccessTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1205
|
+
#
|
1206
|
+
# * {Types::GetAccessTokenResponse#access_token #access_token} => String
|
1207
|
+
#
|
1208
|
+
# @example Request syntax with placeholder values
|
1209
|
+
#
|
1210
|
+
# resp = client.get_access_token({
|
1211
|
+
# token: "TokenString", # required
|
1212
|
+
# token_properties: ["String"],
|
1213
|
+
# })
|
1214
|
+
#
|
1215
|
+
# @example Response structure
|
1216
|
+
#
|
1217
|
+
# resp.access_token #=> String
|
1218
|
+
#
|
1219
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetAccessToken AWS API Documentation
|
1220
|
+
#
|
1221
|
+
# @overload get_access_token(params = {})
|
1222
|
+
# @param [Hash] params ({})
|
1223
|
+
def get_access_token(params = {}, options = {})
|
1224
|
+
req = build_request(:get_access_token, params)
|
1225
|
+
req.send_request(options)
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# Gets detailed information about the specified grant.
|
1229
|
+
#
|
1230
|
+
# @option params [required, String] :grant_arn
|
1231
|
+
# Amazon Resource Name (ARN) of the grant.
|
1232
|
+
#
|
1233
|
+
# @option params [String] :version
|
1234
|
+
# Grant version.
|
1235
|
+
#
|
1236
|
+
# @return [Types::GetGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1237
|
+
#
|
1238
|
+
# * {Types::GetGrantResponse#grant #grant} => Types::Grant
|
1239
|
+
#
|
1240
|
+
# @example Request syntax with placeholder values
|
1241
|
+
#
|
1242
|
+
# resp = client.get_grant({
|
1243
|
+
# grant_arn: "Arn", # required
|
1244
|
+
# version: "String",
|
1245
|
+
# })
|
1246
|
+
#
|
1247
|
+
# @example Response structure
|
1248
|
+
#
|
1249
|
+
# resp.grant.grant_arn #=> String
|
1250
|
+
# resp.grant.grant_name #=> String
|
1251
|
+
# resp.grant.parent_arn #=> String
|
1252
|
+
# resp.grant.license_arn #=> String
|
1253
|
+
# resp.grant.grantee_principal_arn #=> String
|
1254
|
+
# resp.grant.home_region #=> String
|
1255
|
+
# resp.grant.grant_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
1256
|
+
# resp.grant.status_reason #=> String
|
1257
|
+
# resp.grant.version #=> String
|
1258
|
+
# resp.grant.granted_operations #=> Array
|
1259
|
+
# resp.grant.granted_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
1260
|
+
#
|
1261
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetGrant AWS API Documentation
|
1262
|
+
#
|
1263
|
+
# @overload get_grant(params = {})
|
435
1264
|
# @param [Hash] params ({})
|
436
|
-
def
|
437
|
-
req = build_request(:
|
1265
|
+
def get_grant(params = {}, options = {})
|
1266
|
+
req = build_request(:get_grant, params)
|
438
1267
|
req.send_request(options)
|
439
1268
|
end
|
440
1269
|
|
441
|
-
#
|
1270
|
+
# Gets detailed information about the specified license.
|
442
1271
|
#
|
443
|
-
#
|
1272
|
+
# @option params [required, String] :license_arn
|
1273
|
+
# Amazon Resource Name (ARN) of the license.
|
444
1274
|
#
|
445
|
-
# @option params [
|
446
|
-
#
|
1275
|
+
# @option params [String] :version
|
1276
|
+
# License version.
|
447
1277
|
#
|
448
|
-
# @return [
|
1278
|
+
# @return [Types::GetLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1279
|
+
#
|
1280
|
+
# * {Types::GetLicenseResponse#license #license} => Types::License
|
449
1281
|
#
|
450
1282
|
# @example Request syntax with placeholder values
|
451
1283
|
#
|
452
|
-
# resp = client.
|
453
|
-
#
|
1284
|
+
# resp = client.get_license({
|
1285
|
+
# license_arn: "Arn", # required
|
1286
|
+
# version: "String",
|
454
1287
|
# })
|
455
1288
|
#
|
456
|
-
# @
|
1289
|
+
# @example Response structure
|
457
1290
|
#
|
458
|
-
#
|
1291
|
+
# resp.license.license_arn #=> String
|
1292
|
+
# resp.license.license_name #=> String
|
1293
|
+
# resp.license.product_name #=> String
|
1294
|
+
# resp.license.product_sku #=> String
|
1295
|
+
# resp.license.issuer.name #=> String
|
1296
|
+
# resp.license.issuer.sign_key #=> String
|
1297
|
+
# resp.license.issuer.key_fingerprint #=> String
|
1298
|
+
# resp.license.home_region #=> String
|
1299
|
+
# resp.license.status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
1300
|
+
# resp.license.validity.begin #=> String
|
1301
|
+
# resp.license.validity.end #=> String
|
1302
|
+
# resp.license.beneficiary #=> String
|
1303
|
+
# resp.license.entitlements #=> Array
|
1304
|
+
# resp.license.entitlements[0].name #=> String
|
1305
|
+
# resp.license.entitlements[0].value #=> String
|
1306
|
+
# resp.license.entitlements[0].max_count #=> Integer
|
1307
|
+
# resp.license.entitlements[0].overage #=> Boolean
|
1308
|
+
# resp.license.entitlements[0].unit #=> String, one of "Count", "None", "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second"
|
1309
|
+
# resp.license.entitlements[0].allow_check_in #=> Boolean
|
1310
|
+
# resp.license.consumption_configuration.renew_type #=> String, one of "None", "Weekly", "Monthly"
|
1311
|
+
# resp.license.consumption_configuration.provisional_configuration.max_time_to_live_in_minutes #=> Integer
|
1312
|
+
# resp.license.consumption_configuration.borrow_configuration.allow_early_check_in #=> Boolean
|
1313
|
+
# resp.license.consumption_configuration.borrow_configuration.max_time_to_live_in_minutes #=> Integer
|
1314
|
+
# resp.license.license_metadata #=> Array
|
1315
|
+
# resp.license.license_metadata[0].name #=> String
|
1316
|
+
# resp.license.license_metadata[0].value #=> String
|
1317
|
+
# resp.license.create_time #=> String
|
1318
|
+
# resp.license.version #=> String
|
1319
|
+
#
|
1320
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicense AWS API Documentation
|
1321
|
+
#
|
1322
|
+
# @overload get_license(params = {})
|
459
1323
|
# @param [Hash] params ({})
|
460
|
-
def
|
461
|
-
req = build_request(:
|
1324
|
+
def get_license(params = {}, options = {})
|
1325
|
+
req = build_request(:get_license, params)
|
462
1326
|
req.send_request(options)
|
463
1327
|
end
|
464
1328
|
|
@@ -485,6 +1349,7 @@ module Aws::LicenseManager
|
|
485
1349
|
# * {Types::GetLicenseConfigurationResponse#tags #tags} => Array<Types::Tag>
|
486
1350
|
# * {Types::GetLicenseConfigurationResponse#product_information_list #product_information_list} => Array<Types::ProductInformation>
|
487
1351
|
# * {Types::GetLicenseConfigurationResponse#automated_discovery_information #automated_discovery_information} => Types::AutomatedDiscoveryInformation
|
1352
|
+
# * {Types::GetLicenseConfigurationResponse#disassociate_when_not_found #disassociate_when_not_found} => Boolean
|
488
1353
|
#
|
489
1354
|
# @example Request syntax with placeholder values
|
490
1355
|
#
|
@@ -523,6 +1388,7 @@ module Aws::LicenseManager
|
|
523
1388
|
# resp.product_information_list[0].product_information_filter_list[0].product_information_filter_value[0] #=> String
|
524
1389
|
# resp.product_information_list[0].product_information_filter_list[0].product_information_filter_comparator #=> String
|
525
1390
|
# resp.automated_discovery_information.last_run_time #=> Time
|
1391
|
+
# resp.disassociate_when_not_found #=> Boolean
|
526
1392
|
#
|
527
1393
|
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseConfiguration AWS API Documentation
|
528
1394
|
#
|
@@ -533,6 +1399,38 @@ module Aws::LicenseManager
|
|
533
1399
|
req.send_request(options)
|
534
1400
|
end
|
535
1401
|
|
1402
|
+
# Gets detailed information about the usage of the specified license.
|
1403
|
+
#
|
1404
|
+
# @option params [required, String] :license_arn
|
1405
|
+
# Amazon Resource Name (ARN) of the license.
|
1406
|
+
#
|
1407
|
+
# @return [Types::GetLicenseUsageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1408
|
+
#
|
1409
|
+
# * {Types::GetLicenseUsageResponse#license_usage #license_usage} => Types::LicenseUsage
|
1410
|
+
#
|
1411
|
+
# @example Request syntax with placeholder values
|
1412
|
+
#
|
1413
|
+
# resp = client.get_license_usage({
|
1414
|
+
# license_arn: "Arn", # required
|
1415
|
+
# })
|
1416
|
+
#
|
1417
|
+
# @example Response structure
|
1418
|
+
#
|
1419
|
+
# resp.license_usage.entitlement_usages #=> Array
|
1420
|
+
# resp.license_usage.entitlement_usages[0].name #=> String
|
1421
|
+
# resp.license_usage.entitlement_usages[0].consumed_value #=> String
|
1422
|
+
# resp.license_usage.entitlement_usages[0].max_count #=> String
|
1423
|
+
# resp.license_usage.entitlement_usages[0].unit #=> String, one of "Count", "None", "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second"
|
1424
|
+
#
|
1425
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseUsage AWS API Documentation
|
1426
|
+
#
|
1427
|
+
# @overload get_license_usage(params = {})
|
1428
|
+
# @param [Hash] params ({})
|
1429
|
+
def get_license_usage(params = {}, options = {})
|
1430
|
+
req = build_request(:get_license_usage, params)
|
1431
|
+
req.send_request(options)
|
1432
|
+
end
|
1433
|
+
|
536
1434
|
# Gets the License Manager settings for the current Region.
|
537
1435
|
#
|
538
1436
|
# @return [Types::GetServiceSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -608,6 +1506,72 @@ module Aws::LicenseManager
|
|
608
1506
|
req.send_request(options)
|
609
1507
|
end
|
610
1508
|
|
1509
|
+
# Lists the grants distributed for the specified license.
|
1510
|
+
#
|
1511
|
+
# @option params [Array<String>] :grant_arns
|
1512
|
+
# Amazon Resource Names (ARNs) of the grants.
|
1513
|
+
#
|
1514
|
+
# @option params [Array<Types::Filter>] :filters
|
1515
|
+
# Filters to scope the results. The following filters are supported:
|
1516
|
+
#
|
1517
|
+
# * `LicenseARN`
|
1518
|
+
#
|
1519
|
+
# * `Status`
|
1520
|
+
#
|
1521
|
+
# * `PrincipalARN`
|
1522
|
+
#
|
1523
|
+
# * `ParentARN`
|
1524
|
+
#
|
1525
|
+
# @option params [String] :next_token
|
1526
|
+
# Token for the next set of results.
|
1527
|
+
#
|
1528
|
+
# @option params [Integer] :max_results
|
1529
|
+
# Maximum number of results to return in a single call.
|
1530
|
+
#
|
1531
|
+
# @return [Types::ListDistributedGrantsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1532
|
+
#
|
1533
|
+
# * {Types::ListDistributedGrantsResponse#grants #grants} => Array<Types::Grant>
|
1534
|
+
# * {Types::ListDistributedGrantsResponse#next_token #next_token} => String
|
1535
|
+
#
|
1536
|
+
# @example Request syntax with placeholder values
|
1537
|
+
#
|
1538
|
+
# resp = client.list_distributed_grants({
|
1539
|
+
# grant_arns: ["Arn"],
|
1540
|
+
# filters: [
|
1541
|
+
# {
|
1542
|
+
# name: "FilterName",
|
1543
|
+
# values: ["FilterValue"],
|
1544
|
+
# },
|
1545
|
+
# ],
|
1546
|
+
# next_token: "String",
|
1547
|
+
# max_results: 1,
|
1548
|
+
# })
|
1549
|
+
#
|
1550
|
+
# @example Response structure
|
1551
|
+
#
|
1552
|
+
# resp.grants #=> Array
|
1553
|
+
# resp.grants[0].grant_arn #=> String
|
1554
|
+
# resp.grants[0].grant_name #=> String
|
1555
|
+
# resp.grants[0].parent_arn #=> String
|
1556
|
+
# resp.grants[0].license_arn #=> String
|
1557
|
+
# resp.grants[0].grantee_principal_arn #=> String
|
1558
|
+
# resp.grants[0].home_region #=> String
|
1559
|
+
# resp.grants[0].grant_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
1560
|
+
# resp.grants[0].status_reason #=> String
|
1561
|
+
# resp.grants[0].version #=> String
|
1562
|
+
# resp.grants[0].granted_operations #=> Array
|
1563
|
+
# resp.grants[0].granted_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
1564
|
+
# resp.next_token #=> String
|
1565
|
+
#
|
1566
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListDistributedGrants AWS API Documentation
|
1567
|
+
#
|
1568
|
+
# @overload list_distributed_grants(params = {})
|
1569
|
+
# @param [Hash] params ({})
|
1570
|
+
def list_distributed_grants(params = {}, options = {})
|
1571
|
+
req = build_request(:list_distributed_grants, params)
|
1572
|
+
req.send_request(options)
|
1573
|
+
end
|
1574
|
+
|
611
1575
|
# Lists the license configuration operations that failed.
|
612
1576
|
#
|
613
1577
|
# @option params [required, String] :license_configuration_arn
|
@@ -714,6 +1678,7 @@ module Aws::LicenseManager
|
|
714
1678
|
# resp.license_configurations[0].license_rules[0] #=> String
|
715
1679
|
# resp.license_configurations[0].license_count #=> Integer
|
716
1680
|
# resp.license_configurations[0].license_count_hard_limit #=> Boolean
|
1681
|
+
# resp.license_configurations[0].disassociate_when_not_found #=> Boolean
|
717
1682
|
# resp.license_configurations[0].consumed_licenses #=> Integer
|
718
1683
|
# resp.license_configurations[0].status #=> String
|
719
1684
|
# resp.license_configurations[0].owner_account_id #=> String
|
@@ -783,6 +1748,303 @@ module Aws::LicenseManager
|
|
783
1748
|
req.send_request(options)
|
784
1749
|
end
|
785
1750
|
|
1751
|
+
# Lists all versions of the specified license.
|
1752
|
+
#
|
1753
|
+
# @option params [required, String] :license_arn
|
1754
|
+
# Amazon Resource Name (ARN) of the license.
|
1755
|
+
#
|
1756
|
+
# @option params [String] :next_token
|
1757
|
+
# Token for the next set of results.
|
1758
|
+
#
|
1759
|
+
# @option params [Integer] :max_results
|
1760
|
+
# Maximum number of results to return in a single call.
|
1761
|
+
#
|
1762
|
+
# @return [Types::ListLicenseVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1763
|
+
#
|
1764
|
+
# * {Types::ListLicenseVersionsResponse#licenses #licenses} => Array<Types::License>
|
1765
|
+
# * {Types::ListLicenseVersionsResponse#next_token #next_token} => String
|
1766
|
+
#
|
1767
|
+
# @example Request syntax with placeholder values
|
1768
|
+
#
|
1769
|
+
# resp = client.list_license_versions({
|
1770
|
+
# license_arn: "Arn", # required
|
1771
|
+
# next_token: "String",
|
1772
|
+
# max_results: 1,
|
1773
|
+
# })
|
1774
|
+
#
|
1775
|
+
# @example Response structure
|
1776
|
+
#
|
1777
|
+
# resp.licenses #=> Array
|
1778
|
+
# resp.licenses[0].license_arn #=> String
|
1779
|
+
# resp.licenses[0].license_name #=> String
|
1780
|
+
# resp.licenses[0].product_name #=> String
|
1781
|
+
# resp.licenses[0].product_sku #=> String
|
1782
|
+
# resp.licenses[0].issuer.name #=> String
|
1783
|
+
# resp.licenses[0].issuer.sign_key #=> String
|
1784
|
+
# resp.licenses[0].issuer.key_fingerprint #=> String
|
1785
|
+
# resp.licenses[0].home_region #=> String
|
1786
|
+
# resp.licenses[0].status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
1787
|
+
# resp.licenses[0].validity.begin #=> String
|
1788
|
+
# resp.licenses[0].validity.end #=> String
|
1789
|
+
# resp.licenses[0].beneficiary #=> String
|
1790
|
+
# resp.licenses[0].entitlements #=> Array
|
1791
|
+
# resp.licenses[0].entitlements[0].name #=> String
|
1792
|
+
# resp.licenses[0].entitlements[0].value #=> String
|
1793
|
+
# resp.licenses[0].entitlements[0].max_count #=> Integer
|
1794
|
+
# resp.licenses[0].entitlements[0].overage #=> Boolean
|
1795
|
+
# resp.licenses[0].entitlements[0].unit #=> String, one of "Count", "None", "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second"
|
1796
|
+
# resp.licenses[0].entitlements[0].allow_check_in #=> Boolean
|
1797
|
+
# resp.licenses[0].consumption_configuration.renew_type #=> String, one of "None", "Weekly", "Monthly"
|
1798
|
+
# resp.licenses[0].consumption_configuration.provisional_configuration.max_time_to_live_in_minutes #=> Integer
|
1799
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.allow_early_check_in #=> Boolean
|
1800
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.max_time_to_live_in_minutes #=> Integer
|
1801
|
+
# resp.licenses[0].license_metadata #=> Array
|
1802
|
+
# resp.licenses[0].license_metadata[0].name #=> String
|
1803
|
+
# resp.licenses[0].license_metadata[0].value #=> String
|
1804
|
+
# resp.licenses[0].create_time #=> String
|
1805
|
+
# resp.licenses[0].version #=> String
|
1806
|
+
# resp.next_token #=> String
|
1807
|
+
#
|
1808
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseVersions AWS API Documentation
|
1809
|
+
#
|
1810
|
+
# @overload list_license_versions(params = {})
|
1811
|
+
# @param [Hash] params ({})
|
1812
|
+
def list_license_versions(params = {}, options = {})
|
1813
|
+
req = build_request(:list_license_versions, params)
|
1814
|
+
req.send_request(options)
|
1815
|
+
end
|
1816
|
+
|
1817
|
+
# Lists the licenses for your account.
|
1818
|
+
#
|
1819
|
+
# @option params [Array<String>] :license_arns
|
1820
|
+
# Amazon Resource Names (ARNs) of the licenses.
|
1821
|
+
#
|
1822
|
+
# @option params [Array<Types::Filter>] :filters
|
1823
|
+
# Filters to scope the results. The following filters are supported:
|
1824
|
+
#
|
1825
|
+
# * `Beneficiary`
|
1826
|
+
#
|
1827
|
+
# * `ProductSKU`
|
1828
|
+
#
|
1829
|
+
# * `KeyFingerprint`
|
1830
|
+
#
|
1831
|
+
# * `Status`
|
1832
|
+
#
|
1833
|
+
# @option params [String] :next_token
|
1834
|
+
# Token for the next set of results.
|
1835
|
+
#
|
1836
|
+
# @option params [Integer] :max_results
|
1837
|
+
# Maximum number of results to return in a single call.
|
1838
|
+
#
|
1839
|
+
# @return [Types::ListLicensesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1840
|
+
#
|
1841
|
+
# * {Types::ListLicensesResponse#licenses #licenses} => Array<Types::License>
|
1842
|
+
# * {Types::ListLicensesResponse#next_token #next_token} => String
|
1843
|
+
#
|
1844
|
+
# @example Request syntax with placeholder values
|
1845
|
+
#
|
1846
|
+
# resp = client.list_licenses({
|
1847
|
+
# license_arns: ["Arn"],
|
1848
|
+
# filters: [
|
1849
|
+
# {
|
1850
|
+
# name: "FilterName",
|
1851
|
+
# values: ["FilterValue"],
|
1852
|
+
# },
|
1853
|
+
# ],
|
1854
|
+
# next_token: "String",
|
1855
|
+
# max_results: 1,
|
1856
|
+
# })
|
1857
|
+
#
|
1858
|
+
# @example Response structure
|
1859
|
+
#
|
1860
|
+
# resp.licenses #=> Array
|
1861
|
+
# resp.licenses[0].license_arn #=> String
|
1862
|
+
# resp.licenses[0].license_name #=> String
|
1863
|
+
# resp.licenses[0].product_name #=> String
|
1864
|
+
# resp.licenses[0].product_sku #=> String
|
1865
|
+
# resp.licenses[0].issuer.name #=> String
|
1866
|
+
# resp.licenses[0].issuer.sign_key #=> String
|
1867
|
+
# resp.licenses[0].issuer.key_fingerprint #=> String
|
1868
|
+
# resp.licenses[0].home_region #=> String
|
1869
|
+
# resp.licenses[0].status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
1870
|
+
# resp.licenses[0].validity.begin #=> String
|
1871
|
+
# resp.licenses[0].validity.end #=> String
|
1872
|
+
# resp.licenses[0].beneficiary #=> String
|
1873
|
+
# resp.licenses[0].entitlements #=> Array
|
1874
|
+
# resp.licenses[0].entitlements[0].name #=> String
|
1875
|
+
# resp.licenses[0].entitlements[0].value #=> String
|
1876
|
+
# resp.licenses[0].entitlements[0].max_count #=> Integer
|
1877
|
+
# resp.licenses[0].entitlements[0].overage #=> Boolean
|
1878
|
+
# resp.licenses[0].entitlements[0].unit #=> String, one of "Count", "None", "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second"
|
1879
|
+
# resp.licenses[0].entitlements[0].allow_check_in #=> Boolean
|
1880
|
+
# resp.licenses[0].consumption_configuration.renew_type #=> String, one of "None", "Weekly", "Monthly"
|
1881
|
+
# resp.licenses[0].consumption_configuration.provisional_configuration.max_time_to_live_in_minutes #=> Integer
|
1882
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.allow_early_check_in #=> Boolean
|
1883
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.max_time_to_live_in_minutes #=> Integer
|
1884
|
+
# resp.licenses[0].license_metadata #=> Array
|
1885
|
+
# resp.licenses[0].license_metadata[0].name #=> String
|
1886
|
+
# resp.licenses[0].license_metadata[0].value #=> String
|
1887
|
+
# resp.licenses[0].create_time #=> String
|
1888
|
+
# resp.licenses[0].version #=> String
|
1889
|
+
# resp.next_token #=> String
|
1890
|
+
#
|
1891
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenses AWS API Documentation
|
1892
|
+
#
|
1893
|
+
# @overload list_licenses(params = {})
|
1894
|
+
# @param [Hash] params ({})
|
1895
|
+
def list_licenses(params = {}, options = {})
|
1896
|
+
req = build_request(:list_licenses, params)
|
1897
|
+
req.send_request(options)
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
# Lists grants that are received but not accepted.
|
1901
|
+
#
|
1902
|
+
# @option params [Array<String>] :grant_arns
|
1903
|
+
# Amazon Resource Names (ARNs) of the grants.
|
1904
|
+
#
|
1905
|
+
# @option params [Array<Types::Filter>] :filters
|
1906
|
+
# Filters to scope the results. The following filters are supported:
|
1907
|
+
#
|
1908
|
+
# * `LicenseARN`
|
1909
|
+
#
|
1910
|
+
# * `Status`
|
1911
|
+
#
|
1912
|
+
# @option params [String] :next_token
|
1913
|
+
# Token for the next set of results.
|
1914
|
+
#
|
1915
|
+
# @option params [Integer] :max_results
|
1916
|
+
# Maximum number of results to return in a single call.
|
1917
|
+
#
|
1918
|
+
# @return [Types::ListReceivedGrantsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1919
|
+
#
|
1920
|
+
# * {Types::ListReceivedGrantsResponse#grants #grants} => Array<Types::Grant>
|
1921
|
+
# * {Types::ListReceivedGrantsResponse#next_token #next_token} => String
|
1922
|
+
#
|
1923
|
+
# @example Request syntax with placeholder values
|
1924
|
+
#
|
1925
|
+
# resp = client.list_received_grants({
|
1926
|
+
# grant_arns: ["Arn"],
|
1927
|
+
# filters: [
|
1928
|
+
# {
|
1929
|
+
# name: "FilterName",
|
1930
|
+
# values: ["FilterValue"],
|
1931
|
+
# },
|
1932
|
+
# ],
|
1933
|
+
# next_token: "String",
|
1934
|
+
# max_results: 1,
|
1935
|
+
# })
|
1936
|
+
#
|
1937
|
+
# @example Response structure
|
1938
|
+
#
|
1939
|
+
# resp.grants #=> Array
|
1940
|
+
# resp.grants[0].grant_arn #=> String
|
1941
|
+
# resp.grants[0].grant_name #=> String
|
1942
|
+
# resp.grants[0].parent_arn #=> String
|
1943
|
+
# resp.grants[0].license_arn #=> String
|
1944
|
+
# resp.grants[0].grantee_principal_arn #=> String
|
1945
|
+
# resp.grants[0].home_region #=> String
|
1946
|
+
# resp.grants[0].grant_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
1947
|
+
# resp.grants[0].status_reason #=> String
|
1948
|
+
# resp.grants[0].version #=> String
|
1949
|
+
# resp.grants[0].granted_operations #=> Array
|
1950
|
+
# resp.grants[0].granted_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
1951
|
+
# resp.next_token #=> String
|
1952
|
+
#
|
1953
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedGrants AWS API Documentation
|
1954
|
+
#
|
1955
|
+
# @overload list_received_grants(params = {})
|
1956
|
+
# @param [Hash] params ({})
|
1957
|
+
def list_received_grants(params = {}, options = {})
|
1958
|
+
req = build_request(:list_received_grants, params)
|
1959
|
+
req.send_request(options)
|
1960
|
+
end
|
1961
|
+
|
1962
|
+
# Lists received licenses.
|
1963
|
+
#
|
1964
|
+
# @option params [Array<String>] :license_arns
|
1965
|
+
# Amazon Resource Names (ARNs) of the licenses.
|
1966
|
+
#
|
1967
|
+
# @option params [Array<Types::Filter>] :filters
|
1968
|
+
# Filters to scope the results. The following filters are supported:
|
1969
|
+
#
|
1970
|
+
# * `ProductSKU`
|
1971
|
+
#
|
1972
|
+
# * `Status`
|
1973
|
+
#
|
1974
|
+
# * `KeyFingerprint`
|
1975
|
+
#
|
1976
|
+
# * `Issuer`
|
1977
|
+
#
|
1978
|
+
# @option params [String] :next_token
|
1979
|
+
# Token for the next set of results.
|
1980
|
+
#
|
1981
|
+
# @option params [Integer] :max_results
|
1982
|
+
# Maximum number of results to return in a single call.
|
1983
|
+
#
|
1984
|
+
# @return [Types::ListReceivedLicensesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1985
|
+
#
|
1986
|
+
# * {Types::ListReceivedLicensesResponse#licenses #licenses} => Array<Types::GrantedLicense>
|
1987
|
+
# * {Types::ListReceivedLicensesResponse#next_token #next_token} => String
|
1988
|
+
#
|
1989
|
+
# @example Request syntax with placeholder values
|
1990
|
+
#
|
1991
|
+
# resp = client.list_received_licenses({
|
1992
|
+
# license_arns: ["Arn"],
|
1993
|
+
# filters: [
|
1994
|
+
# {
|
1995
|
+
# name: "FilterName",
|
1996
|
+
# values: ["FilterValue"],
|
1997
|
+
# },
|
1998
|
+
# ],
|
1999
|
+
# next_token: "String",
|
2000
|
+
# max_results: 1,
|
2001
|
+
# })
|
2002
|
+
#
|
2003
|
+
# @example Response structure
|
2004
|
+
#
|
2005
|
+
# resp.licenses #=> Array
|
2006
|
+
# resp.licenses[0].license_arn #=> String
|
2007
|
+
# resp.licenses[0].license_name #=> String
|
2008
|
+
# resp.licenses[0].product_name #=> String
|
2009
|
+
# resp.licenses[0].product_sku #=> String
|
2010
|
+
# resp.licenses[0].issuer.name #=> String
|
2011
|
+
# resp.licenses[0].issuer.sign_key #=> String
|
2012
|
+
# resp.licenses[0].issuer.key_fingerprint #=> String
|
2013
|
+
# resp.licenses[0].home_region #=> String
|
2014
|
+
# resp.licenses[0].status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
2015
|
+
# resp.licenses[0].validity.begin #=> String
|
2016
|
+
# resp.licenses[0].validity.end #=> String
|
2017
|
+
# resp.licenses[0].beneficiary #=> String
|
2018
|
+
# resp.licenses[0].entitlements #=> Array
|
2019
|
+
# resp.licenses[0].entitlements[0].name #=> String
|
2020
|
+
# resp.licenses[0].entitlements[0].value #=> String
|
2021
|
+
# resp.licenses[0].entitlements[0].max_count #=> Integer
|
2022
|
+
# resp.licenses[0].entitlements[0].overage #=> Boolean
|
2023
|
+
# resp.licenses[0].entitlements[0].unit #=> String, one of "Count", "None", "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second"
|
2024
|
+
# resp.licenses[0].entitlements[0].allow_check_in #=> Boolean
|
2025
|
+
# resp.licenses[0].consumption_configuration.renew_type #=> String, one of "None", "Weekly", "Monthly"
|
2026
|
+
# resp.licenses[0].consumption_configuration.provisional_configuration.max_time_to_live_in_minutes #=> Integer
|
2027
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.allow_early_check_in #=> Boolean
|
2028
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.max_time_to_live_in_minutes #=> Integer
|
2029
|
+
# resp.licenses[0].license_metadata #=> Array
|
2030
|
+
# resp.licenses[0].license_metadata[0].name #=> String
|
2031
|
+
# resp.licenses[0].license_metadata[0].value #=> String
|
2032
|
+
# resp.licenses[0].create_time #=> String
|
2033
|
+
# resp.licenses[0].version #=> String
|
2034
|
+
# resp.licenses[0].received_metadata.received_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "DISABLED"
|
2035
|
+
# resp.licenses[0].received_metadata.allowed_operations #=> Array
|
2036
|
+
# resp.licenses[0].received_metadata.allowed_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
2037
|
+
# resp.next_token #=> String
|
2038
|
+
#
|
2039
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedLicenses AWS API Documentation
|
2040
|
+
#
|
2041
|
+
# @overload list_received_licenses(params = {})
|
2042
|
+
# @param [Hash] params ({})
|
2043
|
+
def list_received_licenses(params = {}, options = {})
|
2044
|
+
req = build_request(:list_received_licenses, params)
|
2045
|
+
req.send_request(options)
|
2046
|
+
end
|
2047
|
+
|
786
2048
|
# Lists resources managed using Systems Manager inventory.
|
787
2049
|
#
|
788
2050
|
# @option params [Integer] :max_results
|
@@ -812,6 +2074,10 @@ module Aws::LicenseManager
|
|
812
2074
|
# * `resource_id` - The ID of the resource. Logical operators are
|
813
2075
|
# `EQUALS` \| `NOT_EQUALS`.
|
814
2076
|
#
|
2077
|
+
# * `tag:<key>` - The key/value combination of a tag assigned to the
|
2078
|
+
# resource. Logical operators are `EQUALS` (single account) or
|
2079
|
+
# `EQUALS` \| `NOT_EQUALS` (cross account).
|
2080
|
+
#
|
815
2081
|
# @return [Types::ListResourceInventoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
816
2082
|
#
|
817
2083
|
# * {Types::ListResourceInventoryResponse#resource_inventory_list #resource_inventory_list} => Array<Types::ResourceInventory>
|
@@ -881,6 +2147,66 @@ module Aws::LicenseManager
|
|
881
2147
|
req.send_request(options)
|
882
2148
|
end
|
883
2149
|
|
2150
|
+
# Lists your tokens.
|
2151
|
+
#
|
2152
|
+
# @option params [Array<String>] :token_ids
|
2153
|
+
# Token IDs.
|
2154
|
+
#
|
2155
|
+
# @option params [Array<Types::Filter>] :filters
|
2156
|
+
# Filters to scope the results. The following filter is supported:
|
2157
|
+
#
|
2158
|
+
# * `licenseArns`
|
2159
|
+
#
|
2160
|
+
# ^
|
2161
|
+
#
|
2162
|
+
# @option params [String] :next_token
|
2163
|
+
# Token for the next set of results.
|
2164
|
+
#
|
2165
|
+
# @option params [Integer] :max_results
|
2166
|
+
# Maximum number of results to return in a single call.
|
2167
|
+
#
|
2168
|
+
# @return [Types::ListTokensResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2169
|
+
#
|
2170
|
+
# * {Types::ListTokensResponse#tokens #tokens} => Array<Types::TokenData>
|
2171
|
+
# * {Types::ListTokensResponse#next_token #next_token} => String
|
2172
|
+
#
|
2173
|
+
# @example Request syntax with placeholder values
|
2174
|
+
#
|
2175
|
+
# resp = client.list_tokens({
|
2176
|
+
# token_ids: ["String"],
|
2177
|
+
# filters: [
|
2178
|
+
# {
|
2179
|
+
# name: "FilterName",
|
2180
|
+
# values: ["FilterValue"],
|
2181
|
+
# },
|
2182
|
+
# ],
|
2183
|
+
# next_token: "String",
|
2184
|
+
# max_results: 1,
|
2185
|
+
# })
|
2186
|
+
#
|
2187
|
+
# @example Response structure
|
2188
|
+
#
|
2189
|
+
# resp.tokens #=> Array
|
2190
|
+
# resp.tokens[0].token_id #=> String
|
2191
|
+
# resp.tokens[0].token_type #=> String
|
2192
|
+
# resp.tokens[0].license_arn #=> String
|
2193
|
+
# resp.tokens[0].expiration_time #=> String
|
2194
|
+
# resp.tokens[0].token_properties #=> Array
|
2195
|
+
# resp.tokens[0].token_properties[0] #=> String
|
2196
|
+
# resp.tokens[0].role_arns #=> Array
|
2197
|
+
# resp.tokens[0].role_arns[0] #=> String
|
2198
|
+
# resp.tokens[0].status #=> String
|
2199
|
+
# resp.next_token #=> String
|
2200
|
+
#
|
2201
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTokens AWS API Documentation
|
2202
|
+
#
|
2203
|
+
# @overload list_tokens(params = {})
|
2204
|
+
# @param [Hash] params ({})
|
2205
|
+
def list_tokens(params = {}, options = {})
|
2206
|
+
req = build_request(:list_tokens, params)
|
2207
|
+
req.send_request(options)
|
2208
|
+
end
|
2209
|
+
|
884
2210
|
# Lists all license usage records for a license configuration,
|
885
2211
|
# displaying license consumption details by resource at a selected point
|
886
2212
|
# in time. Use this action to audit the current license consumption for
|
@@ -902,8 +2228,8 @@ module Aws::LicenseManager
|
|
902
2228
|
# * `resourceArn` - The ARN of the license configuration resource.
|
903
2229
|
# Logical operators are `EQUALS` \| `NOT_EQUALS`.
|
904
2230
|
#
|
905
|
-
# * `resourceType` - The resource type (
|
906
|
-
#
|
2231
|
+
# * `resourceType` - The resource type (`EC2_INSTANCE` \| `EC2_HOST` \|
|
2232
|
+
# `EC2_AMI` \| `SYSTEMS_MANAGER_MANAGED_INSTANCE`). Logical operators
|
907
2233
|
# are `EQUALS` \| `NOT_EQUALS`.
|
908
2234
|
#
|
909
2235
|
# * `resourceAccount` - The ID of the account that owns the resource.
|
@@ -948,6 +2274,38 @@ module Aws::LicenseManager
|
|
948
2274
|
req.send_request(options)
|
949
2275
|
end
|
950
2276
|
|
2277
|
+
# Rejects the specified grant.
|
2278
|
+
#
|
2279
|
+
# @option params [required, String] :grant_arn
|
2280
|
+
# Amazon Resource Name (ARN) of the grant.
|
2281
|
+
#
|
2282
|
+
# @return [Types::RejectGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2283
|
+
#
|
2284
|
+
# * {Types::RejectGrantResponse#grant_arn #grant_arn} => String
|
2285
|
+
# * {Types::RejectGrantResponse#status #status} => String
|
2286
|
+
# * {Types::RejectGrantResponse#version #version} => String
|
2287
|
+
#
|
2288
|
+
# @example Request syntax with placeholder values
|
2289
|
+
#
|
2290
|
+
# resp = client.reject_grant({
|
2291
|
+
# grant_arn: "Arn", # required
|
2292
|
+
# })
|
2293
|
+
#
|
2294
|
+
# @example Response structure
|
2295
|
+
#
|
2296
|
+
# resp.grant_arn #=> String
|
2297
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
2298
|
+
# resp.version #=> String
|
2299
|
+
#
|
2300
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/RejectGrant AWS API Documentation
|
2301
|
+
#
|
2302
|
+
# @overload reject_grant(params = {})
|
2303
|
+
# @param [Hash] params ({})
|
2304
|
+
def reject_grant(params = {}, options = {})
|
2305
|
+
req = build_request(:reject_grant, params)
|
2306
|
+
req.send_request(options)
|
2307
|
+
end
|
2308
|
+
|
951
2309
|
# Adds the specified tags to the specified license configuration.
|
952
2310
|
#
|
953
2311
|
# @option params [required, String] :resource_arn
|
@@ -1032,6 +2390,9 @@ module Aws::LicenseManager
|
|
1032
2390
|
# @option params [Array<Types::ProductInformation>] :product_information_list
|
1033
2391
|
# New product information.
|
1034
2392
|
#
|
2393
|
+
# @option params [Boolean] :disassociate_when_not_found
|
2394
|
+
# When true, disassociates a resource when software is uninstalled.
|
2395
|
+
#
|
1035
2396
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1036
2397
|
#
|
1037
2398
|
# @example Request syntax with placeholder values
|
@@ -1050,12 +2411,13 @@ module Aws::LicenseManager
|
|
1050
2411
|
# product_information_filter_list: [ # required
|
1051
2412
|
# {
|
1052
2413
|
# product_information_filter_name: "String", # required
|
1053
|
-
# product_information_filter_value: ["String"],
|
2414
|
+
# product_information_filter_value: ["String"],
|
1054
2415
|
# product_information_filter_comparator: "String", # required
|
1055
2416
|
# },
|
1056
2417
|
# ],
|
1057
2418
|
# },
|
1058
2419
|
# ],
|
2420
|
+
# disassociate_when_not_found: false,
|
1059
2421
|
# })
|
1060
2422
|
#
|
1061
2423
|
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration AWS API Documentation
|
@@ -1165,7 +2527,7 @@ module Aws::LicenseManager
|
|
1165
2527
|
params: params,
|
1166
2528
|
config: config)
|
1167
2529
|
context[:gem_name] = 'aws-sdk-licensemanager'
|
1168
|
-
context[:gem_version] = '1.
|
2530
|
+
context[:gem_version] = '1.26.0'
|
1169
2531
|
Seahorse::Client::Request.new(handlers, context)
|
1170
2532
|
end
|
1171
2533
|
|