aws-sdk-auditmanager 1.29.0 → 1.31.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8972e9bd0e4f608a9096f41e7ef3013337d9ce4bfd9cc11647a61b4f65d5d2f6
4
- data.tar.gz: 1a1490c229c96eff6033aa840f1d2895d8e967cc89bdec4713decd18bdea91e6
3
+ metadata.gz: 1adc31b8e81e088bb036d69116dc31fbb9a036fa48513fa4b9176b5a633a4ef7
4
+ data.tar.gz: bd700a990c06f393a515e122cc8896ed0e49ce9c7062624fc9b8bbeb52cacdbf
5
5
  SHA512:
6
- metadata.gz: 143d79930226e388f6e6eeaf246ac62d3e2f20d81f8778dfc1d0b616bee419a9b3d9d7563469792021559958c5bc2c8459f6bd95037f98df2fed2e0196fd9d61
7
- data.tar.gz: afe797c8b860542d42ffbc6c3a5eed1edee8090ef2409f1102a8f80b589c846bd5b526d0a71668f705d28872d1dd9222e8ca48be0ca5f50f1b0ed4ddcec31d69
6
+ metadata.gz: 49247ef51aa5abb955704516eb94809f03009c82493d5b363bded1a4d305eaf01b30e87aef81bb3bcf62ad9b475d3beb52e2fdae8b3b6459e645794784eb4f3e
7
+ data.tar.gz: 7df1cae8d61706880cd76e6d5fcc7c0919b0461dde152b09303b360436a03c22ca07ea03d2f30e95636ed2da308444a49691a22af0aac5cbf8b1768679a9858e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.31.0 (2023-02-20)
5
+ ------------------
6
+
7
+ * Feature - This release introduces a ServiceQuotaExceededException to the UpdateAssessmentFrameworkShare API operation.
8
+
9
+ 1.30.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.29.0 (2023-01-06)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.29.0
1
+ 1.31.0
@@ -3647,7 +3647,7 @@ module Aws::AuditManager
3647
3647
  req.send_request(options)
3648
3648
  end
3649
3649
 
3650
- # Updates Audit Manager settings for the current user account.
3650
+ # Updates Audit Manager settings for the current account.
3651
3651
  #
3652
3652
  # @option params [String] :sns_topic
3653
3653
  # The Amazon Simple Notification Service (Amazon SNS) topic that Audit
@@ -3783,7 +3783,7 @@ module Aws::AuditManager
3783
3783
  params: params,
3784
3784
  config: config)
3785
3785
  context[:gem_name] = 'aws-sdk-auditmanager'
3786
- context[:gem_version] = '1.29.0'
3786
+ context[:gem_version] = '1.31.0'
3787
3787
  Seahorse::Client::Request.new(handlers, context)
3788
3788
  end
3789
3789
 
@@ -2111,6 +2111,7 @@ module Aws::AuditManager
2111
2111
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2112
2112
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2113
2113
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2114
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2114
2115
  end)
2115
2116
 
2116
2117
  api.add_operation(:update_assessment_status, Seahorse::Model::Operation.new.tap do |o|
@@ -50,9 +50,6 @@ module Aws::AuditManager
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?
@@ -9,102 +9,46 @@
9
9
 
10
10
  module Aws::AuditManager
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
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 Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- 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://auditmanager-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://auditmanager-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://auditmanager.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://auditmanager.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
- IkJvb2xlYW4ifSwiVX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- JSON
109
53
  end
110
54
  end
@@ -38,6 +38,19 @@ module Aws::AuditManager
38
38
 
39
39
  # An Amazon Web Service such as Amazon S3 or CloudTrail.
40
40
  #
41
+ # For an example of how to find an Amazon Web Service name and how to
42
+ # define it in your assessment scope, see the following:
43
+ #
44
+ # * [Finding an Amazon Web Service name to use in your assessment
45
+ # scope][1]
46
+ #
47
+ # * [Defining an Amazon Web Service name in your assessment scope][2]
48
+ #
49
+ #
50
+ #
51
+ # [1]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_GetServicesInScope.html#API_GetServicesInScope_Example_2
52
+ # [2]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_GetServicesInScope.html#API_GetServicesInScope_Example_3
53
+ #
41
54
  # @!attribute [rw] service_name
42
55
  # The name of the Amazon Web Service.
43
56
  # @return [String]
@@ -1085,7 +1098,7 @@ module Aws::AuditManager
1085
1098
  # @return [Time]
1086
1099
  #
1087
1100
  # @!attribute [rw] created_by
1088
- # The IAM user or role that performed the action.
1101
+ # The user or role that performed the action.
1089
1102
  # @return [String]
1090
1103
  #
1091
1104
  # @see http://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ChangeLog AWS API Documentation
@@ -1154,11 +1167,11 @@ module Aws::AuditManager
1154
1167
  # @return [Time]
1155
1168
  #
1156
1169
  # @!attribute [rw] created_by
1157
- # The IAM user or role that created the control.
1170
+ # The user or role that created the control.
1158
1171
  # @return [String]
1159
1172
  #
1160
1173
  # @!attribute [rw] last_updated_by
1161
- # The IAM user or role that most recently updated the control.
1174
+ # The user or role that most recently updated the control.
1162
1175
  # @return [String]
1163
1176
  #
1164
1177
  # @!attribute [rw] tags
@@ -1887,7 +1900,7 @@ module Aws::AuditManager
1887
1900
  # @return [String]
1888
1901
  #
1889
1902
  # @!attribute [rw] created_by
1890
- # The IAM user or role that created the delegation.
1903
+ # The user or role that created the delegation.
1891
1904
  # @return [String]
1892
1905
  #
1893
1906
  # @see http://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/Delegation AWS API Documentation
@@ -2184,8 +2197,8 @@ module Aws::AuditManager
2184
2197
  # @return [Hash<String,String>]
2185
2198
  #
2186
2199
  # @!attribute [rw] iam_id
2187
- # The unique identifier for the IAM user or role that's associated
2188
- # with the evidence.
2200
+ # The unique identifier for the user or role that's associated with
2201
+ # the evidence.
2189
2202
  # @return [String]
2190
2203
  #
2191
2204
  # @!attribute [rw] compliance_check
@@ -2413,11 +2426,11 @@ module Aws::AuditManager
2413
2426
  # @return [Time]
2414
2427
  #
2415
2428
  # @!attribute [rw] created_by
2416
- # The IAM user or role that created the framework.
2429
+ # The user or role that created the framework.
2417
2430
  # @return [String]
2418
2431
  #
2419
2432
  # @!attribute [rw] last_updated_by
2420
- # The IAM user or role that most recently updated the framework.
2433
+ # The user or role that most recently updated the framework.
2421
2434
  # @return [String]
2422
2435
  #
2423
2436
  # @!attribute [rw] tags
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-auditmanager/customizations'
52
52
  # @!group service
53
53
  module Aws::AuditManager
54
54
 
55
- GEM_VERSION = '1.29.0'
55
+ GEM_VERSION = '1.31.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-auditmanager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.0
4
+ version: 1.31.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-01-06 00:00:00.000000000 Z
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core