aws-sdk-securityhub 1.153.0 → 1.155.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-securityhub/client.rb +320 -18
- data/lib/aws-sdk-securityhub/client_api.rb +121 -0
- data/lib/aws-sdk-securityhub/errors.rb +42 -0
- data/lib/aws-sdk-securityhub/types.rb +365 -11
- data/lib/aws-sdk-securityhub.rb +1 -1
- data/sig/client.rbs +177 -60
- data/sig/errors.rbs +8 -0
- data/sig/types.rbs +84 -0
- metadata +1 -1
|
@@ -544,6 +544,8 @@ module Aws::SecurityHub
|
|
|
544
544
|
AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails = Shapes::StructureShape.new(name: 'AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails')
|
|
545
545
|
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails = Shapes::StructureShape.new(name: 'AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails')
|
|
546
546
|
AwsOpenSearchServiceDomainVpcOptionsDetails = Shapes::StructureShape.new(name: 'AwsOpenSearchServiceDomainVpcOptionsDetails')
|
|
547
|
+
AwsOrganizationScope = Shapes::StructureShape.new(name: 'AwsOrganizationScope')
|
|
548
|
+
AwsOrganizationScopeList = Shapes::ListShape.new(name: 'AwsOrganizationScopeList')
|
|
547
549
|
AwsRdsDbClusterAssociatedRole = Shapes::StructureShape.new(name: 'AwsRdsDbClusterAssociatedRole')
|
|
548
550
|
AwsRdsDbClusterAssociatedRoles = Shapes::ListShape.new(name: 'AwsRdsDbClusterAssociatedRoles')
|
|
549
551
|
AwsRdsDbClusterDetails = Shapes::StructureShape.new(name: 'AwsRdsDbClusterDetails')
|
|
@@ -828,6 +830,7 @@ module Aws::SecurityHub
|
|
|
828
830
|
DateFilter = Shapes::StructureShape.new(name: 'DateFilter')
|
|
829
831
|
DateFilterList = Shapes::ListShape.new(name: 'DateFilterList')
|
|
830
832
|
DateRange = Shapes::StructureShape.new(name: 'DateRange')
|
|
833
|
+
DateRangeComparison = Shapes::StringShape.new(name: 'DateRangeComparison')
|
|
831
834
|
DateRangeUnit = Shapes::StringShape.new(name: 'DateRangeUnit')
|
|
832
835
|
DeclineInvitationsRequest = Shapes::StructureShape.new(name: 'DeclineInvitationsRequest')
|
|
833
836
|
DeclineInvitationsResponse = Shapes::StructureShape.new(name: 'DeclineInvitationsResponse')
|
|
@@ -910,6 +913,7 @@ module Aws::SecurityHub
|
|
|
910
913
|
FindingHistoryUpdatesList = Shapes::ListShape.new(name: 'FindingHistoryUpdatesList')
|
|
911
914
|
FindingProviderFields = Shapes::StructureShape.new(name: 'FindingProviderFields')
|
|
912
915
|
FindingProviderSeverity = Shapes::StructureShape.new(name: 'FindingProviderSeverity')
|
|
916
|
+
FindingScopes = Shapes::StructureShape.new(name: 'FindingScopes')
|
|
913
917
|
FindingsTrendsCompositeFilter = Shapes::StructureShape.new(name: 'FindingsTrendsCompositeFilter')
|
|
914
918
|
FindingsTrendsCompositeFilterList = Shapes::ListShape.new(name: 'FindingsTrendsCompositeFilterList')
|
|
915
919
|
FindingsTrendsFilters = Shapes::StructureShape.new(name: 'FindingsTrendsFilters')
|
|
@@ -923,6 +927,8 @@ module Aws::SecurityHub
|
|
|
923
927
|
FirewallPolicyStatelessCustomActionsList = Shapes::ListShape.new(name: 'FirewallPolicyStatelessCustomActionsList')
|
|
924
928
|
FirewallPolicyStatelessRuleGroupReferencesDetails = Shapes::StructureShape.new(name: 'FirewallPolicyStatelessRuleGroupReferencesDetails')
|
|
925
929
|
FirewallPolicyStatelessRuleGroupReferencesList = Shapes::ListShape.new(name: 'FirewallPolicyStatelessRuleGroupReferencesList')
|
|
930
|
+
GenerateRecommendedPolicyV2Request = Shapes::StructureShape.new(name: 'GenerateRecommendedPolicyV2Request')
|
|
931
|
+
GenerateRecommendedPolicyV2Response = Shapes::StructureShape.new(name: 'GenerateRecommendedPolicyV2Response')
|
|
926
932
|
GeneratorDetails = Shapes::StructureShape.new(name: 'GeneratorDetails')
|
|
927
933
|
GeoLocation = Shapes::StructureShape.new(name: 'GeoLocation')
|
|
928
934
|
GetAdministratorAccountRequest = Shapes::StructureShape.new(name: 'GetAdministratorAccountRequest')
|
|
@@ -961,6 +967,8 @@ module Aws::SecurityHub
|
|
|
961
967
|
GetMasterAccountResponse = Shapes::StructureShape.new(name: 'GetMasterAccountResponse')
|
|
962
968
|
GetMembersRequest = Shapes::StructureShape.new(name: 'GetMembersRequest')
|
|
963
969
|
GetMembersResponse = Shapes::StructureShape.new(name: 'GetMembersResponse')
|
|
970
|
+
GetRecommendedPolicyV2Request = Shapes::StructureShape.new(name: 'GetRecommendedPolicyV2Request')
|
|
971
|
+
GetRecommendedPolicyV2Response = Shapes::StructureShape.new(name: 'GetRecommendedPolicyV2Response')
|
|
964
972
|
GetResourcesStatisticsV2Request = Shapes::StructureShape.new(name: 'GetResourcesStatisticsV2Request')
|
|
965
973
|
GetResourcesStatisticsV2Response = Shapes::StructureShape.new(name: 'GetResourcesStatisticsV2Response')
|
|
966
974
|
GetResourcesTrendsV2Request = Shapes::StructureShape.new(name: 'GetResourcesTrendsV2Request')
|
|
@@ -1103,6 +1111,8 @@ module Aws::SecurityHub
|
|
|
1103
1111
|
OrganizationConfiguration = Shapes::StructureShape.new(name: 'OrganizationConfiguration')
|
|
1104
1112
|
OrganizationConfigurationConfigurationType = Shapes::StringShape.new(name: 'OrganizationConfigurationConfigurationType')
|
|
1105
1113
|
OrganizationConfigurationStatus = Shapes::StringShape.new(name: 'OrganizationConfigurationStatus')
|
|
1114
|
+
OrganizationNotFoundException = Shapes::StructureShape.new(name: 'OrganizationNotFoundException')
|
|
1115
|
+
OrganizationalUnitNotFoundException = Shapes::StructureShape.new(name: 'OrganizationalUnitNotFoundException')
|
|
1106
1116
|
Page = Shapes::StructureShape.new(name: 'Page')
|
|
1107
1117
|
Pages = Shapes::ListShape.new(name: 'Pages')
|
|
1108
1118
|
ParameterConfiguration = Shapes::StructureShape.new(name: 'ParameterConfiguration')
|
|
@@ -1136,6 +1146,11 @@ module Aws::SecurityHub
|
|
|
1136
1146
|
Ranges = Shapes::ListShape.new(name: 'Ranges')
|
|
1137
1147
|
RatioScale = Shapes::IntegerShape.new(name: 'RatioScale')
|
|
1138
1148
|
Recommendation = Shapes::StructureShape.new(name: 'Recommendation')
|
|
1149
|
+
RecommendationError = Shapes::StructureShape.new(name: 'RecommendationError')
|
|
1150
|
+
RecommendationStatus = Shapes::StringShape.new(name: 'RecommendationStatus')
|
|
1151
|
+
RecommendationStep = Shapes::UnionShape.new(name: 'RecommendationStep')
|
|
1152
|
+
RecommendationSteps = Shapes::ListShape.new(name: 'RecommendationSteps')
|
|
1153
|
+
RecommendationType = Shapes::StringShape.new(name: 'RecommendationType')
|
|
1139
1154
|
Record = Shapes::StructureShape.new(name: 'Record')
|
|
1140
1155
|
RecordState = Shapes::StringShape.new(name: 'RecordState')
|
|
1141
1156
|
Records = Shapes::ListShape.new(name: 'Records')
|
|
@@ -1161,6 +1176,7 @@ module Aws::SecurityHub
|
|
|
1161
1176
|
ResourceList = Shapes::ListShape.new(name: 'ResourceList')
|
|
1162
1177
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
1163
1178
|
ResourceResult = Shapes::StructureShape.new(name: 'ResourceResult')
|
|
1179
|
+
ResourceScopes = Shapes::StructureShape.new(name: 'ResourceScopes')
|
|
1164
1180
|
ResourceSeverityBreakdown = Shapes::StructureShape.new(name: 'ResourceSeverityBreakdown')
|
|
1165
1181
|
ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
|
|
1166
1182
|
ResourceTagList = Shapes::ListShape.new(name: 'ResourceTagList')
|
|
@@ -1338,6 +1354,7 @@ module Aws::SecurityHub
|
|
|
1338
1354
|
UnprocessedStandardsControlAssociations = Shapes::ListShape.new(name: 'UnprocessedStandardsControlAssociations')
|
|
1339
1355
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
|
1340
1356
|
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
|
1357
|
+
UnusedPermissionsRecommendationStep = Shapes::StructureShape.new(name: 'UnusedPermissionsRecommendationStep')
|
|
1341
1358
|
UpdateActionTargetRequest = Shapes::StructureShape.new(name: 'UpdateActionTargetRequest')
|
|
1342
1359
|
UpdateActionTargetResponse = Shapes::StructureShape.new(name: 'UpdateActionTargetResponse')
|
|
1343
1360
|
UpdateAggregatorV2Request = Shapes::StructureShape.new(name: 'UpdateAggregatorV2Request')
|
|
@@ -4204,6 +4221,12 @@ module Aws::SecurityHub
|
|
|
4204
4221
|
AwsOpenSearchServiceDomainVpcOptionsDetails.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: NonEmptyStringList, location_name: "SubnetIds"))
|
|
4205
4222
|
AwsOpenSearchServiceDomainVpcOptionsDetails.struct_class = Types::AwsOpenSearchServiceDomainVpcOptionsDetails
|
|
4206
4223
|
|
|
4224
|
+
AwsOrganizationScope.add_member(:organization_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "OrganizationId"))
|
|
4225
|
+
AwsOrganizationScope.add_member(:organizational_unit_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "OrganizationalUnitId"))
|
|
4226
|
+
AwsOrganizationScope.struct_class = Types::AwsOrganizationScope
|
|
4227
|
+
|
|
4228
|
+
AwsOrganizationScopeList.member = Shapes::ShapeRef.new(shape: AwsOrganizationScope)
|
|
4229
|
+
|
|
4207
4230
|
AwsRdsDbClusterAssociatedRole.add_member(:role_arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "RoleArn"))
|
|
4208
4231
|
AwsRdsDbClusterAssociatedRole.add_member(:status, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Status"))
|
|
4209
4232
|
AwsRdsDbClusterAssociatedRole.struct_class = Types::AwsRdsDbClusterAssociatedRole
|
|
@@ -5767,6 +5790,7 @@ module Aws::SecurityHub
|
|
|
5767
5790
|
|
|
5768
5791
|
DateRange.add_member(:value, Shapes::ShapeRef.new(shape: Integer, location_name: "Value"))
|
|
5769
5792
|
DateRange.add_member(:unit, Shapes::ShapeRef.new(shape: DateRangeUnit, location_name: "Unit"))
|
|
5793
|
+
DateRange.add_member(:comparison, Shapes::ShapeRef.new(shape: DateRangeComparison, location_name: "Comparison"))
|
|
5770
5794
|
DateRange.struct_class = Types::DateRange
|
|
5771
5795
|
|
|
5772
5796
|
DeclineInvitationsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIdList, required: true, location_name: "AccountIds"))
|
|
@@ -6028,6 +6052,9 @@ module Aws::SecurityHub
|
|
|
6028
6052
|
FindingProviderSeverity.add_member(:original, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Original"))
|
|
6029
6053
|
FindingProviderSeverity.struct_class = Types::FindingProviderSeverity
|
|
6030
6054
|
|
|
6055
|
+
FindingScopes.add_member(:aws_organizations, Shapes::ShapeRef.new(shape: AwsOrganizationScopeList, location_name: "AwsOrganizations"))
|
|
6056
|
+
FindingScopes.struct_class = Types::FindingScopes
|
|
6057
|
+
|
|
6031
6058
|
FindingsTrendsCompositeFilter.add_member(:string_filters, Shapes::ShapeRef.new(shape: FindingsTrendsStringFilterList, location_name: "StringFilters"))
|
|
6032
6059
|
FindingsTrendsCompositeFilter.add_member(:nested_composite_filters, Shapes::ShapeRef.new(shape: FindingsTrendsCompositeFilterList, location_name: "NestedCompositeFilters"))
|
|
6033
6060
|
FindingsTrendsCompositeFilter.add_member(:operator, Shapes::ShapeRef.new(shape: AllowedOperators, location_name: "Operator"))
|
|
@@ -6069,6 +6096,11 @@ module Aws::SecurityHub
|
|
|
6069
6096
|
|
|
6070
6097
|
FirewallPolicyStatelessRuleGroupReferencesList.member = Shapes::ShapeRef.new(shape: FirewallPolicyStatelessRuleGroupReferencesDetails)
|
|
6071
6098
|
|
|
6099
|
+
GenerateRecommendedPolicyV2Request.add_member(:metadata_uid, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "uri", location_name: "MetadataUid"))
|
|
6100
|
+
GenerateRecommendedPolicyV2Request.struct_class = Types::GenerateRecommendedPolicyV2Request
|
|
6101
|
+
|
|
6102
|
+
GenerateRecommendedPolicyV2Response.struct_class = Types::GenerateRecommendedPolicyV2Response
|
|
6103
|
+
|
|
6072
6104
|
GeneratorDetails.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Name"))
|
|
6073
6105
|
GeneratorDetails.add_member(:description, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Description"))
|
|
6074
6106
|
GeneratorDetails.add_member(:labels, Shapes::ShapeRef.new(shape: TypeList, location_name: "Labels"))
|
|
@@ -6175,6 +6207,7 @@ module Aws::SecurityHub
|
|
|
6175
6207
|
GetFindingHistoryResponse.struct_class = Types::GetFindingHistoryResponse
|
|
6176
6208
|
|
|
6177
6209
|
GetFindingStatisticsV2Request.add_member(:group_by_rules, Shapes::ShapeRef.new(shape: GroupByRules, required: true, location_name: "GroupByRules"))
|
|
6210
|
+
GetFindingStatisticsV2Request.add_member(:scopes, Shapes::ShapeRef.new(shape: FindingScopes, location_name: "Scopes"))
|
|
6178
6211
|
GetFindingStatisticsV2Request.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "SortOrder"))
|
|
6179
6212
|
GetFindingStatisticsV2Request.add_member(:max_statistic_results, Shapes::ShapeRef.new(shape: MaxStatisticResults, location_name: "MaxStatisticResults"))
|
|
6180
6213
|
GetFindingStatisticsV2Request.struct_class = Types::GetFindingStatisticsV2Request
|
|
@@ -6205,6 +6238,7 @@ module Aws::SecurityHub
|
|
|
6205
6238
|
GetFindingsTrendsV2Response.struct_class = Types::GetFindingsTrendsV2Response
|
|
6206
6239
|
|
|
6207
6240
|
GetFindingsV2Request.add_member(:filters, Shapes::ShapeRef.new(shape: OcsfFindingFilters, location_name: "Filters"))
|
|
6241
|
+
GetFindingsV2Request.add_member(:scopes, Shapes::ShapeRef.new(shape: FindingScopes, location_name: "Scopes"))
|
|
6208
6242
|
GetFindingsV2Request.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortCriteria, location_name: "SortCriteria"))
|
|
6209
6243
|
GetFindingsV2Request.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
6210
6244
|
GetFindingsV2Request.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
|
@@ -6246,7 +6280,21 @@ module Aws::SecurityHub
|
|
|
6246
6280
|
GetMembersResponse.add_member(:unprocessed_accounts, Shapes::ShapeRef.new(shape: ResultList, location_name: "UnprocessedAccounts"))
|
|
6247
6281
|
GetMembersResponse.struct_class = Types::GetMembersResponse
|
|
6248
6282
|
|
|
6283
|
+
GetRecommendedPolicyV2Request.add_member(:metadata_uid, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "uri", location_name: "MetadataUid"))
|
|
6284
|
+
GetRecommendedPolicyV2Request.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
|
6285
|
+
GetRecommendedPolicyV2Request.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
|
|
6286
|
+
GetRecommendedPolicyV2Request.struct_class = Types::GetRecommendedPolicyV2Request
|
|
6287
|
+
|
|
6288
|
+
GetRecommendedPolicyV2Response.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
6289
|
+
GetRecommendedPolicyV2Response.add_member(:recommendation_type, Shapes::ShapeRef.new(shape: RecommendationType, location_name: "RecommendationType"))
|
|
6290
|
+
GetRecommendedPolicyV2Response.add_member(:recommendation_steps, Shapes::ShapeRef.new(shape: RecommendationSteps, location_name: "RecommendationSteps"))
|
|
6291
|
+
GetRecommendedPolicyV2Response.add_member(:error, Shapes::ShapeRef.new(shape: RecommendationError, location_name: "Error"))
|
|
6292
|
+
GetRecommendedPolicyV2Response.add_member(:status, Shapes::ShapeRef.new(shape: RecommendationStatus, location_name: "Status"))
|
|
6293
|
+
GetRecommendedPolicyV2Response.add_member(:resource_arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ResourceArn"))
|
|
6294
|
+
GetRecommendedPolicyV2Response.struct_class = Types::GetRecommendedPolicyV2Response
|
|
6295
|
+
|
|
6249
6296
|
GetResourcesStatisticsV2Request.add_member(:group_by_rules, Shapes::ShapeRef.new(shape: ResourceGroupByRules, required: true, location_name: "GroupByRules"))
|
|
6297
|
+
GetResourcesStatisticsV2Request.add_member(:scopes, Shapes::ShapeRef.new(shape: ResourceScopes, location_name: "Scopes"))
|
|
6250
6298
|
GetResourcesStatisticsV2Request.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "SortOrder"))
|
|
6251
6299
|
GetResourcesStatisticsV2Request.add_member(:max_statistic_results, Shapes::ShapeRef.new(shape: MaxStatisticResults, location_name: "MaxStatisticResults"))
|
|
6252
6300
|
GetResourcesStatisticsV2Request.struct_class = Types::GetResourcesStatisticsV2Request
|
|
@@ -6267,6 +6315,7 @@ module Aws::SecurityHub
|
|
|
6267
6315
|
GetResourcesTrendsV2Response.struct_class = Types::GetResourcesTrendsV2Response
|
|
6268
6316
|
|
|
6269
6317
|
GetResourcesV2Request.add_member(:filters, Shapes::ShapeRef.new(shape: ResourcesFilters, location_name: "Filters"))
|
|
6318
|
+
GetResourcesV2Request.add_member(:scopes, Shapes::ShapeRef.new(shape: ResourceScopes, location_name: "Scopes"))
|
|
6270
6319
|
GetResourcesV2Request.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortCriteria, location_name: "SortCriteria"))
|
|
6271
6320
|
GetResourcesV2Request.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
6272
6321
|
GetResourcesV2Request.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
|
@@ -6724,6 +6773,14 @@ module Aws::SecurityHub
|
|
|
6724
6773
|
OrganizationConfiguration.add_member(:status_message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "StatusMessage"))
|
|
6725
6774
|
OrganizationConfiguration.struct_class = Types::OrganizationConfiguration
|
|
6726
6775
|
|
|
6776
|
+
OrganizationNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
|
|
6777
|
+
OrganizationNotFoundException.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
|
|
6778
|
+
OrganizationNotFoundException.struct_class = Types::OrganizationNotFoundException
|
|
6779
|
+
|
|
6780
|
+
OrganizationalUnitNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
|
|
6781
|
+
OrganizationalUnitNotFoundException.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
|
|
6782
|
+
OrganizationalUnitNotFoundException.struct_class = Types::OrganizationalUnitNotFoundException
|
|
6783
|
+
|
|
6727
6784
|
Page.add_member(:page_number, Shapes::ShapeRef.new(shape: Long, location_name: "PageNumber"))
|
|
6728
6785
|
Page.add_member(:line_range, Shapes::ShapeRef.new(shape: Range, location_name: "LineRange"))
|
|
6729
6786
|
Page.add_member(:offset_range, Shapes::ShapeRef.new(shape: Range, location_name: "OffsetRange"))
|
|
@@ -6884,6 +6941,18 @@ module Aws::SecurityHub
|
|
|
6884
6941
|
Recommendation.add_member(:url, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Url"))
|
|
6885
6942
|
Recommendation.struct_class = Types::Recommendation
|
|
6886
6943
|
|
|
6944
|
+
RecommendationError.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
|
|
6945
|
+
RecommendationError.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
|
|
6946
|
+
RecommendationError.struct_class = Types::RecommendationError
|
|
6947
|
+
|
|
6948
|
+
RecommendationStep.add_member(:unused_permissions, Shapes::ShapeRef.new(shape: UnusedPermissionsRecommendationStep, location_name: "UnusedPermissions"))
|
|
6949
|
+
RecommendationStep.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
6950
|
+
RecommendationStep.add_member_subclass(:unused_permissions, Types::RecommendationStep::UnusedPermissions)
|
|
6951
|
+
RecommendationStep.add_member_subclass(:unknown, Types::RecommendationStep::Unknown)
|
|
6952
|
+
RecommendationStep.struct_class = Types::RecommendationStep
|
|
6953
|
+
|
|
6954
|
+
RecommendationSteps.member = Shapes::ShapeRef.new(shape: RecommendationStep)
|
|
6955
|
+
|
|
6887
6956
|
Record.add_member(:json_path, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "JsonPath"))
|
|
6888
6957
|
Record.add_member(:record_index, Shapes::ShapeRef.new(shape: Long, location_name: "RecordIndex"))
|
|
6889
6958
|
Record.struct_class = Types::Record
|
|
@@ -7065,6 +7134,9 @@ module Aws::SecurityHub
|
|
|
7065
7134
|
ResourceResult.add_member(:resource_config, Shapes::ShapeRef.new(shape: ResourceConfig, required: true, location_name: "ResourceConfig"))
|
|
7066
7135
|
ResourceResult.struct_class = Types::ResourceResult
|
|
7067
7136
|
|
|
7137
|
+
ResourceScopes.add_member(:aws_organizations, Shapes::ShapeRef.new(shape: AwsOrganizationScopeList, location_name: "AwsOrganizations"))
|
|
7138
|
+
ResourceScopes.struct_class = Types::ResourceScopes
|
|
7139
|
+
|
|
7068
7140
|
ResourceSeverityBreakdown.add_member(:other, Shapes::ShapeRef.new(shape: Integer, location_name: "Other"))
|
|
7069
7141
|
ResourceSeverityBreakdown.add_member(:fatal, Shapes::ShapeRef.new(shape: Integer, location_name: "Fatal"))
|
|
7070
7142
|
ResourceSeverityBreakdown.add_member(:critical, Shapes::ShapeRef.new(shape: Integer, location_name: "Critical"))
|
|
@@ -7674,6 +7746,13 @@ module Aws::SecurityHub
|
|
|
7674
7746
|
|
|
7675
7747
|
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
|
7676
7748
|
|
|
7749
|
+
UnusedPermissionsRecommendationStep.add_member(:recommended_action, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "RecommendedAction"))
|
|
7750
|
+
UnusedPermissionsRecommendationStep.add_member(:existing_policy, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ExistingPolicy"))
|
|
7751
|
+
UnusedPermissionsRecommendationStep.add_member(:existing_policy_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ExistingPolicyId"))
|
|
7752
|
+
UnusedPermissionsRecommendationStep.add_member(:policy_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "PolicyUpdatedAt"))
|
|
7753
|
+
UnusedPermissionsRecommendationStep.add_member(:recommended_policy, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "RecommendedPolicy"))
|
|
7754
|
+
UnusedPermissionsRecommendationStep.struct_class = Types::UnusedPermissionsRecommendationStep
|
|
7755
|
+
|
|
7677
7756
|
UpdateActionTargetRequest.add_member(:action_target_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "uri", location_name: "ActionTargetArn"))
|
|
7678
7757
|
UpdateActionTargetRequest.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Name"))
|
|
7679
7758
|
UpdateActionTargetRequest.add_member(:description, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Description"))
|
|
@@ -8609,6 +8688,20 @@ module Aws::SecurityHub
|
|
|
8609
8688
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
8610
8689
|
end)
|
|
8611
8690
|
|
|
8691
|
+
api.add_operation(:generate_recommended_policy_v2, Seahorse::Model::Operation.new.tap do |o|
|
|
8692
|
+
o.name = "GenerateRecommendedPolicyV2"
|
|
8693
|
+
o.http_method = "POST"
|
|
8694
|
+
o.http_request_uri = "/recommendedPolicyV2/{MetadataUid}"
|
|
8695
|
+
o.input = Shapes::ShapeRef.new(shape: GenerateRecommendedPolicyV2Request)
|
|
8696
|
+
o.output = Shapes::ShapeRef.new(shape: GenerateRecommendedPolicyV2Response)
|
|
8697
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
|
8698
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
8699
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
8700
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
8701
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
8702
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
8703
|
+
end)
|
|
8704
|
+
|
|
8612
8705
|
api.add_operation(:get_administrator_account, Seahorse::Model::Operation.new.tap do |o|
|
|
8613
8706
|
o.name = "GetAdministratorAccount"
|
|
8614
8707
|
o.http_method = "GET"
|
|
@@ -8753,6 +8846,8 @@ module Aws::SecurityHub
|
|
|
8753
8846
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
8754
8847
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
8755
8848
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
8849
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationalUnitNotFoundException)
|
|
8850
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
|
|
8756
8851
|
end)
|
|
8757
8852
|
|
|
8758
8853
|
api.add_operation(:get_findings, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -8802,6 +8897,8 @@ module Aws::SecurityHub
|
|
|
8802
8897
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
8803
8898
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
8804
8899
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
8900
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationalUnitNotFoundException)
|
|
8901
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
|
|
8805
8902
|
o[:pager] = Aws::Pager.new(
|
|
8806
8903
|
limit_key: "max_results",
|
|
8807
8904
|
tokens: {
|
|
@@ -8881,6 +8978,26 @@ module Aws::SecurityHub
|
|
|
8881
8978
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
8882
8979
|
end)
|
|
8883
8980
|
|
|
8981
|
+
api.add_operation(:get_recommended_policy_v2, Seahorse::Model::Operation.new.tap do |o|
|
|
8982
|
+
o.name = "GetRecommendedPolicyV2"
|
|
8983
|
+
o.http_method = "GET"
|
|
8984
|
+
o.http_request_uri = "/recommendedPolicyV2/{MetadataUid}"
|
|
8985
|
+
o.input = Shapes::ShapeRef.new(shape: GetRecommendedPolicyV2Request)
|
|
8986
|
+
o.output = Shapes::ShapeRef.new(shape: GetRecommendedPolicyV2Response)
|
|
8987
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
|
8988
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
8989
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
8990
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
8991
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
8992
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
8993
|
+
o[:pager] = Aws::Pager.new(
|
|
8994
|
+
limit_key: "max_results",
|
|
8995
|
+
tokens: {
|
|
8996
|
+
"next_token" => "next_token"
|
|
8997
|
+
}
|
|
8998
|
+
)
|
|
8999
|
+
end)
|
|
9000
|
+
|
|
8884
9001
|
api.add_operation(:get_resources_statistics_v2, Seahorse::Model::Operation.new.tap do |o|
|
|
8885
9002
|
o.name = "GetResourcesStatisticsV2"
|
|
8886
9003
|
o.http_method = "POST"
|
|
@@ -8893,6 +9010,8 @@ module Aws::SecurityHub
|
|
|
8893
9010
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
8894
9011
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
8895
9012
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
9013
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationalUnitNotFoundException)
|
|
9014
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
|
|
8896
9015
|
end)
|
|
8897
9016
|
|
|
8898
9017
|
api.add_operation(:get_resources_trends_v2, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -8925,6 +9044,8 @@ module Aws::SecurityHub
|
|
|
8925
9044
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
8926
9045
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
8927
9046
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
9047
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationalUnitNotFoundException)
|
|
9048
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
|
|
8928
9049
|
o[:pager] = Aws::Pager.new(
|
|
8929
9050
|
limit_key: "max_results",
|
|
8930
9051
|
tokens: {
|
|
@@ -34,6 +34,8 @@ module Aws::SecurityHub
|
|
|
34
34
|
# * {InvalidAccessException}
|
|
35
35
|
# * {InvalidInputException}
|
|
36
36
|
# * {LimitExceededException}
|
|
37
|
+
# * {OrganizationNotFoundException}
|
|
38
|
+
# * {OrganizationalUnitNotFoundException}
|
|
37
39
|
# * {ResourceConflictException}
|
|
38
40
|
# * {ResourceInUseException}
|
|
39
41
|
# * {ResourceNotFoundException}
|
|
@@ -187,6 +189,46 @@ module Aws::SecurityHub
|
|
|
187
189
|
end
|
|
188
190
|
end
|
|
189
191
|
|
|
192
|
+
class OrganizationNotFoundException < ServiceError
|
|
193
|
+
|
|
194
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
195
|
+
# @param [String] message
|
|
196
|
+
# @param [Aws::SecurityHub::Types::OrganizationNotFoundException] data
|
|
197
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
198
|
+
super(context, message, data)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# @return [String]
|
|
202
|
+
def message
|
|
203
|
+
@message || @data[:message]
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# @return [String]
|
|
207
|
+
def code
|
|
208
|
+
@code || @data[:code]
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
class OrganizationalUnitNotFoundException < ServiceError
|
|
213
|
+
|
|
214
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
215
|
+
# @param [String] message
|
|
216
|
+
# @param [Aws::SecurityHub::Types::OrganizationalUnitNotFoundException] data
|
|
217
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
218
|
+
super(context, message, data)
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# @return [String]
|
|
222
|
+
def message
|
|
223
|
+
@message || @data[:message]
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# @return [String]
|
|
227
|
+
def code
|
|
228
|
+
@code || @data[:code]
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
190
232
|
class ResourceConflictException < ServiceError
|
|
191
233
|
|
|
192
234
|
# @param [Seahorse::Client::RequestContext] context
|