aws-sdk-artifact 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-artifact/client.rb +94 -10
- data/lib/aws-sdk-artifact/client_api.rb +53 -0
- data/lib/aws-sdk-artifact/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-artifact/endpoints.rb +2 -64
- data/lib/aws-sdk-artifact/plugins/endpoints.rb +1 -18
- data/lib/aws-sdk-artifact/types.rb +109 -0
- data/lib/aws-sdk-artifact.rb +1 -1
- data/sig/client.rbs +12 -0
- data/sig/types.rbs +29 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdb922b3a13f3668a24b903c7e65072af1ff50290ea0f8d21924a8c7aa9e5ad5
|
4
|
+
data.tar.gz: 4183ae43c6027ad0522490235c5160428ab9680bfa0d2ccc71f508619ae07b30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7283cea76afa7a9fe8ddd462487eaac1bd832584427e736923b6e3b6f06d6affee354bdcaace2b02c04341f91032b9bf5789ef489b45ac86605b0bcd60309677
|
7
|
+
data.tar.gz: c8095f38f2920546966dcc6ccea32ca227cad131453baf3e0a2528fde7765f535f7e75870855d8c56f4beb0a7bf8f74a8a6c1d8b5b470c166bf53bb4dc1659ca
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.15.0 (2024-12-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Add support for listing active customer agreements for the calling AWS Account.
|
8
|
+
|
9
|
+
1.14.0 (2024-10-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.13.0 (2024-09-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.15.0
|
@@ -505,8 +505,8 @@ module Aws::Artifact
|
|
505
505
|
# # report's latest version
|
506
506
|
#
|
507
507
|
# resp = client.get_report({
|
508
|
-
# report_id: "report-
|
509
|
-
# term_token: "term-token-
|
508
|
+
# report_id: "report-abcdef0123456789",
|
509
|
+
# term_token: "term-token-abcdefghijklm01234567890",
|
510
510
|
# })
|
511
511
|
#
|
512
512
|
# resp.to_h outputs the following:
|
@@ -562,18 +562,18 @@ module Aws::Artifact
|
|
562
562
|
# report_details: {
|
563
563
|
# version: 1,
|
564
564
|
# name: "Name of report",
|
565
|
-
# arn: "arn:aws:artifact:us-east-1::report/report-
|
565
|
+
# arn: "arn:aws:artifact:us-east-1::report/report-abcdef0123456789:1",
|
566
566
|
# category: "Artifact Category",
|
567
567
|
# company_name: "AWS",
|
568
568
|
# created_at: Time.parse("2022-05-27T23:17:00.343940Z"),
|
569
569
|
# description: "Description of report",
|
570
|
-
# id: "report-
|
570
|
+
# id: "report-abcdef0123456789",
|
571
571
|
# period_end: Time.parse("2022-04-01T20:32:04Z"),
|
572
572
|
# period_start: Time.parse("2022-04-01T20:32:04Z"),
|
573
573
|
# product_name: "Product of report",
|
574
574
|
# series: "Artifact Series",
|
575
575
|
# state: "PUBLISHED",
|
576
|
-
# term_arn: "arn:aws:artifact:us-east-1::term/term-
|
576
|
+
# term_arn: "arn:aws:artifact:us-east-1::term/term-abcdef0123456789:1",
|
577
577
|
# },
|
578
578
|
# }
|
579
579
|
#
|
@@ -636,13 +636,13 @@ module Aws::Artifact
|
|
636
636
|
# # If callers do not provide a version, it will default to the report's latest version.
|
637
637
|
#
|
638
638
|
# resp = client.get_term_for_report({
|
639
|
-
# report_id: "report-
|
639
|
+
# report_id: "report-abcdef0123456789",
|
640
640
|
# })
|
641
641
|
#
|
642
642
|
# resp.to_h outputs the following:
|
643
643
|
# {
|
644
644
|
# document_presigned_url: "<Presigned S3 URL>",
|
645
|
-
# term_token: "term-token-
|
645
|
+
# term_token: "term-token-abcdefghijklm01234567890",
|
646
646
|
# }
|
647
647
|
#
|
648
648
|
# @example Request syntax with placeholder values
|
@@ -666,6 +666,90 @@ module Aws::Artifact
|
|
666
666
|
req.send_request(options)
|
667
667
|
end
|
668
668
|
|
669
|
+
# List active customer-agreements applicable to calling identity.
|
670
|
+
#
|
671
|
+
# @option params [Integer] :max_results
|
672
|
+
# Maximum number of resources to return in the paginated response.
|
673
|
+
#
|
674
|
+
# @option params [String] :next_token
|
675
|
+
# Pagination token to request the next page of resources.
|
676
|
+
#
|
677
|
+
# @return [Types::ListCustomerAgreementsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
678
|
+
#
|
679
|
+
# * {Types::ListCustomerAgreementsResponse#customer_agreements #customer_agreements} => Array<Types::CustomerAgreementSummary>
|
680
|
+
# * {Types::ListCustomerAgreementsResponse#next_token #next_token} => String
|
681
|
+
#
|
682
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
683
|
+
#
|
684
|
+
#
|
685
|
+
# @example Example: Invoke ListCustomerAgreements operation
|
686
|
+
#
|
687
|
+
# # The ListCustomerAgreements operation returns a collection of customer-agreement resources in the ACTIVE state for the
|
688
|
+
# # calling credential.
|
689
|
+
#
|
690
|
+
# resp = client.list_customer_agreements({
|
691
|
+
# })
|
692
|
+
#
|
693
|
+
# resp.to_h outputs the following:
|
694
|
+
# {
|
695
|
+
# customer_agreements: [
|
696
|
+
# {
|
697
|
+
# name: "Name of agreement",
|
698
|
+
# type: "DEFAULT",
|
699
|
+
# acceptance_terms: [
|
700
|
+
# "terms acknowledged when agreement was accepted",
|
701
|
+
# ],
|
702
|
+
# agreement_arn: "arn:aws:artifact:::agreement/agreement-abcdef0123456789",
|
703
|
+
# arn: "arn:aws:artifact::111111111111:customer-agreement/customer-agreement-abcdef0123456789",
|
704
|
+
# aws_account_id: "111111111111",
|
705
|
+
# description: "Description of agreement",
|
706
|
+
# effective_start: Time.parse("2022-04-01T20:32:04Z"),
|
707
|
+
# id: "customer-agreement-abcdef0123456789",
|
708
|
+
# state: "ACTIVE",
|
709
|
+
# terminate_terms: [
|
710
|
+
# "terms that must be acknowledged to terminate this agreement",
|
711
|
+
# ],
|
712
|
+
# },
|
713
|
+
# ],
|
714
|
+
# next_token: "gPFEGk7CF4wS901w7ppYclt7gPFEGk7CF4wS901w7ppYclt7gPFEGk7CF4wS901w7ppYclt7",
|
715
|
+
# }
|
716
|
+
#
|
717
|
+
# @example Request syntax with placeholder values
|
718
|
+
#
|
719
|
+
# resp = client.list_customer_agreements({
|
720
|
+
# max_results: 1,
|
721
|
+
# next_token: "NextTokenAttribute",
|
722
|
+
# })
|
723
|
+
#
|
724
|
+
# @example Response structure
|
725
|
+
#
|
726
|
+
# resp.customer_agreements #=> Array
|
727
|
+
# resp.customer_agreements[0].name #=> String
|
728
|
+
# resp.customer_agreements[0].arn #=> String
|
729
|
+
# resp.customer_agreements[0].id #=> String
|
730
|
+
# resp.customer_agreements[0].agreement_arn #=> String
|
731
|
+
# resp.customer_agreements[0].aws_account_id #=> String
|
732
|
+
# resp.customer_agreements[0].organization_arn #=> String
|
733
|
+
# resp.customer_agreements[0].effective_start #=> Time
|
734
|
+
# resp.customer_agreements[0].effective_end #=> Time
|
735
|
+
# resp.customer_agreements[0].state #=> String, one of "ACTIVE", "CUSTOMER_TERMINATED", "AWS_TERMINATED"
|
736
|
+
# resp.customer_agreements[0].description #=> String
|
737
|
+
# resp.customer_agreements[0].acceptance_terms #=> Array
|
738
|
+
# resp.customer_agreements[0].acceptance_terms[0] #=> String
|
739
|
+
# resp.customer_agreements[0].terminate_terms #=> Array
|
740
|
+
# resp.customer_agreements[0].terminate_terms[0] #=> String
|
741
|
+
# resp.customer_agreements[0].type #=> String, one of "CUSTOM", "DEFAULT", "MODIFIED"
|
742
|
+
# resp.next_token #=> String
|
743
|
+
#
|
744
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/artifact-2018-05-10/ListCustomerAgreements AWS API Documentation
|
745
|
+
#
|
746
|
+
# @overload list_customer_agreements(params = {})
|
747
|
+
# @param [Hash] params ({})
|
748
|
+
def list_customer_agreements(params = {}, options = {})
|
749
|
+
req = build_request(:list_customer_agreements, params)
|
750
|
+
req.send_request(options)
|
751
|
+
end
|
752
|
+
|
669
753
|
# List available reports.
|
670
754
|
#
|
671
755
|
# @option params [Integer] :max_results
|
@@ -696,11 +780,11 @@ module Aws::Artifact
|
|
696
780
|
# {
|
697
781
|
# version: 1,
|
698
782
|
# name: "Name of report",
|
699
|
-
# arn: "arn:aws:artifact:us-east-1::report/report-
|
783
|
+
# arn: "arn:aws:artifact:us-east-1::report/report-abcdef0123456789",
|
700
784
|
# category: "Artifact Category",
|
701
785
|
# company_name: "AWS",
|
702
786
|
# description: "Description of report",
|
703
|
-
# id: "report-
|
787
|
+
# id: "report-abcdef0123456789",
|
704
788
|
# period_end: Time.parse("2022-04-01T20:32:04Z"),
|
705
789
|
# period_start: Time.parse("2022-04-01T20:32:04Z"),
|
706
790
|
# product_name: "Product of report",
|
@@ -808,7 +892,7 @@ module Aws::Artifact
|
|
808
892
|
tracer: tracer
|
809
893
|
)
|
810
894
|
context[:gem_name] = 'aws-sdk-artifact'
|
811
|
-
context[:gem_version] = '1.
|
895
|
+
context[:gem_version] = '1.15.0'
|
812
896
|
Seahorse::Client::Request.new(handlers, context)
|
813
897
|
end
|
814
898
|
|
@@ -17,7 +17,13 @@ module Aws::Artifact
|
|
17
17
|
AcceptanceType = Shapes::StringShape.new(name: 'AcceptanceType')
|
18
18
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
19
19
|
AccountSettings = Shapes::StructureShape.new(name: 'AccountSettings')
|
20
|
+
AgreementTerms = Shapes::ListShape.new(name: 'AgreementTerms')
|
21
|
+
AgreementType = Shapes::StringShape.new(name: 'AgreementType')
|
20
22
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
23
|
+
CustomerAgreementIdAttribute = Shapes::StringShape.new(name: 'CustomerAgreementIdAttribute')
|
24
|
+
CustomerAgreementList = Shapes::ListShape.new(name: 'CustomerAgreementList')
|
25
|
+
CustomerAgreementState = Shapes::StringShape.new(name: 'CustomerAgreementState')
|
26
|
+
CustomerAgreementSummary = Shapes::StructureShape.new(name: 'CustomerAgreementSummary')
|
21
27
|
GetAccountSettingsRequest = Shapes::StructureShape.new(name: 'GetAccountSettingsRequest')
|
22
28
|
GetAccountSettingsResponse = Shapes::StructureShape.new(name: 'GetAccountSettingsResponse')
|
23
29
|
GetReportMetadataRequest = Shapes::StructureShape.new(name: 'GetReportMetadataRequest')
|
@@ -30,6 +36,8 @@ module Aws::Artifact
|
|
30
36
|
GetTermForReportResponseDocumentPresignedUrlString = Shapes::StringShape.new(name: 'GetTermForReportResponseDocumentPresignedUrlString')
|
31
37
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
32
38
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
39
|
+
ListCustomerAgreementsRequest = Shapes::StructureShape.new(name: 'ListCustomerAgreementsRequest')
|
40
|
+
ListCustomerAgreementsResponse = Shapes::StructureShape.new(name: 'ListCustomerAgreementsResponse')
|
33
41
|
ListReportsRequest = Shapes::StructureShape.new(name: 'ListReportsRequest')
|
34
42
|
ListReportsResponse = Shapes::StructureShape.new(name: 'ListReportsResponse')
|
35
43
|
LongStringAttribute = Shapes::StringShape.new(name: 'LongStringAttribute')
|
@@ -64,11 +72,30 @@ module Aws::Artifact
|
|
64
72
|
AccountSettings.add_member(:notification_subscription_status, Shapes::ShapeRef.new(shape: NotificationSubscriptionStatus, location_name: "notificationSubscriptionStatus"))
|
65
73
|
AccountSettings.struct_class = Types::AccountSettings
|
66
74
|
|
75
|
+
AgreementTerms.member = Shapes::ShapeRef.new(shape: LongStringAttribute)
|
76
|
+
|
67
77
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
68
78
|
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
69
79
|
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
70
80
|
ConflictException.struct_class = Types::ConflictException
|
71
81
|
|
82
|
+
CustomerAgreementList.member = Shapes::ShapeRef.new(shape: CustomerAgreementSummary)
|
83
|
+
|
84
|
+
CustomerAgreementSummary.add_member(:name, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "name"))
|
85
|
+
CustomerAgreementSummary.add_member(:arn, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "arn"))
|
86
|
+
CustomerAgreementSummary.add_member(:id, Shapes::ShapeRef.new(shape: CustomerAgreementIdAttribute, location_name: "id"))
|
87
|
+
CustomerAgreementSummary.add_member(:agreement_arn, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "agreementArn"))
|
88
|
+
CustomerAgreementSummary.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "awsAccountId"))
|
89
|
+
CustomerAgreementSummary.add_member(:organization_arn, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "organizationArn"))
|
90
|
+
CustomerAgreementSummary.add_member(:effective_start, Shapes::ShapeRef.new(shape: TimestampAttribute, location_name: "effectiveStart"))
|
91
|
+
CustomerAgreementSummary.add_member(:effective_end, Shapes::ShapeRef.new(shape: TimestampAttribute, location_name: "effectiveEnd"))
|
92
|
+
CustomerAgreementSummary.add_member(:state, Shapes::ShapeRef.new(shape: CustomerAgreementState, location_name: "state"))
|
93
|
+
CustomerAgreementSummary.add_member(:description, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "description"))
|
94
|
+
CustomerAgreementSummary.add_member(:acceptance_terms, Shapes::ShapeRef.new(shape: AgreementTerms, location_name: "acceptanceTerms"))
|
95
|
+
CustomerAgreementSummary.add_member(:terminate_terms, Shapes::ShapeRef.new(shape: AgreementTerms, location_name: "terminateTerms"))
|
96
|
+
CustomerAgreementSummary.add_member(:type, Shapes::ShapeRef.new(shape: AgreementType, location_name: "type"))
|
97
|
+
CustomerAgreementSummary.struct_class = Types::CustomerAgreementSummary
|
98
|
+
|
72
99
|
GetAccountSettingsRequest.struct_class = Types::GetAccountSettingsRequest
|
73
100
|
|
74
101
|
GetAccountSettingsResponse.add_member(:account_settings, Shapes::ShapeRef.new(shape: AccountSettings, location_name: "accountSettings"))
|
@@ -101,6 +128,14 @@ module Aws::Artifact
|
|
101
128
|
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
102
129
|
InternalServerException.struct_class = Types::InternalServerException
|
103
130
|
|
131
|
+
ListCustomerAgreementsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsAttribute, location: "querystring", location_name: "maxResults"))
|
132
|
+
ListCustomerAgreementsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenAttribute, location: "querystring", location_name: "nextToken"))
|
133
|
+
ListCustomerAgreementsRequest.struct_class = Types::ListCustomerAgreementsRequest
|
134
|
+
|
135
|
+
ListCustomerAgreementsResponse.add_member(:customer_agreements, Shapes::ShapeRef.new(shape: CustomerAgreementList, required: true, location_name: "customerAgreements"))
|
136
|
+
ListCustomerAgreementsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenAttribute, location_name: "nextToken"))
|
137
|
+
ListCustomerAgreementsResponse.struct_class = Types::ListCustomerAgreementsResponse
|
138
|
+
|
104
139
|
ListReportsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsAttribute, location: "querystring", location_name: "maxResults"))
|
105
140
|
ListReportsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenAttribute, location: "querystring", location_name: "nextToken"))
|
106
141
|
ListReportsRequest.struct_class = Types::ListReportsRequest
|
@@ -263,6 +298,24 @@ module Aws::Artifact
|
|
263
298
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
264
299
|
end)
|
265
300
|
|
301
|
+
api.add_operation(:list_customer_agreements, Seahorse::Model::Operation.new.tap do |o|
|
302
|
+
o.name = "ListCustomerAgreements"
|
303
|
+
o.http_method = "GET"
|
304
|
+
o.http_request_uri = "/v1/customer-agreement/list"
|
305
|
+
o.input = Shapes::ShapeRef.new(shape: ListCustomerAgreementsRequest)
|
306
|
+
o.output = Shapes::ShapeRef.new(shape: ListCustomerAgreementsResponse)
|
307
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
308
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
309
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
310
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
311
|
+
o[:pager] = Aws::Pager.new(
|
312
|
+
limit_key: "max_results",
|
313
|
+
tokens: {
|
314
|
+
"next_token" => "next_token"
|
315
|
+
}
|
316
|
+
)
|
317
|
+
end)
|
318
|
+
|
266
319
|
api.add_operation(:list_reports, Seahorse::Model::Operation.new.tap do |o|
|
267
320
|
o.name = "ListReports"
|
268
321
|
o.http_method = "GET"
|
@@ -52,15 +52,18 @@ module Aws::Artifact
|
|
52
52
|
self[:region] = options[:region]
|
53
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
-
if self[:use_dual_stack].nil?
|
56
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
-
end
|
58
55
|
self[:use_fips] = options[:use_fips]
|
59
56
|
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
-
if self[:use_fips].nil?
|
61
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
-
end
|
63
57
|
self[:endpoint] = options[:endpoint]
|
64
58
|
end
|
59
|
+
|
60
|
+
def self.create(config, options={})
|
61
|
+
new({
|
62
|
+
region: config.region,
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
64
|
+
use_fips: config.use_fips_endpoint,
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
66
|
+
}.merge(options))
|
67
|
+
end
|
65
68
|
end
|
66
69
|
end
|
@@ -12,71 +12,9 @@ module Aws::Artifact
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
-
class GetAccountSettings
|
16
|
-
def self.build(context)
|
17
|
-
Aws::Artifact::EndpointParameters.new(
|
18
|
-
region: context.config.region,
|
19
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
20
|
-
use_fips: context.config.use_fips_endpoint,
|
21
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
22
|
-
)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
class GetReport
|
27
|
-
def self.build(context)
|
28
|
-
Aws::Artifact::EndpointParameters.new(
|
29
|
-
region: context.config.region,
|
30
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
31
|
-
use_fips: context.config.use_fips_endpoint,
|
32
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
33
|
-
)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
class GetReportMetadata
|
38
|
-
def self.build(context)
|
39
|
-
Aws::Artifact::EndpointParameters.new(
|
40
|
-
region: context.config.region,
|
41
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
42
|
-
use_fips: context.config.use_fips_endpoint,
|
43
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
44
|
-
)
|
45
|
-
end
|
46
|
-
end
|
47
15
|
|
48
|
-
|
49
|
-
|
50
|
-
Aws::Artifact::EndpointParameters.new(
|
51
|
-
region: context.config.region,
|
52
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
53
|
-
use_fips: context.config.use_fips_endpoint,
|
54
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
55
|
-
)
|
56
|
-
end
|
16
|
+
def self.parameters_for_operation(context)
|
17
|
+
Aws::Artifact::EndpointParameters.create(context.config)
|
57
18
|
end
|
58
|
-
|
59
|
-
class ListReports
|
60
|
-
def self.build(context)
|
61
|
-
Aws::Artifact::EndpointParameters.new(
|
62
|
-
region: context.config.region,
|
63
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
-
use_fips: context.config.use_fips_endpoint,
|
65
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
66
|
-
)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
class PutAccountSettings
|
71
|
-
def self.build(context)
|
72
|
-
Aws::Artifact::EndpointParameters.new(
|
73
|
-
region: context.config.region,
|
74
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
75
|
-
use_fips: context.config.use_fips_endpoint,
|
76
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
77
|
-
)
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
19
|
end
|
82
20
|
end
|
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
28
28
|
def call(context)
|
29
29
|
unless context[:discovered_endpoint]
|
30
|
-
params = parameters_for_operation(context)
|
30
|
+
params = Aws::Artifact::Endpoints.parameters_for_operation(context)
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
32
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
@@ -67,23 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
67
67
|
context.http_request.headers[key] = value
|
68
68
|
end
|
69
69
|
end
|
70
|
-
|
71
|
-
def parameters_for_operation(context)
|
72
|
-
case context.operation_name
|
73
|
-
when :get_account_settings
|
74
|
-
Aws::Artifact::Endpoints::GetAccountSettings.build(context)
|
75
|
-
when :get_report
|
76
|
-
Aws::Artifact::Endpoints::GetReport.build(context)
|
77
|
-
when :get_report_metadata
|
78
|
-
Aws::Artifact::Endpoints::GetReportMetadata.build(context)
|
79
|
-
when :get_term_for_report
|
80
|
-
Aws::Artifact::Endpoints::GetTermForReport.build(context)
|
81
|
-
when :list_reports
|
82
|
-
Aws::Artifact::Endpoints::ListReports.build(context)
|
83
|
-
when :put_account_settings
|
84
|
-
Aws::Artifact::Endpoints::PutAccountSettings.build(context)
|
85
|
-
end
|
86
|
-
end
|
87
70
|
end
|
88
71
|
|
89
72
|
def add_handlers(handlers, _config)
|
@@ -60,6 +60,81 @@ module Aws::Artifact
|
|
60
60
|
include Aws::Structure
|
61
61
|
end
|
62
62
|
|
63
|
+
# Summary for customer-agreement resource.
|
64
|
+
#
|
65
|
+
# @!attribute [rw] name
|
66
|
+
# Name of the customer-agreement resource.
|
67
|
+
# @return [String]
|
68
|
+
#
|
69
|
+
# @!attribute [rw] arn
|
70
|
+
# ARN of the customer-agreement resource.
|
71
|
+
# @return [String]
|
72
|
+
#
|
73
|
+
# @!attribute [rw] id
|
74
|
+
# Identifier of the customer-agreement resource.
|
75
|
+
# @return [String]
|
76
|
+
#
|
77
|
+
# @!attribute [rw] agreement_arn
|
78
|
+
# ARN of the agreement resource the customer-agreement resource
|
79
|
+
# represents.
|
80
|
+
# @return [String]
|
81
|
+
#
|
82
|
+
# @!attribute [rw] aws_account_id
|
83
|
+
# AWS account Id that owns the resource.
|
84
|
+
# @return [String]
|
85
|
+
#
|
86
|
+
# @!attribute [rw] organization_arn
|
87
|
+
# ARN of the organization that owns the resource.
|
88
|
+
# @return [String]
|
89
|
+
#
|
90
|
+
# @!attribute [rw] effective_start
|
91
|
+
# Timestamp indicating when the agreement became effective.
|
92
|
+
# @return [Time]
|
93
|
+
#
|
94
|
+
# @!attribute [rw] effective_end
|
95
|
+
# Timestamp indicating when the agreement was terminated.
|
96
|
+
# @return [Time]
|
97
|
+
#
|
98
|
+
# @!attribute [rw] state
|
99
|
+
# State of the resource.
|
100
|
+
# @return [String]
|
101
|
+
#
|
102
|
+
# @!attribute [rw] description
|
103
|
+
# Description of the resource.
|
104
|
+
# @return [String]
|
105
|
+
#
|
106
|
+
# @!attribute [rw] acceptance_terms
|
107
|
+
# Terms required to accept the agreement resource.
|
108
|
+
# @return [Array<String>]
|
109
|
+
#
|
110
|
+
# @!attribute [rw] terminate_terms
|
111
|
+
# Terms required to terminate the customer-agreement resource.
|
112
|
+
# @return [Array<String>]
|
113
|
+
#
|
114
|
+
# @!attribute [rw] type
|
115
|
+
# Type of the customer-agreement resource.
|
116
|
+
# @return [String]
|
117
|
+
#
|
118
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/artifact-2018-05-10/CustomerAgreementSummary AWS API Documentation
|
119
|
+
#
|
120
|
+
class CustomerAgreementSummary < Struct.new(
|
121
|
+
:name,
|
122
|
+
:arn,
|
123
|
+
:id,
|
124
|
+
:agreement_arn,
|
125
|
+
:aws_account_id,
|
126
|
+
:organization_arn,
|
127
|
+
:effective_start,
|
128
|
+
:effective_end,
|
129
|
+
:state,
|
130
|
+
:description,
|
131
|
+
:acceptance_terms,
|
132
|
+
:terminate_terms,
|
133
|
+
:type)
|
134
|
+
SENSITIVE = []
|
135
|
+
include Aws::Structure
|
136
|
+
end
|
137
|
+
|
63
138
|
# @api private
|
64
139
|
#
|
65
140
|
# @see http://docs.aws.amazon.com/goto/WebAPI/artifact-2018-05-10/GetAccountSettingsRequest AWS API Documentation
|
@@ -193,6 +268,40 @@ module Aws::Artifact
|
|
193
268
|
include Aws::Structure
|
194
269
|
end
|
195
270
|
|
271
|
+
# @!attribute [rw] max_results
|
272
|
+
# Maximum number of resources to return in the paginated response.
|
273
|
+
# @return [Integer]
|
274
|
+
#
|
275
|
+
# @!attribute [rw] next_token
|
276
|
+
# Pagination token to request the next page of resources.
|
277
|
+
# @return [String]
|
278
|
+
#
|
279
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/artifact-2018-05-10/ListCustomerAgreementsRequest AWS API Documentation
|
280
|
+
#
|
281
|
+
class ListCustomerAgreementsRequest < Struct.new(
|
282
|
+
:max_results,
|
283
|
+
:next_token)
|
284
|
+
SENSITIVE = []
|
285
|
+
include Aws::Structure
|
286
|
+
end
|
287
|
+
|
288
|
+
# @!attribute [rw] customer_agreements
|
289
|
+
# List of customer-agreement resources.
|
290
|
+
# @return [Array<Types::CustomerAgreementSummary>]
|
291
|
+
#
|
292
|
+
# @!attribute [rw] next_token
|
293
|
+
# Pagination token to request the next page of resources.
|
294
|
+
# @return [String]
|
295
|
+
#
|
296
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/artifact-2018-05-10/ListCustomerAgreementsResponse AWS API Documentation
|
297
|
+
#
|
298
|
+
class ListCustomerAgreementsResponse < Struct.new(
|
299
|
+
:customer_agreements,
|
300
|
+
:next_token)
|
301
|
+
SENSITIVE = []
|
302
|
+
include Aws::Structure
|
303
|
+
end
|
304
|
+
|
196
305
|
# @!attribute [rw] max_results
|
197
306
|
# Maximum number of resources to return in the paginated response.
|
198
307
|
# @return [Integer]
|
data/lib/aws-sdk-artifact.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -119,6 +119,18 @@ module Aws
|
|
119
119
|
) -> _GetTermForReportResponseSuccess
|
120
120
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTermForReportResponseSuccess
|
121
121
|
|
122
|
+
interface _ListCustomerAgreementsResponseSuccess
|
123
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomerAgreementsResponse]
|
124
|
+
def customer_agreements: () -> ::Array[Types::CustomerAgreementSummary]
|
125
|
+
def next_token: () -> ::String
|
126
|
+
end
|
127
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Artifact/Client.html#list_customer_agreements-instance_method
|
128
|
+
def list_customer_agreements: (
|
129
|
+
?max_results: ::Integer,
|
130
|
+
?next_token: ::String
|
131
|
+
) -> _ListCustomerAgreementsResponseSuccess
|
132
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomerAgreementsResponseSuccess
|
133
|
+
|
122
134
|
interface _ListReportsResponseSuccess
|
123
135
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListReportsResponse]
|
124
136
|
def reports: () -> ::Array[Types::ReportSummary]
|
data/sig/types.rbs
CHANGED
@@ -25,6 +25,23 @@ module Aws::Artifact
|
|
25
25
|
SENSITIVE: []
|
26
26
|
end
|
27
27
|
|
28
|
+
class CustomerAgreementSummary
|
29
|
+
attr_accessor name: ::String
|
30
|
+
attr_accessor arn: ::String
|
31
|
+
attr_accessor id: ::String
|
32
|
+
attr_accessor agreement_arn: ::String
|
33
|
+
attr_accessor aws_account_id: ::String
|
34
|
+
attr_accessor organization_arn: ::String
|
35
|
+
attr_accessor effective_start: ::Time
|
36
|
+
attr_accessor effective_end: ::Time
|
37
|
+
attr_accessor state: ("ACTIVE" | "CUSTOMER_TERMINATED" | "AWS_TERMINATED")
|
38
|
+
attr_accessor description: ::String
|
39
|
+
attr_accessor acceptance_terms: ::Array[::String]
|
40
|
+
attr_accessor terminate_terms: ::Array[::String]
|
41
|
+
attr_accessor type: ("CUSTOM" | "DEFAULT" | "MODIFIED")
|
42
|
+
SENSITIVE: []
|
43
|
+
end
|
44
|
+
|
28
45
|
class GetAccountSettingsRequest < Aws::EmptyStructure
|
29
46
|
end
|
30
47
|
|
@@ -74,6 +91,18 @@ module Aws::Artifact
|
|
74
91
|
SENSITIVE: []
|
75
92
|
end
|
76
93
|
|
94
|
+
class ListCustomerAgreementsRequest
|
95
|
+
attr_accessor max_results: ::Integer
|
96
|
+
attr_accessor next_token: ::String
|
97
|
+
SENSITIVE: []
|
98
|
+
end
|
99
|
+
|
100
|
+
class ListCustomerAgreementsResponse
|
101
|
+
attr_accessor customer_agreements: ::Array[Types::CustomerAgreementSummary]
|
102
|
+
attr_accessor next_token: ::String
|
103
|
+
SENSITIVE: []
|
104
|
+
end
|
105
|
+
|
77
106
|
class ListReportsRequest
|
78
107
|
attr_accessor max_results: ::Integer
|
79
108
|
attr_accessor next_token: ::String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-artifact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.210.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.210.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|