aws-sdk-securityhub 1.7.0 → 1.8.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.
@@ -33,6 +33,7 @@ module Aws::SecurityHub
33
33
  BatchImportFindingsRequest = Shapes::StructureShape.new(name: 'BatchImportFindingsRequest')
34
34
  BatchImportFindingsResponse = Shapes::StructureShape.new(name: 'BatchImportFindingsResponse')
35
35
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
36
+ CategoryList = Shapes::ListShape.new(name: 'CategoryList')
36
37
  Compliance = Shapes::StructureShape.new(name: 'Compliance')
37
38
  ComplianceStatus = Shapes::StringShape.new(name: 'ComplianceStatus')
38
39
  ContainerDetails = Shapes::StructureShape.new(name: 'ContainerDetails')
@@ -52,6 +53,8 @@ module Aws::SecurityHub
52
53
  DeleteInvitationsResponse = Shapes::StructureShape.new(name: 'DeleteInvitationsResponse')
53
54
  DeleteMembersRequest = Shapes::StructureShape.new(name: 'DeleteMembersRequest')
54
55
  DeleteMembersResponse = Shapes::StructureShape.new(name: 'DeleteMembersResponse')
56
+ DescribeProductsRequest = Shapes::StructureShape.new(name: 'DescribeProductsRequest')
57
+ DescribeProductsResponse = Shapes::StructureShape.new(name: 'DescribeProductsResponse')
55
58
  DisableImportFindingsForProductRequest = Shapes::StructureShape.new(name: 'DisableImportFindingsForProductRequest')
56
59
  DisableImportFindingsForProductResponse = Shapes::StructureShape.new(name: 'DisableImportFindingsForProductResponse')
57
60
  DisableSecurityHubRequest = Shapes::StructureShape.new(name: 'DisableSecurityHubRequest')
@@ -106,6 +109,8 @@ module Aws::SecurityHub
106
109
  ListInvitationsResponse = Shapes::StructureShape.new(name: 'ListInvitationsResponse')
107
110
  ListMembersRequest = Shapes::StructureShape.new(name: 'ListMembersRequest')
108
111
  ListMembersResponse = Shapes::StructureShape.new(name: 'ListMembersResponse')
112
+ ListProductSubscribersRequest = Shapes::StructureShape.new(name: 'ListProductSubscribersRequest')
113
+ ListProductSubscribersResponse = Shapes::StructureShape.new(name: 'ListProductSubscribersResponse')
109
114
  Malware = Shapes::StructureShape.new(name: 'Malware')
110
115
  MalwareList = Shapes::ListShape.new(name: 'MalwareList')
111
116
  MalwareState = Shapes::StringShape.new(name: 'MalwareState')
@@ -126,7 +131,10 @@ module Aws::SecurityHub
126
131
  NumberFilterList = Shapes::ListShape.new(name: 'NumberFilterList')
127
132
  Partition = Shapes::StringShape.new(name: 'Partition')
128
133
  ProcessDetails = Shapes::StructureShape.new(name: 'ProcessDetails')
134
+ Product = Shapes::StructureShape.new(name: 'Product')
135
+ ProductSubscribersList = Shapes::ListShape.new(name: 'ProductSubscribersList')
129
136
  ProductSubscriptionArnList = Shapes::ListShape.new(name: 'ProductSubscriptionArnList')
137
+ ProductsList = Shapes::ListShape.new(name: 'ProductsList')
130
138
  Recommendation = Shapes::StructureShape.new(name: 'Recommendation')
131
139
  RecordState = Shapes::StringShape.new(name: 'RecordState')
132
140
  RelatedFinding = Shapes::StructureShape.new(name: 'RelatedFinding')
@@ -346,6 +354,8 @@ module Aws::SecurityHub
346
354
  BatchImportFindingsResponse.add_member(:failed_findings, Shapes::ShapeRef.new(shape: ImportFindingsErrorList, location_name: "FailedFindings"))
347
355
  BatchImportFindingsResponse.struct_class = Types::BatchImportFindingsResponse
348
356
 
357
+ CategoryList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
358
+
349
359
  Compliance.add_member(:status, Shapes::ShapeRef.new(shape: ComplianceStatus, location_name: "Status"))
350
360
  Compliance.struct_class = Types::Compliance
351
361
 
@@ -404,6 +414,14 @@ module Aws::SecurityHub
404
414
  DeleteMembersResponse.add_member(:unprocessed_accounts, Shapes::ShapeRef.new(shape: ResultList, location_name: "UnprocessedAccounts"))
405
415
  DeleteMembersResponse.struct_class = Types::DeleteMembersResponse
406
416
 
417
+ DescribeProductsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
418
+ DescribeProductsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
419
+ DescribeProductsRequest.struct_class = Types::DescribeProductsRequest
420
+
421
+ DescribeProductsResponse.add_member(:products, Shapes::ShapeRef.new(shape: ProductsList, required: true, location_name: "Products"))
422
+ DescribeProductsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
423
+ DescribeProductsResponse.struct_class = Types::DescribeProductsResponse
424
+
407
425
  DisableImportFindingsForProductRequest.add_member(:product_subscription_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "uri", location_name: "ProductSubscriptionArn"))
408
426
  DisableImportFindingsForProductRequest.struct_class = Types::DisableImportFindingsForProductRequest
409
427
 
@@ -577,6 +595,15 @@ module Aws::SecurityHub
577
595
  ListMembersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "NextToken"))
578
596
  ListMembersResponse.struct_class = Types::ListMembersResponse
579
597
 
598
+ ListProductSubscribersRequest.add_member(:product_arn, Shapes::ShapeRef.new(shape: NonEmptyString, location: "querystring", location_name: "ProductArn"))
599
+ ListProductSubscribersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
600
+ ListProductSubscribersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
601
+ ListProductSubscribersRequest.struct_class = Types::ListProductSubscribersRequest
602
+
603
+ ListProductSubscribersResponse.add_member(:product_subscribers, Shapes::ShapeRef.new(shape: ProductSubscribersList, location_name: "ProductSubscribers"))
604
+ ListProductSubscribersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
605
+ ListProductSubscribersResponse.struct_class = Types::ListProductSubscribersResponse
606
+
580
607
  Malware.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "Name"))
581
608
  Malware.add_member(:type, Shapes::ShapeRef.new(shape: MalwareType, location_name: "Type"))
582
609
  Malware.add_member(:path, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Path"))
@@ -639,8 +666,22 @@ module Aws::SecurityHub
639
666
  ProcessDetails.add_member(:terminated_at, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "TerminatedAt"))
640
667
  ProcessDetails.struct_class = Types::ProcessDetails
641
668
 
669
+ Product.add_member(:product_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "ProductArn"))
670
+ Product.add_member(:product_name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ProductName"))
671
+ Product.add_member(:company_name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "CompanyName"))
672
+ Product.add_member(:description, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Description"))
673
+ Product.add_member(:categories, Shapes::ShapeRef.new(shape: CategoryList, location_name: "Categories"))
674
+ Product.add_member(:marketplace_url, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "MarketplaceUrl"))
675
+ Product.add_member(:activation_url, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ActivationUrl"))
676
+ Product.add_member(:product_subscription_resource_policy, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ProductSubscriptionResourcePolicy"))
677
+ Product.struct_class = Types::Product
678
+
679
+ ProductSubscribersList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
680
+
642
681
  ProductSubscriptionArnList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
643
682
 
683
+ ProductsList.member = Shapes::ShapeRef.new(shape: Product)
684
+
644
685
  Recommendation.add_member(:text, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Text"))
645
686
  Recommendation.add_member(:url, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Url"))
646
687
  Recommendation.struct_class = Types::Recommendation
@@ -893,6 +934,24 @@ module Aws::SecurityHub
893
934
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
894
935
  end)
895
936
 
937
+ api.add_operation(:describe_products, Seahorse::Model::Operation.new.tap do |o|
938
+ o.name = "DescribeProducts"
939
+ o.http_method = "GET"
940
+ o.http_request_uri = "/products"
941
+ o.input = Shapes::ShapeRef.new(shape: DescribeProductsRequest)
942
+ o.output = Shapes::ShapeRef.new(shape: DescribeProductsResponse)
943
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
944
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
945
+ o.errors << Shapes::ShapeRef.new(shape: InvalidAccessException)
946
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
947
+ o[:pager] = Aws::Pager.new(
948
+ limit_key: "max_results",
949
+ tokens: {
950
+ "next_token" => "next_token"
951
+ }
952
+ )
953
+ end)
954
+
896
955
  api.add_operation(:disable_import_findings_for_product, Seahorse::Model::Operation.new.tap do |o|
897
956
  o.name = "DisableImportFindingsForProduct"
898
957
  o.http_method = "DELETE"
@@ -1124,6 +1183,24 @@ module Aws::SecurityHub
1124
1183
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1125
1184
  end)
1126
1185
 
1186
+ api.add_operation(:list_product_subscribers, Seahorse::Model::Operation.new.tap do |o|
1187
+ o.name = "ListProductSubscribers"
1188
+ o.http_method = "GET"
1189
+ o.http_request_uri = "/productSubscribers/"
1190
+ o.input = Shapes::ShapeRef.new(shape: ListProductSubscribersRequest)
1191
+ o.output = Shapes::ShapeRef.new(shape: ListProductSubscribersResponse)
1192
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1193
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
1194
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1195
+ o.errors << Shapes::ShapeRef.new(shape: InvalidAccessException)
1196
+ o[:pager] = Aws::Pager.new(
1197
+ limit_key: "max_results",
1198
+ tokens: {
1199
+ "next_token" => "next_token"
1200
+ }
1201
+ )
1202
+ end)
1203
+
1127
1204
  api.add_operation(:update_findings, Seahorse::Model::Operation.new.tap do |o|
1128
1205
  o.name = "UpdateFindings"
1129
1206
  o.http_method = "PATCH"