aws-sdk-securitylake 1.0.0 → 1.2.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 +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-securitylake/client.rb +256 -225
- data/lib/aws-sdk-securitylake/client_api.rb +6 -5
- data/lib/aws-sdk-securitylake/endpoint_provider.rb +35 -95
- data/lib/aws-sdk-securitylake/types.rb +235 -517
- data/lib/aws-sdk-securitylake.rb +1 -1
- metadata +2 -2
@@ -67,6 +67,7 @@ module Aws::SecurityLake
|
|
67
67
|
DeleteSubscriberResponse = Shapes::StructureShape.new(name: 'DeleteSubscriberResponse')
|
68
68
|
DeleteSubscriptionNotificationConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteSubscriptionNotificationConfigurationRequest')
|
69
69
|
DeleteSubscriptionNotificationConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteSubscriptionNotificationConfigurationResponse')
|
70
|
+
DescriptionString = Shapes::StringShape.new(name: 'DescriptionString')
|
70
71
|
Dimension = Shapes::StringShape.new(name: 'Dimension')
|
71
72
|
DimensionSet = Shapes::ListShape.new(name: 'DimensionSet')
|
72
73
|
EndpointProtocol = Shapes::StringShape.new(name: 'EndpointProtocol')
|
@@ -251,7 +252,7 @@ module Aws::SecurityLake
|
|
251
252
|
CreateSubscriberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AwsAccountId, required: true, location_name: "accountId"))
|
252
253
|
CreateSubscriberRequest.add_member(:external_id, Shapes::ShapeRef.new(shape: SafeString, required: true, location_name: "externalId"))
|
253
254
|
CreateSubscriberRequest.add_member(:source_types, Shapes::ShapeRef.new(shape: SourceTypeList, required: true, location_name: "sourceTypes"))
|
254
|
-
CreateSubscriberRequest.add_member(:subscriber_description, Shapes::ShapeRef.new(shape:
|
255
|
+
CreateSubscriberRequest.add_member(:subscriber_description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "subscriberDescription"))
|
255
256
|
CreateSubscriberRequest.add_member(:subscriber_name, Shapes::ShapeRef.new(shape: CreateSubscriberRequestSubscriberNameString, required: true, location_name: "subscriberName"))
|
256
257
|
CreateSubscriberRequest.struct_class = Types::CreateSubscriberRequest
|
257
258
|
|
@@ -424,10 +425,10 @@ module Aws::SecurityLake
|
|
424
425
|
ListLogSourcesResponse.struct_class = Types::ListLogSourcesResponse
|
425
426
|
|
426
427
|
ListSubscribersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "maxResults"))
|
427
|
-
ListSubscribersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape:
|
428
|
+
ListSubscribersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
|
428
429
|
ListSubscribersRequest.struct_class = Types::ListSubscribersRequest
|
429
430
|
|
430
|
-
ListSubscribersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape:
|
431
|
+
ListSubscribersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
431
432
|
ListSubscribersResponse.add_member(:subscribers, Shapes::ShapeRef.new(shape: SubscriberList, required: true, location_name: "subscribers"))
|
432
433
|
ListSubscribersResponse.struct_class = Types::ListSubscribersResponse
|
433
434
|
|
@@ -525,8 +526,8 @@ module Aws::SecurityLake
|
|
525
526
|
|
526
527
|
UpdateSubscriberRequest.add_member(:external_id, Shapes::ShapeRef.new(shape: SafeString, location_name: "externalId"))
|
527
528
|
UpdateSubscriberRequest.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "id"))
|
528
|
-
UpdateSubscriberRequest.add_member(:source_types, Shapes::ShapeRef.new(shape: SourceTypeList, location_name: "sourceTypes"))
|
529
|
-
UpdateSubscriberRequest.add_member(:subscriber_description, Shapes::ShapeRef.new(shape:
|
529
|
+
UpdateSubscriberRequest.add_member(:source_types, Shapes::ShapeRef.new(shape: SourceTypeList, required: true, location_name: "sourceTypes"))
|
530
|
+
UpdateSubscriberRequest.add_member(:subscriber_description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "subscriberDescription"))
|
530
531
|
UpdateSubscriberRequest.add_member(:subscriber_name, Shapes::ShapeRef.new(shape: UpdateSubscriberRequestSubscriberNameString, location_name: "subscriberName"))
|
531
532
|
UpdateSubscriberRequest.struct_class = Types::UpdateSubscriberRequest
|
532
533
|
|
@@ -9,103 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::SecurityLake
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://securitylake-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://securitylake-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://securitylake.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://securitylake.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
49
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
-
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
-
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpb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