aws-sdk-macie2 1.51.0 → 1.52.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-macie2/client.rb +3 -3
- data/lib/aws-sdk-macie2/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-macie2/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-macie2/types.rb +75 -29
- data/lib/aws-sdk-macie2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ef8e35a8d4dcae5617fa5ee2c1f26602ba892f338378f94d05888733e15b912
|
4
|
+
data.tar.gz: d717f27f9cc61ac636b2e605be22eca3664a6df2ee10b539383b44ac6a84da79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ff41545eb2215bdc75674739da05b5bdc9e7ec5a3c873613f95f33e068151fe05ded77684ce151ba2b2918044c0d4a84413d5ddfeae9a8b14bc25378d7aa7fb
|
7
|
+
data.tar.gz: 79967082c378aa6803a8993cae1d4c7c03a5d8c622cccd02fc276fc3403cf9973683cc364eeb7eac013cc33198881aad0fb1955dcbef9e307965f534cb159efd
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.52.0 (2023-02-23)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for a new finding type, Policy:IAMUser/S3BucketSharedWithCloudFront, and S3 bucket metadata that indicates if a bucket is shared with an Amazon CloudFront OAI or OAC.
|
8
|
+
|
4
9
|
1.51.0 (2023-01-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.52.0
|
@@ -906,7 +906,7 @@ module Aws::Macie2
|
|
906
906
|
# @example Request syntax with placeholder values
|
907
907
|
#
|
908
908
|
# resp = client.create_sample_findings({
|
909
|
-
# finding_types: ["SensitiveData:S3Object/Multiple"], # accepts SensitiveData:S3Object/Multiple, SensitiveData:S3Object/Financial, SensitiveData:S3Object/Personal, SensitiveData:S3Object/Credentials, SensitiveData:S3Object/CustomIdentifier, Policy:IAMUser/S3BucketPublic, Policy:IAMUser/S3BucketSharedExternally, Policy:IAMUser/S3BucketReplicatedExternally, Policy:IAMUser/S3BucketEncryptionDisabled, Policy:IAMUser/S3BlockPublicAccessDisabled
|
909
|
+
# finding_types: ["SensitiveData:S3Object/Multiple"], # accepts SensitiveData:S3Object/Multiple, SensitiveData:S3Object/Financial, SensitiveData:S3Object/Personal, SensitiveData:S3Object/Credentials, SensitiveData:S3Object/CustomIdentifier, Policy:IAMUser/S3BucketPublic, Policy:IAMUser/S3BucketSharedExternally, Policy:IAMUser/S3BucketReplicatedExternally, Policy:IAMUser/S3BucketEncryptionDisabled, Policy:IAMUser/S3BlockPublicAccessDisabled, Policy:IAMUser/S3BucketSharedWithCloudFront
|
910
910
|
# })
|
911
911
|
#
|
912
912
|
# @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateSampleFindings AWS API Documentation
|
@@ -2022,7 +2022,7 @@ module Aws::Macie2
|
|
2022
2022
|
# resp.findings[0].severity.description #=> String, one of "Low", "Medium", "High"
|
2023
2023
|
# resp.findings[0].severity.score #=> Integer
|
2024
2024
|
# resp.findings[0].title #=> String
|
2025
|
-
# resp.findings[0].type #=> String, one of "SensitiveData:S3Object/Multiple", "SensitiveData:S3Object/Financial", "SensitiveData:S3Object/Personal", "SensitiveData:S3Object/Credentials", "SensitiveData:S3Object/CustomIdentifier", "Policy:IAMUser/S3BucketPublic", "Policy:IAMUser/S3BucketSharedExternally", "Policy:IAMUser/S3BucketReplicatedExternally", "Policy:IAMUser/S3BucketEncryptionDisabled", "Policy:IAMUser/S3BlockPublicAccessDisabled"
|
2025
|
+
# resp.findings[0].type #=> String, one of "SensitiveData:S3Object/Multiple", "SensitiveData:S3Object/Financial", "SensitiveData:S3Object/Personal", "SensitiveData:S3Object/Credentials", "SensitiveData:S3Object/CustomIdentifier", "Policy:IAMUser/S3BucketPublic", "Policy:IAMUser/S3BucketSharedExternally", "Policy:IAMUser/S3BucketReplicatedExternally", "Policy:IAMUser/S3BucketEncryptionDisabled", "Policy:IAMUser/S3BlockPublicAccessDisabled", "Policy:IAMUser/S3BucketSharedWithCloudFront"
|
2026
2026
|
# resp.findings[0].updated_at #=> Time
|
2027
2027
|
#
|
2028
2028
|
# @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindings AWS API Documentation
|
@@ -3842,7 +3842,7 @@ module Aws::Macie2
|
|
3842
3842
|
params: params,
|
3843
3843
|
config: config)
|
3844
3844
|
context[:gem_name] = 'aws-sdk-macie2'
|
3845
|
-
context[:gem_version] = '1.
|
3845
|
+
context[:gem_version] = '1.52.0'
|
3846
3846
|
Seahorse::Client::Request.new(handlers, context)
|
3847
3847
|
end
|
3848
3848
|
|
@@ -50,9 +50,6 @@ module Aws::Macie2
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,39 @@ module Aws::Macie2
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
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://macie2-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
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://macie2-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
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"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://macie2-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://macie2-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://macie2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://macie2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://macie2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
data/lib/aws-sdk-macie2/types.rb
CHANGED
@@ -402,7 +402,7 @@ module Aws::Macie2
|
|
402
402
|
end
|
403
403
|
|
404
404
|
# Provides information about the number of S3 buckets that are publicly
|
405
|
-
# accessible
|
405
|
+
# accessible due to a combination of permissions settings for each
|
406
406
|
# bucket.
|
407
407
|
#
|
408
408
|
# @!attribute [rw] publicly_accessible
|
@@ -462,7 +462,12 @@ module Aws::Macie2
|
|
462
462
|
end
|
463
463
|
|
464
464
|
# Provides information about the number of S3 buckets that are or
|
465
|
-
# aren't shared with other Amazon Web Services accounts
|
465
|
+
# aren't shared with other Amazon Web Services accounts, Amazon
|
466
|
+
# CloudFront origin access identities (OAIs), or CloudFront origin
|
467
|
+
# access controls (OACs). In this data, an *Amazon Macie organization*
|
468
|
+
# is defined as a set of Macie accounts that are centrally managed as a
|
469
|
+
# group of related accounts through Organizations or by Macie
|
470
|
+
# invitation.
|
466
471
|
#
|
467
472
|
# @!attribute [rw] external
|
468
473
|
# @return [Integer]
|
@@ -584,13 +589,22 @@ module Aws::Macie2
|
|
584
589
|
end
|
585
590
|
|
586
591
|
# Provides statistical data and other information about an S3 bucket
|
587
|
-
# that Amazon Macie monitors and analyzes for your account.
|
588
|
-
#
|
589
|
-
#
|
590
|
-
#
|
591
|
-
#
|
592
|
-
#
|
593
|
-
# error
|
592
|
+
# that Amazon Macie monitors and analyzes for your account. By default,
|
593
|
+
# object count and storage size values include data for object parts
|
594
|
+
# that are the result of incomplete multipart uploads. For more
|
595
|
+
# information, see [How Macie monitors Amazon S3 data security][1] in
|
596
|
+
# the *Amazon Macie User Guide*.
|
597
|
+
#
|
598
|
+
# If an error occurs when Macie attempts to retrieve and process
|
599
|
+
# metadata from Amazon S3 for the bucket or the bucket's objects, the
|
600
|
+
# value for the versioning property is false and the value for most
|
601
|
+
# other properties is null. Key exceptions are accountId, bucketArn,
|
602
|
+
# bucketCreatedAt, bucketName, lastUpdated, and region. To identify the
|
603
|
+
# cause of the error, refer to the errorCode and errorMessage values.
|
604
|
+
#
|
605
|
+
#
|
606
|
+
#
|
607
|
+
# [1]: https://docs.aws.amazon.com/macie/latest/user/monitoring-s3-how-it-works.html
|
594
608
|
#
|
595
609
|
# @!attribute [rw] account_id
|
596
610
|
# @return [String]
|
@@ -2599,15 +2613,22 @@ module Aws::Macie2
|
|
2599
2613
|
|
2600
2614
|
# Provides the results of a query that retrieved aggregated statistical
|
2601
2615
|
# data for all the S3 buckets that Amazon Macie monitors and analyzes
|
2602
|
-
# for your account.
|
2616
|
+
# for your account. By default, object count and storage size values
|
2617
|
+
# include data for object parts that are the result of incomplete
|
2618
|
+
# multipart uploads. For more information, see [How Macie monitors
|
2619
|
+
# Amazon S3 data security][1] in the *Amazon Macie User Guide*.
|
2620
|
+
#
|
2621
|
+
#
|
2622
|
+
#
|
2623
|
+
# [1]: https://docs.aws.amazon.com/macie/latest/user/monitoring-s3-how-it-works.html
|
2603
2624
|
#
|
2604
2625
|
# @!attribute [rw] bucket_count
|
2605
2626
|
# @return [Integer]
|
2606
2627
|
#
|
2607
2628
|
# @!attribute [rw] bucket_count_by_effective_permission
|
2608
2629
|
# Provides information about the number of S3 buckets that are
|
2609
|
-
# publicly accessible
|
2610
|
-
#
|
2630
|
+
# publicly accessible due to a combination of permissions settings for
|
2631
|
+
# each bucket.
|
2611
2632
|
# @return [Types::BucketCountByEffectivePermission]
|
2612
2633
|
#
|
2613
2634
|
# @!attribute [rw] bucket_count_by_encryption_type
|
@@ -2630,7 +2651,12 @@ module Aws::Macie2
|
|
2630
2651
|
#
|
2631
2652
|
# @!attribute [rw] bucket_count_by_shared_access_type
|
2632
2653
|
# Provides information about the number of S3 buckets that are or
|
2633
|
-
# aren't shared with other Amazon Web Services accounts
|
2654
|
+
# aren't shared with other Amazon Web Services accounts, Amazon
|
2655
|
+
# CloudFront origin access identities (OAIs), or CloudFront origin
|
2656
|
+
# access controls (OACs). In this data, an *Amazon Macie organization*
|
2657
|
+
# is defined as a set of Macie accounts that are centrally managed as
|
2658
|
+
# a group of related accounts through Organizations or by Macie
|
2659
|
+
# invitation.
|
2634
2660
|
# @return [Types::BucketCountBySharedAccessType]
|
2635
2661
|
#
|
2636
2662
|
# @!attribute [rw] bucket_statistics_by_sensitivity
|
@@ -4454,12 +4480,21 @@ module Aws::Macie2
|
|
4454
4480
|
end
|
4455
4481
|
|
4456
4482
|
# Provides statistical data and other information about an S3 bucket
|
4457
|
-
# that Amazon Macie monitors and analyzes for your account.
|
4458
|
-
#
|
4459
|
-
#
|
4460
|
-
#
|
4461
|
-
#
|
4462
|
-
#
|
4483
|
+
# that Amazon Macie monitors and analyzes for your account. By default,
|
4484
|
+
# object count and storage size values include data for object parts
|
4485
|
+
# that are the result of incomplete multipart uploads. For more
|
4486
|
+
# information, see [How Macie monitors Amazon S3 data security][1] in
|
4487
|
+
# the *Amazon Macie User Guide*.
|
4488
|
+
#
|
4489
|
+
# If an error occurs when Macie attempts to retrieve and process
|
4490
|
+
# information about the bucket or the bucket's objects, the value for
|
4491
|
+
# most of these properties is null. Key exceptions are accountId and
|
4492
|
+
# bucketName. To identify the cause of the error, refer to the errorCode
|
4493
|
+
# and errorMessage values.
|
4494
|
+
#
|
4495
|
+
#
|
4496
|
+
#
|
4497
|
+
# [1]: https://docs.aws.amazon.com/macie/latest/user/monitoring-s3-how-it-works.html
|
4463
4498
|
#
|
4464
4499
|
# @!attribute [rw] account_id
|
4465
4500
|
# @return [String]
|
@@ -4559,12 +4594,21 @@ module Aws::Macie2
|
|
4559
4594
|
#
|
4560
4595
|
# @!attribute [rw] matching_bucket
|
4561
4596
|
# Provides statistical data and other information about an S3 bucket
|
4562
|
-
# that Amazon Macie monitors and analyzes for your account.
|
4563
|
-
#
|
4564
|
-
#
|
4565
|
-
#
|
4597
|
+
# that Amazon Macie monitors and analyzes for your account. By
|
4598
|
+
# default, object count and storage size values include data for
|
4599
|
+
# object parts that are the result of incomplete multipart uploads.
|
4600
|
+
# For more information, see [How Macie monitors Amazon S3 data
|
4601
|
+
# security][1] in the *Amazon Macie User Guide*.
|
4602
|
+
#
|
4603
|
+
# If an error occurs when Macie attempts to retrieve and process
|
4604
|
+
# information about the bucket or the bucket's objects, the value for
|
4605
|
+
# most of these properties is null. Key exceptions are accountId and
|
4566
4606
|
# bucketName. To identify the cause of the error, refer to the
|
4567
4607
|
# errorCode and errorMessage values.
|
4608
|
+
#
|
4609
|
+
#
|
4610
|
+
#
|
4611
|
+
# [1]: https://docs.aws.amazon.com/macie/latest/user/monitoring-s3-how-it-works.html
|
4568
4612
|
# @return [Types::MatchingBucket]
|
4569
4613
|
#
|
4570
4614
|
# @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/MatchingResource AWS API Documentation
|
@@ -4742,13 +4786,15 @@ module Aws::Macie2
|
|
4742
4786
|
# Portable Document Format file.
|
4743
4787
|
#
|
4744
4788
|
# @!attribute [rw] line_range
|
4745
|
-
# Specifies the location of an occurrence of sensitive data in
|
4746
|
-
# non-binary text file
|
4789
|
+
# Specifies the location of an occurrence of sensitive data in an
|
4790
|
+
# email message or a non-binary text file such as an HTML, TXT, or XML
|
4791
|
+
# file.
|
4747
4792
|
# @return [Types::Range]
|
4748
4793
|
#
|
4749
4794
|
# @!attribute [rw] offset_range
|
4750
|
-
# Specifies the location of an occurrence of sensitive data in
|
4751
|
-
# non-binary text file
|
4795
|
+
# Specifies the location of an occurrence of sensitive data in an
|
4796
|
+
# email message or a non-binary text file such as an HTML, TXT, or XML
|
4797
|
+
# file.
|
4752
4798
|
# @return [Types::Range]
|
4753
4799
|
#
|
4754
4800
|
# @!attribute [rw] page_number
|
@@ -4851,8 +4897,8 @@ module Aws::Macie2
|
|
4851
4897
|
#
|
4852
4898
|
class PutFindingsPublicationConfigurationResponse < Aws::EmptyStructure; end
|
4853
4899
|
|
4854
|
-
# Specifies the location of an occurrence of sensitive data in
|
4855
|
-
# non-binary text file
|
4900
|
+
# Specifies the location of an occurrence of sensitive data in an email
|
4901
|
+
# message or a non-binary text file such as an HTML, TXT, or XML file.
|
4856
4902
|
#
|
4857
4903
|
# @!attribute [rw] end
|
4858
4904
|
# @return [Integer]
|
data/lib/aws-sdk-macie2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-macie2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.52.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: 2023-
|
11
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|