aws-sdk-configservice 1.84.0 → 1.86.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-configservice/client.rb +242 -9
- data/lib/aws-sdk-configservice/client_api.rb +141 -2
- data/lib/aws-sdk-configservice/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-configservice/endpoint_provider.rb +117 -0
- data/lib/aws-sdk-configservice/endpoints.rb +1303 -0
- data/lib/aws-sdk-configservice/errors.rb +16 -0
- data/lib/aws-sdk-configservice/plugins/endpoints.rb +252 -0
- data/lib/aws-sdk-configservice/types.rb +527 -29
- data/lib/aws-sdk-configservice.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f8e9b387e52a7deb0a5a6a0e9303a741f25d3d53ff8370e668d2415e7e0adbd
|
4
|
+
data.tar.gz: 35cd3d4c7f2a2a828c69e57db1eec886a7f9087bffdcb14f540259491a35d3de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 743a378973e2c9e9406b8c893b91d84a90a15c3edac988af38e408f4379f40e7544947c3cf7aaa255d9553d40f837dfc8afa5ac743a5791c812cd1af1db75298
|
7
|
+
data.tar.gz: 60e46af4e4275a41a3985ea3928b838933592aa47935849ecfb25d240e26edfec4181c739ba8b3a644b46a98d32fdce89bd786b1238c4300edd24ac47419517f
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
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
|
+
|
9
|
+
1.85.0 (2022-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.84.0 (2022-10-19)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.86.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:configservice)
|
@@ -79,8 +79,9 @@ module Aws::ConfigService
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
84
|
+
add_plugin(Aws::ConfigService::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -297,6 +298,19 @@ module Aws::ConfigService
|
|
297
298
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
298
299
|
# requests are made, and retries are disabled.
|
299
300
|
#
|
301
|
+
# @option options [Aws::TokenProvider] :token_provider
|
302
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
303
|
+
# following classes:
|
304
|
+
#
|
305
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
306
|
+
# tokens.
|
307
|
+
#
|
308
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
309
|
+
# access token generated from `aws login`.
|
310
|
+
#
|
311
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
312
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
313
|
+
#
|
300
314
|
# @option options [Boolean] :use_dualstack_endpoint
|
301
315
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
302
316
|
# will be used if available.
|
@@ -310,6 +324,9 @@ module Aws::ConfigService
|
|
310
324
|
# When `true`, request parameters are validated before
|
311
325
|
# sending the request.
|
312
326
|
#
|
327
|
+
# @option options [Aws::ConfigService::EndpointProvider] :endpoint_provider
|
328
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::ConfigService::EndpointParameters`
|
329
|
+
#
|
313
330
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
314
331
|
# requests through. Formatted like 'http://proxy.com:123'.
|
315
332
|
#
|
@@ -1392,6 +1409,10 @@ module Aws::ConfigService
|
|
1392
1409
|
# The `nextToken` string returned on a previous page that you use to get
|
1393
1410
|
# the next page of results in a paginated response.
|
1394
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
|
+
#
|
1395
1416
|
# @return [Types::DescribeConfigRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1396
1417
|
#
|
1397
1418
|
# * {Types::DescribeConfigRulesResponse#config_rules #config_rules} => Array<Types::ConfigRule>
|
@@ -1404,6 +1425,9 @@ module Aws::ConfigService
|
|
1404
1425
|
# resp = client.describe_config_rules({
|
1405
1426
|
# config_rule_names: ["ConfigRuleName"],
|
1406
1427
|
# next_token: "String",
|
1428
|
+
# filters: {
|
1429
|
+
# evaluation_mode: "DETECTIVE", # accepts DETECTIVE, PROACTIVE
|
1430
|
+
# },
|
1407
1431
|
# })
|
1408
1432
|
#
|
1409
1433
|
# @example Response structure
|
@@ -1431,6 +1455,8 @@ module Aws::ConfigService
|
|
1431
1455
|
# resp.config_rules[0].maximum_execution_frequency #=> String, one of "One_Hour", "Three_Hours", "Six_Hours", "Twelve_Hours", "TwentyFour_Hours"
|
1432
1456
|
# resp.config_rules[0].config_rule_state #=> String, one of "ACTIVE", "DELETING", "DELETING_RESULTS", "EVALUATING"
|
1433
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"
|
1434
1460
|
# resp.next_token #=> String
|
1435
1461
|
#
|
1436
1462
|
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigRules AWS API Documentation
|
@@ -2564,7 +2590,9 @@ module Aws::ConfigService
|
|
2564
2590
|
# resp.aggregate_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.config_rule_name #=> String
|
2565
2591
|
# resp.aggregate_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_type #=> String
|
2566
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"
|
2567
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
|
2568
2596
|
# resp.aggregate_evaluation_results[0].compliance_type #=> String, one of "COMPLIANT", "NON_COMPLIANT", "NOT_APPLICABLE", "INSUFFICIENT_DATA"
|
2569
2597
|
# resp.aggregate_evaluation_results[0].result_recorded_time #=> Time
|
2570
2598
|
# resp.aggregate_evaluation_results[0].config_rule_invoked_time #=> Time
|
@@ -2896,7 +2924,9 @@ module Aws::ConfigService
|
|
2896
2924
|
# resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.config_rule_name #=> String
|
2897
2925
|
# resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_type #=> String
|
2898
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"
|
2899
2928
|
# resp.evaluation_results[0].evaluation_result_identifier.ordering_timestamp #=> Time
|
2929
|
+
# resp.evaluation_results[0].evaluation_result_identifier.resource_evaluation_id #=> String
|
2900
2930
|
# resp.evaluation_results[0].compliance_type #=> String, one of "COMPLIANT", "NON_COMPLIANT", "NOT_APPLICABLE", "INSUFFICIENT_DATA"
|
2901
2931
|
# resp.evaluation_results[0].result_recorded_time #=> Time
|
2902
2932
|
# resp.evaluation_results[0].config_rule_invoked_time #=> Time
|
@@ -2915,14 +2945,14 @@ module Aws::ConfigService
|
|
2915
2945
|
|
2916
2946
|
# Returns the evaluation results for the specified Amazon Web Services
|
2917
2947
|
# resource. The results indicate which Config rules were used to
|
2918
|
-
# evaluate the resource, when each rule was last
|
2919
|
-
# resource complies with each rule.
|
2948
|
+
# evaluate the resource, when each rule was last invoked, and whether
|
2949
|
+
# the resource complies with each rule.
|
2920
2950
|
#
|
2921
|
-
# @option params [
|
2951
|
+
# @option params [String] :resource_type
|
2922
2952
|
# The type of the Amazon Web Services resource for which you want
|
2923
2953
|
# compliance information.
|
2924
2954
|
#
|
2925
|
-
# @option params [
|
2955
|
+
# @option params [String] :resource_id
|
2926
2956
|
# The ID of the Amazon Web Services resource for which you want
|
2927
2957
|
# compliance information.
|
2928
2958
|
#
|
@@ -2936,6 +2966,15 @@ module Aws::ConfigService
|
|
2936
2966
|
# The `nextToken` string returned on a previous page that you use to get
|
2937
2967
|
# the next page of results in a paginated response.
|
2938
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
|
+
#
|
2939
2978
|
# @return [Types::GetComplianceDetailsByResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2940
2979
|
#
|
2941
2980
|
# * {Types::GetComplianceDetailsByResourceResponse#evaluation_results #evaluation_results} => Array<Types::EvaluationResult>
|
@@ -2946,10 +2985,11 @@ module Aws::ConfigService
|
|
2946
2985
|
# @example Request syntax with placeholder values
|
2947
2986
|
#
|
2948
2987
|
# resp = client.get_compliance_details_by_resource({
|
2949
|
-
# resource_type: "StringWithCharLimit256",
|
2950
|
-
# resource_id: "BaseResourceId",
|
2988
|
+
# resource_type: "StringWithCharLimit256",
|
2989
|
+
# resource_id: "BaseResourceId",
|
2951
2990
|
# compliance_types: ["COMPLIANT"], # accepts COMPLIANT, NON_COMPLIANT, NOT_APPLICABLE, INSUFFICIENT_DATA
|
2952
2991
|
# next_token: "String",
|
2992
|
+
# resource_evaluation_id: "ResourceEvaluationId",
|
2953
2993
|
# })
|
2954
2994
|
#
|
2955
2995
|
# @example Response structure
|
@@ -2958,7 +2998,9 @@ module Aws::ConfigService
|
|
2958
2998
|
# resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.config_rule_name #=> String
|
2959
2999
|
# resp.evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_type #=> String
|
2960
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"
|
2961
3002
|
# resp.evaluation_results[0].evaluation_result_identifier.ordering_timestamp #=> Time
|
3003
|
+
# resp.evaluation_results[0].evaluation_result_identifier.resource_evaluation_id #=> String
|
2962
3004
|
# resp.evaluation_results[0].compliance_type #=> String, one of "COMPLIANT", "NON_COMPLIANT", "NOT_APPLICABLE", "INSUFFICIENT_DATA"
|
2963
3005
|
# resp.evaluation_results[0].result_recorded_time #=> Time
|
2964
3006
|
# resp.evaluation_results[0].config_rule_invoked_time #=> Time
|
@@ -3089,7 +3131,9 @@ module Aws::ConfigService
|
|
3089
3131
|
# resp.conformance_pack_rule_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.config_rule_name #=> String
|
3090
3132
|
# resp.conformance_pack_rule_evaluation_results[0].evaluation_result_identifier.evaluation_result_qualifier.resource_type #=> String
|
3091
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"
|
3092
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
|
3093
3137
|
# resp.conformance_pack_rule_evaluation_results[0].config_rule_invoked_time #=> Time
|
3094
3138
|
# resp.conformance_pack_rule_evaluation_results[0].result_recorded_time #=> Time
|
3095
3139
|
# resp.conformance_pack_rule_evaluation_results[0].annotation #=> String
|
@@ -3528,6 +3572,56 @@ module Aws::ConfigService
|
|
3528
3572
|
req.send_request(options)
|
3529
3573
|
end
|
3530
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
|
+
|
3531
3625
|
# Returns the details of a specific stored query.
|
3532
3626
|
#
|
3533
3627
|
# @option params [required, String] :query_name
|
@@ -3798,6 +3892,59 @@ module Aws::ConfigService
|
|
3798
3892
|
req.send_request(options)
|
3799
3893
|
end
|
3800
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<Types::ResourceEvaluation>
|
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
|
+
|
3801
3948
|
# Lists the stored queries for a single Amazon Web Services account and
|
3802
3949
|
# a single Amazon Web Services Region. The default is 100.
|
3803
3950
|
#
|
@@ -4019,6 +4166,11 @@ module Aws::ConfigService
|
|
4019
4166
|
# maximum_execution_frequency: "One_Hour", # accepts One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
|
4020
4167
|
# config_rule_state: "ACTIVE", # accepts ACTIVE, DELETING, DELETING_RESULTS, EVALUATING
|
4021
4168
|
# created_by: "StringWithCharLimit256",
|
4169
|
+
# evaluation_modes: [
|
4170
|
+
# {
|
4171
|
+
# mode: "DETECTIVE", # accepts DETECTIVE, PROACTIVE
|
4172
|
+
# },
|
4173
|
+
# ],
|
4022
4174
|
# },
|
4023
4175
|
# tags: [
|
4024
4176
|
# {
|
@@ -4805,6 +4957,11 @@ module Aws::ConfigService
|
|
4805
4957
|
#
|
4806
4958
|
# </note>
|
4807
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
|
+
#
|
4808
4965
|
# @option params [required, String] :config_rule_name
|
4809
4966
|
# The name of the Config rule for which you want to create remediation
|
4810
4967
|
# exception.
|
@@ -5303,6 +5460,82 @@ module Aws::ConfigService
|
|
5303
5460
|
req.send_request(options)
|
5304
5461
|
end
|
5305
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
|
+
|
5306
5539
|
# Stops recording configurations of the Amazon Web Services resources
|
5307
5540
|
# you have selected to record in your Amazon Web Services account.
|
5308
5541
|
#
|
@@ -5404,7 +5637,7 @@ module Aws::ConfigService
|
|
5404
5637
|
params: params,
|
5405
5638
|
config: config)
|
5406
5639
|
context[:gem_name] = 'aws-sdk-configservice'
|
5407
|
-
context[:gem_version] = '1.
|
5640
|
+
context[:gem_version] = '1.86.0'
|
5408
5641
|
Seahorse::Client::Request.new(handlers, context)
|
5409
5642
|
end
|
5410
5643
|
|