aws-sdk-configservice 1.85.0 → 1.86.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: 89b7f174affcb659913191d85ceb01c28830fbff42f674de18f549b60349fe4b
4
- data.tar.gz: 8093cf793270d21dd5669325dfa54930ca4e52efdcd1d54c7468b2aa05a0f2f9
3
+ metadata.gz: 6f8e9b387e52a7deb0a5a6a0e9303a741f25d3d53ff8370e668d2415e7e0adbd
4
+ data.tar.gz: 35cd3d4c7f2a2a828c69e57db1eec886a7f9087bffdcb14f540259491a35d3de
5
5
  SHA512:
6
- metadata.gz: 7eea058071a231ee5f7833bbac9644365b4a4b4d9287d251e4728abe09c35d7b63e4f4e1bb176fd9c4144782e266520acaf0e5ad67184a80a36444d3ed8d8ac5
7
- data.tar.gz: dea6a94b187157347650844c5b437c66df00d2ee309d2fe52aa4a3d261f91e065962a4fa0f4bca13310b0dfe6f46a77de138f8c6922868d51a8c8fefc69180f8
6
+ metadata.gz: 743a378973e2c9e9406b8c893b91d84a90a15c3edac988af38e408f4379f40e7544947c3cf7aaa255d9553d40f837dfc8afa5ac743a5791c812cd1af1db75298
7
+ data.tar.gz: 60e46af4e4275a41a3985ea3928b838933592aa47935849ecfb25d240e26edfec4181c739ba8b3a644b46a98d32fdce89bd786b1238c4300edd24ac47419517f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.86.0 (2022-11-29)
5
+ ------------------
6
+
7
+ * Feature - With this release, you can use AWS Config to evaluate your resources for compliance with Config rules before they are created or updated. Using Config rules in proactive mode enables you to test and build compliant resource templates or check resource configurations at the time they are provisioned.
8
+
4
9
  1.85.0 (2022-10-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.85.0
1
+ 1.86.0
@@ -1409,6 +1409,10 @@ module Aws::ConfigService
1409
1409
  # The `nextToken` string returned on a previous page that you use to get
1410
1410
  # the next page of results in a paginated response.
1411
1411
  #
1412
+ # @option params [Types::DescribeConfigRulesFilters] :filters
1413
+ # Returns a list of Detecive or Proactive Config rules. By default, this
1414
+ # API returns an unfiltered list.
1415
+ #
1412
1416
  # @return [Types::DescribeConfigRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1413
1417
  #
1414
1418
  # * {Types::DescribeConfigRulesResponse#config_rules #config_rules} => Array<Types::ConfigRule>
@@ -1421,6 +1425,9 @@ module Aws::ConfigService
1421
1425
  # resp = client.describe_config_rules({
1422
1426
  # config_rule_names: ["ConfigRuleName"],
1423
1427
  # next_token: "String",
1428
+ # filters: {
1429
+ # evaluation_mode: "DETECTIVE", # accepts DETECTIVE, PROACTIVE
1430
+ # },
1424
1431
  # })
1425
1432
  #
1426
1433
  # @example Response structure
@@ -1448,6 +1455,8 @@ module Aws::ConfigService
1448
1455
  # resp.config_rules[0].maximum_execution_frequency #=> String, one of "One_Hour", "Three_Hours", "Six_Hours", "Twelve_Hours", "TwentyFour_Hours"
1449
1456
  # resp.config_rules[0].config_rule_state #=> String, one of "ACTIVE", "DELETING", "DELETING_RESULTS", "EVALUATING"
1450
1457
  # resp.config_rules[0].created_by #=> String
1458
+ # resp.config_rules[0].evaluation_modes #=> Array
1459
+ # resp.config_rules[0].evaluation_modes[0].mode #=> String, one of "DETECTIVE", "PROACTIVE"
1451
1460
  # resp.next_token #=> String
1452
1461
  #
1453
1462
  # @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRules AWS API Documentation
@@ -2581,7 +2590,9 @@ module Aws::ConfigService
2581
2590
  # resp.aggregate_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.config_rule_name #=> String
2582
2591
  # resp.aggregate_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_type #=> String
2583
2592
  # resp.aggregate_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_id #=> String
2593
+ # resp.aggregate_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.evaluation_mode #=> String, one of "DETECTIVE", "PROACTIVE"
2584
2594
  # resp.aggregate_evaluation_results[0].evaluation_result_identifier.ordering_timestamp #=> Time
2595
+ # resp.aggregate_evaluation_results[0].evaluation_result_identifier.resource_evaluation_id #=> String
2585
2596
  # resp.aggregate_evaluation_results[0].compliance_type #=> String, one of "COMPLIANT", "NON_COMPLIANT", "NOT_APPLICABLE", "INSUFFICIENT_DATA"
2586
2597
  # resp.aggregate_evaluation_results[0].result_recorded_time #=> Time
2587
2598
  # resp.aggregate_evaluation_results[0].config_rule_invoked_time #=> Time
@@ -2913,7 +2924,9 @@ module Aws::ConfigService
2913
2924
  # resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.config_rule_name #=> String
2914
2925
  # resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_type #=> String
2915
2926
  # resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_id #=> String
2927
+ # resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.evaluation_mode #=> String, one of "DETECTIVE", "PROACTIVE"
2916
2928
  # resp.evaluation_results[0].evaluation_result_identifier.ordering_timestamp #=> Time
2929
+ # resp.evaluation_results[0].evaluation_result_identifier.resource_evaluation_id #=> String
2917
2930
  # resp.evaluation_results[0].compliance_type #=> String, one of "COMPLIANT", "NON_COMPLIANT", "NOT_APPLICABLE", "INSUFFICIENT_DATA"
2918
2931
  # resp.evaluation_results[0].result_recorded_time #=> Time
2919
2932
  # resp.evaluation_results[0].config_rule_invoked_time #=> Time
@@ -2932,14 +2945,14 @@ module Aws::ConfigService
2932
2945
 
2933
2946
  # Returns the evaluation results for the specified Amazon Web Services
2934
2947
  # resource. The results indicate which Config rules were used to
2935
- # evaluate the resource, when each rule was last used, and whether the
2936
- # resource complies with each rule.
2948
+ # evaluate the resource, when each rule was last invoked, and whether
2949
+ # the resource complies with each rule.
2937
2950
  #
2938
- # @option params [required, String] :resource_type
2951
+ # @option params [String] :resource_type
2939
2952
  # The type of the Amazon Web Services resource for which you want
2940
2953
  # compliance information.
2941
2954
  #
2942
- # @option params [required, String] :resource_id
2955
+ # @option params [String] :resource_id
2943
2956
  # The ID of the Amazon Web Services resource for which you want
2944
2957
  # compliance information.
2945
2958
  #
@@ -2953,6 +2966,15 @@ module Aws::ConfigService
2953
2966
  # The `nextToken` string returned on a previous page that you use to get
2954
2967
  # the next page of results in a paginated response.
2955
2968
  #
2969
+ # @option params [String] :resource_evaluation_id
2970
+ # The unique ID of Amazon Web Services resource execution for which you
2971
+ # want to retrieve evaluation results.
2972
+ #
2973
+ # <note markdown="1"> You need to only provide either a `ResourceEvaluationID` or a
2974
+ # `ResourceID `and `ResourceType`.
2975
+ #
2976
+ # </note>
2977
+ #
2956
2978
  # @return [Types::GetComplianceDetailsByResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2957
2979
  #
2958
2980
  # * {Types::GetComplianceDetailsByResourceResponse#evaluation_results #evaluation_results} => Array&lt;Types::EvaluationResult&gt;
@@ -2963,10 +2985,11 @@ module Aws::ConfigService
2963
2985
  # @example Request syntax with placeholder values
2964
2986
  #
2965
2987
  # resp = client.get_compliance_details_by_resource({
2966
- # resource_type: "StringWithCharLimit256", # required
2967
- # resource_id: "BaseResourceId", # required
2988
+ # resource_type: "StringWithCharLimit256",
2989
+ # resource_id: "BaseResourceId",
2968
2990
  # compliance_types: ["COMPLIANT"], # accepts COMPLIANT, NON_COMPLIANT, NOT_APPLICABLE, INSUFFICIENT_DATA
2969
2991
  # next_token: "String",
2992
+ # resource_evaluation_id: "ResourceEvaluationId",
2970
2993
  # })
2971
2994
  #
2972
2995
  # @example Response structure
@@ -2975,7 +2998,9 @@ module Aws::ConfigService
2975
2998
  # resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.config_rule_name #=> String
2976
2999
  # resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_type #=> String
2977
3000
  # resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_id #=> String
3001
+ # resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.evaluation_mode #=> String, one of "DETECTIVE", "PROACTIVE"
2978
3002
  # resp.evaluation_results[0].evaluation_result_identifier.ordering_timestamp #=> Time
3003
+ # resp.evaluation_results[0].evaluation_result_identifier.resource_evaluation_id #=> String
2979
3004
  # resp.evaluation_results[0].compliance_type #=> String, one of "COMPLIANT", "NON_COMPLIANT", "NOT_APPLICABLE", "INSUFFICIENT_DATA"
2980
3005
  # resp.evaluation_results[0].result_recorded_time #=> Time
2981
3006
  # resp.evaluation_results[0].config_rule_invoked_time #=> Time
@@ -3106,7 +3131,9 @@ module Aws::ConfigService
3106
3131
  # resp.conformance_pack_rule_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.config_rule_name #=> String
3107
3132
  # resp.conformance_pack_rule_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_type #=> String
3108
3133
  # resp.conformance_pack_rule_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_id #=> String
3134
+ # resp.conformance_pack_rule_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.evaluation_mode #=> String, one of "DETECTIVE", "PROACTIVE"
3109
3135
  # resp.conformance_pack_rule_evaluation_results[0].evaluation_result_identifier.ordering_timestamp #=> Time
3136
+ # resp.conformance_pack_rule_evaluation_results[0].evaluation_result_identifier.resource_evaluation_id #=> String
3110
3137
  # resp.conformance_pack_rule_evaluation_results[0].config_rule_invoked_time #=> Time
3111
3138
  # resp.conformance_pack_rule_evaluation_results[0].result_recorded_time #=> Time
3112
3139
  # resp.conformance_pack_rule_evaluation_results[0].annotation #=> String
@@ -3545,6 +3572,56 @@ module Aws::ConfigService
3545
3572
  req.send_request(options)
3546
3573
  end
3547
3574
 
3575
+ # Returns a summary of resource evaluation for the specified resource
3576
+ # evaluation ID from the proactive rules that were run. The results
3577
+ # indicate which evaluation context was used to evaluate the rules,
3578
+ # which resource details were evaluated, the evaluation mode that was
3579
+ # run, and whether the resource details comply with the configuration of
3580
+ # the proactive rules.
3581
+ #
3582
+ # @option params [required, String] :resource_evaluation_id
3583
+ # The unique `ResourceEvaluationId` of Amazon Web Services resource
3584
+ # execution for which you want to retrieve the evaluation summary.
3585
+ #
3586
+ # @return [Types::GetResourceEvaluationSummaryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3587
+ #
3588
+ # * {Types::GetResourceEvaluationSummaryResponse#resource_evaluation_id #resource_evaluation_id} => String
3589
+ # * {Types::GetResourceEvaluationSummaryResponse#evaluation_mode #evaluation_mode} => String
3590
+ # * {Types::GetResourceEvaluationSummaryResponse#evaluation_status #evaluation_status} => Types::EvaluationStatus
3591
+ # * {Types::GetResourceEvaluationSummaryResponse#evaluation_start_timestamp #evaluation_start_timestamp} => Time
3592
+ # * {Types::GetResourceEvaluationSummaryResponse#compliance #compliance} => String
3593
+ # * {Types::GetResourceEvaluationSummaryResponse#evaluation_context #evaluation_context} => Types::EvaluationContext
3594
+ # * {Types::GetResourceEvaluationSummaryResponse#resource_details #resource_details} => Types::ResourceDetails
3595
+ #
3596
+ # @example Request syntax with placeholder values
3597
+ #
3598
+ # resp = client.get_resource_evaluation_summary({
3599
+ # resource_evaluation_id: "ResourceEvaluationId", # required
3600
+ # })
3601
+ #
3602
+ # @example Response structure
3603
+ #
3604
+ # resp.resource_evaluation_id #=> String
3605
+ # resp.evaluation_mode #=> String, one of "DETECTIVE", "PROACTIVE"
3606
+ # resp.evaluation_status.status #=> String, one of "IN_PROGRESS", "FAILED", "SUCCEEDED"
3607
+ # resp.evaluation_status.failure_reason #=> String
3608
+ # resp.evaluation_start_timestamp #=> Time
3609
+ # resp.compliance #=> String, one of "COMPLIANT", "NON_COMPLIANT", "NOT_APPLICABLE", "INSUFFICIENT_DATA"
3610
+ # resp.evaluation_context.evaluation_context_identifier #=> String
3611
+ # resp.resource_details.resource_id #=> String
3612
+ # resp.resource_details.resource_type #=> String
3613
+ # resp.resource_details.resource_configuration #=> String
3614
+ # resp.resource_details.resource_configuration_schema_type #=> String, one of "CFN_RESOURCE_SCHEMA"
3615
+ #
3616
+ # @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetResourceEvaluationSummary AWS API Documentation
3617
+ #
3618
+ # @overload get_resource_evaluation_summary(params = {})
3619
+ # @param [Hash] params ({})
3620
+ def get_resource_evaluation_summary(params = {}, options = {})
3621
+ req = build_request(:get_resource_evaluation_summary, params)
3622
+ req.send_request(options)
3623
+ end
3624
+
3548
3625
  # Returns the details of a specific stored query.
3549
3626
  #
3550
3627
  # @option params [required, String] :query_name
@@ -3815,6 +3892,59 @@ module Aws::ConfigService
3815
3892
  req.send_request(options)
3816
3893
  end
3817
3894
 
3895
+ # Returns a list of proactive resource evaluations.
3896
+ #
3897
+ # @option params [Types::ResourceEvaluationFilters] :filters
3898
+ # Returns a `ResourceEvaluationFilters` object.
3899
+ #
3900
+ # @option params [Integer] :limit
3901
+ # The maximum number of evaluations returned on each page. The default
3902
+ # is 10. You cannot specify a number greater than 100. If you specify 0,
3903
+ # Config uses the default.
3904
+ #
3905
+ # @option params [String] :next_token
3906
+ # The `nextToken` string returned on a previous page that you use to get
3907
+ # the next page of results in a paginated response.
3908
+ #
3909
+ # @return [Types::ListResourceEvaluationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3910
+ #
3911
+ # * {Types::ListResourceEvaluationsResponse#resource_evaluations #resource_evaluations} => Array&lt;Types::ResourceEvaluation&gt;
3912
+ # * {Types::ListResourceEvaluationsResponse#next_token #next_token} => String
3913
+ #
3914
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3915
+ #
3916
+ # @example Request syntax with placeholder values
3917
+ #
3918
+ # resp = client.list_resource_evaluations({
3919
+ # filters: {
3920
+ # evaluation_mode: "DETECTIVE", # accepts DETECTIVE, PROACTIVE
3921
+ # time_window: {
3922
+ # start_time: Time.now,
3923
+ # end_time: Time.now,
3924
+ # },
3925
+ # evaluation_context_identifier: "EvaluationContextIdentifier",
3926
+ # },
3927
+ # limit: 1,
3928
+ # next_token: "String",
3929
+ # })
3930
+ #
3931
+ # @example Response structure
3932
+ #
3933
+ # resp.resource_evaluations #=> Array
3934
+ # resp.resource_evaluations[0].resource_evaluation_id #=> String
3935
+ # resp.resource_evaluations[0].evaluation_mode #=> String, one of "DETECTIVE", "PROACTIVE"
3936
+ # resp.resource_evaluations[0].evaluation_start_timestamp #=> Time
3937
+ # resp.next_token #=> String
3938
+ #
3939
+ # @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListResourceEvaluations AWS API Documentation
3940
+ #
3941
+ # @overload list_resource_evaluations(params = {})
3942
+ # @param [Hash] params ({})
3943
+ def list_resource_evaluations(params = {}, options = {})
3944
+ req = build_request(:list_resource_evaluations, params)
3945
+ req.send_request(options)
3946
+ end
3947
+
3818
3948
  # Lists the stored queries for a single Amazon Web Services account and
3819
3949
  # a single Amazon Web Services Region. The default is 100.
3820
3950
  #
@@ -4036,6 +4166,11 @@ module Aws::ConfigService
4036
4166
  # maximum_execution_frequency: "One_Hour", # accepts One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
4037
4167
  # config_rule_state: "ACTIVE", # accepts ACTIVE, DELETING, DELETING_RESULTS, EVALUATING
4038
4168
  # created_by: "StringWithCharLimit256",
4169
+ # evaluation_modes: [
4170
+ # {
4171
+ # mode: "DETECTIVE", # accepts DETECTIVE, PROACTIVE
4172
+ # },
4173
+ # ],
4039
4174
  # },
4040
4175
  # tags: [
4041
4176
  # {
@@ -4822,6 +4957,11 @@ module Aws::ConfigService
4822
4957
  #
4823
4958
  # </note>
4824
4959
  #
4960
+ # <note markdown="1"> To place an exception on an Amazon Web Services resource, ensure
4961
+ # remediation is set as manual remediation.
4962
+ #
4963
+ # </note>
4964
+ #
4825
4965
  # @option params [required, String] :config_rule_name
4826
4966
  # The name of the Config rule for which you want to create remediation
4827
4967
  # exception.
@@ -5320,6 +5460,82 @@ module Aws::ConfigService
5320
5460
  req.send_request(options)
5321
5461
  end
5322
5462
 
5463
+ # Runs an on-demand evaluation for the specified resource to determine
5464
+ # whether the resource details will comply with configured Config rules.
5465
+ # You can also use it for evaluation purposes. Config recommends using
5466
+ # an evaluation context. It runs an execution against the resource
5467
+ # details with all of the Config rules in your account that match with
5468
+ # the specified proactive mode and resource type.
5469
+ #
5470
+ # <note markdown="1"> Ensure you have the `cloudformation:DescribeType` role setup to
5471
+ # validate the resource type schema.
5472
+ #
5473
+ # </note>
5474
+ #
5475
+ # @option params [required, Types::ResourceDetails] :resource_details
5476
+ # Returns a `ResourceDetails` object.
5477
+ #
5478
+ # @option params [Types::EvaluationContext] :evaluation_context
5479
+ # Returns an `EvaluationContext` object.
5480
+ #
5481
+ # @option params [required, String] :evaluation_mode
5482
+ # The mode of an evaluation. The valid value for this API is
5483
+ # `Proactive`.
5484
+ #
5485
+ # @option params [Integer] :evaluation_timeout
5486
+ # The timeout for an evaluation. The default is 900 seconds. You cannot
5487
+ # specify a number greater than 3600. If you specify 0, Config uses the
5488
+ # default.
5489
+ #
5490
+ # @option params [String] :client_token
5491
+ # A client token is a unique, case-sensitive string of up to 64 ASCII
5492
+ # characters. To make an idempotent API request using one of these
5493
+ # actions, specify a client token in the request.
5494
+ #
5495
+ # <note markdown="1"> Avoid reusing the same client token for other API requests. If you
5496
+ # retry a request that completed successfully using the same client
5497
+ # token and the same parameters, the retry succeeds without performing
5498
+ # any further actions. If you retry a successful request using the same
5499
+ # client token, but one or more of the parameters are different, other
5500
+ # than the Region or Availability Zone, the retry fails with an
5501
+ # IdempotentParameterMismatch error.
5502
+ #
5503
+ # </note>
5504
+ #
5505
+ # @return [Types::StartResourceEvaluationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5506
+ #
5507
+ # * {Types::StartResourceEvaluationResponse#resource_evaluation_id #resource_evaluation_id} => String
5508
+ #
5509
+ # @example Request syntax with placeholder values
5510
+ #
5511
+ # resp = client.start_resource_evaluation({
5512
+ # resource_details: { # required
5513
+ # resource_id: "BaseResourceId", # required
5514
+ # resource_type: "StringWithCharLimit256", # required
5515
+ # resource_configuration: "ResourceConfiguration", # required
5516
+ # resource_configuration_schema_type: "CFN_RESOURCE_SCHEMA", # accepts CFN_RESOURCE_SCHEMA
5517
+ # },
5518
+ # evaluation_context: {
5519
+ # evaluation_context_identifier: "EvaluationContextIdentifier",
5520
+ # },
5521
+ # evaluation_mode: "DETECTIVE", # required, accepts DETECTIVE, PROACTIVE
5522
+ # evaluation_timeout: 1,
5523
+ # client_token: "ClientToken",
5524
+ # })
5525
+ #
5526
+ # @example Response structure
5527
+ #
5528
+ # resp.resource_evaluation_id #=> String
5529
+ #
5530
+ # @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartResourceEvaluation AWS API Documentation
5531
+ #
5532
+ # @overload start_resource_evaluation(params = {})
5533
+ # @param [Hash] params ({})
5534
+ def start_resource_evaluation(params = {}, options = {})
5535
+ req = build_request(:start_resource_evaluation, params)
5536
+ req.send_request(options)
5537
+ end
5538
+
5323
5539
  # Stops recording configurations of the Amazon Web Services resources
5324
5540
  # you have selected to record in your Amazon Web Services account.
5325
5541
  #
@@ -5421,7 +5637,7 @@ module Aws::ConfigService
5421
5637
  params: params,
5422
5638
  config: config)
5423
5639
  context[:gem_name] = 'aws-sdk-configservice'
5424
- context[:gem_version] = '1.85.0'
5640
+ context[:gem_version] = '1.86.0'
5425
5641
  Seahorse::Client::Request.new(handlers, context)
5426
5642
  end
5427
5643