aws-sdk-configservice 1.39.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-configservice.rb +1 -1
- data/lib/aws-sdk-configservice/client.rb +158 -28
- data/lib/aws-sdk-configservice/client_api.rb +39 -0
- data/lib/aws-sdk-configservice/types.rb +140 -24
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20174f66db4370a040a0bbad4cd9108fbcf8757c
|
4
|
+
data.tar.gz: 2010303fb9082e37fc764180d8b83294cf2423b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af118b53f744c8b7d9a8bea5a15a4cb5d942fce4e6945d594f47958229a6609a01e00b8228cc8bedc1692b2d8fd4d85764f3211f6639adaadae7d38f4fc40d7c
|
7
|
+
data.tar.gz: 24e469d154866a3ef456886c854136d2dfe733021c6e99bd353c18512e0b43b8187990d8c5446de1d333edb6fd1c300d60600bcbc34eee91868ac03afb6103d7
|
@@ -515,8 +515,9 @@ module Aws::ConfigService
|
|
515
515
|
req.send_request(options)
|
516
516
|
end
|
517
517
|
|
518
|
-
# Deletes the specified conformance pack and all the AWS Config rules
|
519
|
-
# and all evaluation results within that
|
518
|
+
# Deletes the specified conformance pack and all the AWS Config rules,
|
519
|
+
# remediation actions, and all evaluation results within that
|
520
|
+
# conformance pack.
|
520
521
|
#
|
521
522
|
# AWS Config sets the conformance pack to `DELETE_IN_PROGRESS` until the
|
522
523
|
# deletion is complete. You cannot update a conformance pack while it is
|
@@ -749,6 +750,35 @@ module Aws::ConfigService
|
|
749
750
|
req.send_request(options)
|
750
751
|
end
|
751
752
|
|
753
|
+
# Records the configuration state for a custom resource that has been
|
754
|
+
# deleted. This API records a new ConfigurationItem with a
|
755
|
+
# ResourceDeleted status. You can retrieve the ConfigurationItems
|
756
|
+
# recorded for this resource in your AWS Config History.
|
757
|
+
#
|
758
|
+
# @option params [required, String] :resource_type
|
759
|
+
# The type of the resource.
|
760
|
+
#
|
761
|
+
# @option params [required, String] :resource_id
|
762
|
+
# Unique identifier of the resource.
|
763
|
+
#
|
764
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
765
|
+
#
|
766
|
+
# @example Request syntax with placeholder values
|
767
|
+
#
|
768
|
+
# resp = client.delete_resource_config({
|
769
|
+
# resource_type: "ResourceTypeString", # required
|
770
|
+
# resource_id: "ResourceId", # required
|
771
|
+
# })
|
772
|
+
#
|
773
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteResourceConfig AWS API Documentation
|
774
|
+
#
|
775
|
+
# @overload delete_resource_config(params = {})
|
776
|
+
# @param [Hash] params ({})
|
777
|
+
def delete_resource_config(params = {}, options = {})
|
778
|
+
req = build_request(:delete_resource_config, params)
|
779
|
+
req.send_request(options)
|
780
|
+
end
|
781
|
+
|
752
782
|
# Deletes the retention configuration.
|
753
783
|
#
|
754
784
|
# @option params [required, String] :retention_configuration_name
|
@@ -1394,10 +1424,9 @@ module Aws::ConfigService
|
|
1394
1424
|
req.send_request(options)
|
1395
1425
|
end
|
1396
1426
|
|
1397
|
-
# Returns compliance
|
1427
|
+
# Returns compliance details for each rule in that conformance pack.
|
1398
1428
|
#
|
1399
|
-
# <note markdown="1"> You must provide exact rule names
|
1400
|
-
# evaluation results due to insufficient data.
|
1429
|
+
# <note markdown="1"> You must provide exact rule names.
|
1401
1430
|
#
|
1402
1431
|
# </note>
|
1403
1432
|
#
|
@@ -1452,11 +1481,15 @@ module Aws::ConfigService
|
|
1452
1481
|
|
1453
1482
|
# Provides one or more conformance packs deployment status.
|
1454
1483
|
#
|
1484
|
+
# <note markdown="1"> If there are no conformance packs then you will see an empty result.
|
1485
|
+
#
|
1486
|
+
# </note>
|
1487
|
+
#
|
1455
1488
|
# @option params [Array<String>] :conformance_pack_names
|
1456
1489
|
# Comma-separated list of conformance pack names.
|
1457
1490
|
#
|
1458
1491
|
# @option params [Integer] :limit
|
1459
|
-
# The maximum number of conformance packs returned on each page.
|
1492
|
+
# The maximum number of conformance packs status returned on each page.
|
1460
1493
|
#
|
1461
1494
|
# @option params [String] :next_token
|
1462
1495
|
# The `nextToken` string returned in a previous request that you use to
|
@@ -1844,10 +1877,13 @@ module Aws::ConfigService
|
|
1844
1877
|
# Returns a list of organization conformance packs.
|
1845
1878
|
#
|
1846
1879
|
# <note markdown="1"> When you specify the limit and the next token, you receive a paginated
|
1847
|
-
# response.
|
1848
|
-
#
|
1849
|
-
#
|
1850
|
-
#
|
1880
|
+
# response.
|
1881
|
+
#
|
1882
|
+
# Limit and next token are not applicable if you specify organization
|
1883
|
+
# conformance packs names. They are only applicable, when you request
|
1884
|
+
# all the organization conformance packs.
|
1885
|
+
#
|
1886
|
+
# Only a master account can call this API.
|
1851
1887
|
#
|
1852
1888
|
# </note>
|
1853
1889
|
#
|
@@ -2697,11 +2733,19 @@ module Aws::ConfigService
|
|
2697
2733
|
req.send_request(options)
|
2698
2734
|
end
|
2699
2735
|
|
2736
|
+
# Returns compliance details for the conformance pack based on the
|
2737
|
+
# cumulative compliance results of all the rules in that conformance
|
2738
|
+
# pack.
|
2739
|
+
#
|
2700
2740
|
# @option params [required, Array<String>] :conformance_pack_names
|
2741
|
+
# Names of conformance packs.
|
2701
2742
|
#
|
2702
2743
|
# @option params [Integer] :limit
|
2744
|
+
# The maximum number of conformance packs returned on each page.
|
2703
2745
|
#
|
2704
2746
|
# @option params [String] :next_token
|
2747
|
+
# The nextToken string returned on a previous page that you use to get
|
2748
|
+
# the next page of results in a paginated response.
|
2705
2749
|
#
|
2706
2750
|
# @return [Types::GetConformancePackComplianceSummaryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2707
2751
|
#
|
@@ -3518,7 +3562,7 @@ module Aws::ConfigService
|
|
3518
3562
|
|
3519
3563
|
# Creates or updates a conformance pack. A conformance pack is a
|
3520
3564
|
# collection of AWS Config rules that can be easily deployed in an
|
3521
|
-
# account and a region.
|
3565
|
+
# account and a region and across AWS Organization.
|
3522
3566
|
#
|
3523
3567
|
# This API creates a service linked role
|
3524
3568
|
# `AWSServiceRoleForConfigConforms` in your account. The service linked
|
@@ -3535,10 +3579,10 @@ module Aws::ConfigService
|
|
3535
3579
|
# Name of the conformance pack you want to create.
|
3536
3580
|
#
|
3537
3581
|
# @option params [String] :template_s3_uri
|
3538
|
-
# Location of file containing the template body
|
3539
|
-
#
|
3540
|
-
# located in an Amazon S3 bucket in
|
3541
|
-
# pack.
|
3582
|
+
# Location of file containing the template body
|
3583
|
+
# (`s3://bucketname/prefix`). The uri must point to the conformance pack
|
3584
|
+
# template (max size: 300 KB) that is located in an Amazon S3 bucket in
|
3585
|
+
# the same region as the conformance pack.
|
3542
3586
|
#
|
3543
3587
|
# <note markdown="1"> You must have access to read Amazon S3 bucket.
|
3544
3588
|
#
|
@@ -3550,14 +3594,13 @@ module Aws::ConfigService
|
|
3550
3594
|
# maximum length of 51,200 bytes.
|
3551
3595
|
#
|
3552
3596
|
# <note markdown="1"> You can only use a YAML template with one resource type, that is,
|
3553
|
-
# config rule.
|
3597
|
+
# config rule and a remediation action.
|
3554
3598
|
#
|
3555
3599
|
# </note>
|
3556
3600
|
#
|
3557
3601
|
# @option params [required, String] :delivery_s3_bucket
|
3558
|
-
#
|
3559
|
-
#
|
3560
|
-
# processing conformance pack template.
|
3602
|
+
# AWS Config stores intermediate files while processing conformance pack
|
3603
|
+
# template.
|
3561
3604
|
#
|
3562
3605
|
# @option params [String] :delivery_s3_key_prefix
|
3563
3606
|
# The prefix for the Amazon S3 bucket.
|
@@ -3797,19 +3840,26 @@ module Aws::ConfigService
|
|
3797
3840
|
# Deploys conformance packs across member accounts in an AWS
|
3798
3841
|
# Organization.
|
3799
3842
|
#
|
3800
|
-
# This API enables organization service access
|
3843
|
+
# This API enables organization service access for
|
3844
|
+
# `config-multiaccountsetup.amazonaws.com` through the
|
3801
3845
|
# `EnableAWSServiceAccess` action and creates a service linked role
|
3802
|
-
# AWSServiceRoleForConfigMultiAccountSetup in the master account of
|
3803
|
-
# organization. The service linked role is created only when the
|
3804
|
-
# does not exist in the master account. AWS Config verifies the
|
3846
|
+
# `AWSServiceRoleForConfigMultiAccountSetup` in the master account of
|
3847
|
+
# your organization. The service linked role is created only when the
|
3848
|
+
# role does not exist in the master account. AWS Config verifies the
|
3805
3849
|
# existence of role with GetRole action.
|
3806
3850
|
#
|
3807
|
-
# <note markdown="1">
|
3808
|
-
#
|
3809
|
-
# You must specify either the `TemplateS3Uri` or the `TemplateBody`
|
3851
|
+
# <note markdown="1"> You must specify either the `TemplateS3Uri` or the `TemplateBody`
|
3810
3852
|
# parameter, but not both. If you provide both AWS Config uses the
|
3811
3853
|
# `TemplateS3Uri` parameter and ignores the `TemplateBody` parameter.
|
3812
3854
|
#
|
3855
|
+
# AWS Config sets the state of a conformance pack to
|
3856
|
+
# CREATE\_IN\_PROGRESS and UPDATE\_IN\_PROGRESS until the confomance
|
3857
|
+
# pack is created or updated. You cannot update a conformance pack while
|
3858
|
+
# it is in this state.
|
3859
|
+
#
|
3860
|
+
# You can create 6 conformance packs with 25 AWS Config rules in each
|
3861
|
+
# pack.
|
3862
|
+
#
|
3813
3863
|
# </note>
|
3814
3864
|
#
|
3815
3865
|
# @option params [required, String] :organization_conformance_pack_name
|
@@ -3817,7 +3867,7 @@ module Aws::ConfigService
|
|
3817
3867
|
#
|
3818
3868
|
# @option params [String] :template_s3_uri
|
3819
3869
|
# Location of file containing the template body. The uri must point to
|
3820
|
-
# the conformance pack template (max size: 300
|
3870
|
+
# the conformance pack template (max size: 300 KB).
|
3821
3871
|
#
|
3822
3872
|
# <note markdown="1"> You must have access to read Amazon S3 bucket.
|
3823
3873
|
#
|
@@ -3833,6 +3883,15 @@ module Aws::ConfigService
|
|
3833
3883
|
# evaluation results. AWS Config stores intermediate files while
|
3834
3884
|
# processing conformance pack template.
|
3835
3885
|
#
|
3886
|
+
# The delivery bucket name should start with awsconfigconforms. For
|
3887
|
+
# example: "Resource": "arn:aws:s3:::your\_bucket\_name/*". For
|
3888
|
+
# more information, see [Permissions for cross account bucket
|
3889
|
+
# access][1].
|
3890
|
+
#
|
3891
|
+
#
|
3892
|
+
#
|
3893
|
+
# [1]: https://docs.aws.amazon.com/config/latest/developerguide/conformance-pack-organization-apis.html
|
3894
|
+
#
|
3836
3895
|
# @option params [String] :delivery_s3_key_prefix
|
3837
3896
|
# The prefix for the Amazon S3 bucket.
|
3838
3897
|
#
|
@@ -4015,6 +4074,77 @@ module Aws::ConfigService
|
|
4015
4074
|
req.send_request(options)
|
4016
4075
|
end
|
4017
4076
|
|
4077
|
+
# Records the configuration state for the resource provided in the
|
4078
|
+
# request. The configuration state of a resource is represented in AWS
|
4079
|
+
# Config as Configuration Items. Once this API records the configuration
|
4080
|
+
# item, you can retrieve the list of configuration items for the custom
|
4081
|
+
# resource type using existing AWS Config APIs.
|
4082
|
+
#
|
4083
|
+
# <note markdown="1"> The custom resource type must be registered with AWS CloudFormation.
|
4084
|
+
# This API accepts the configuration item registered with AWS
|
4085
|
+
# CloudFormation.
|
4086
|
+
#
|
4087
|
+
# When you call this API, AWS Config only stores configuration state of
|
4088
|
+
# the resource provided in the request. This API does not change or
|
4089
|
+
# remediate the configuration of the resource.
|
4090
|
+
#
|
4091
|
+
# </note>
|
4092
|
+
#
|
4093
|
+
# @option params [required, String] :resource_type
|
4094
|
+
# The type of the resource. The custom resource type must be registered
|
4095
|
+
# with AWS CloudFormation.
|
4096
|
+
#
|
4097
|
+
# <note markdown="1"> You cannot use the organization names “aws”, “amzn”, “amazon”,
|
4098
|
+
# “alexa”, “custom” with custom resource types. It is the first part of
|
4099
|
+
# the ResourceType up to the first ::.
|
4100
|
+
#
|
4101
|
+
# </note>
|
4102
|
+
#
|
4103
|
+
# @option params [required, String] :schema_version_id
|
4104
|
+
# Version of the schema registered for the ResourceType in AWS
|
4105
|
+
# CloudFormation.
|
4106
|
+
#
|
4107
|
+
# @option params [required, String] :resource_id
|
4108
|
+
# Unique identifier of the resource.
|
4109
|
+
#
|
4110
|
+
# @option params [String] :resource_name
|
4111
|
+
# Name of the resource.
|
4112
|
+
#
|
4113
|
+
# @option params [required, String] :configuration
|
4114
|
+
# The configuration object of the resource in valid JSON format. It must
|
4115
|
+
# match the schema registered with AWS CloudFormation.
|
4116
|
+
#
|
4117
|
+
# <note markdown="1"> The configuration JSON must not exceed 64 KB.
|
4118
|
+
#
|
4119
|
+
# </note>
|
4120
|
+
#
|
4121
|
+
# @option params [Hash<String,String>] :tags
|
4122
|
+
# Tags associated with the resource.
|
4123
|
+
#
|
4124
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4125
|
+
#
|
4126
|
+
# @example Request syntax with placeholder values
|
4127
|
+
#
|
4128
|
+
# resp = client.put_resource_config({
|
4129
|
+
# resource_type: "ResourceTypeString", # required
|
4130
|
+
# schema_version_id: "SchemaVersionId", # required
|
4131
|
+
# resource_id: "ResourceId", # required
|
4132
|
+
# resource_name: "ResourceName",
|
4133
|
+
# configuration: "Configuration", # required
|
4134
|
+
# tags: {
|
4135
|
+
# "Name" => "Value",
|
4136
|
+
# },
|
4137
|
+
# })
|
4138
|
+
#
|
4139
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutResourceConfig AWS API Documentation
|
4140
|
+
#
|
4141
|
+
# @overload put_resource_config(params = {})
|
4142
|
+
# @param [Hash] params ({})
|
4143
|
+
def put_resource_config(params = {}, options = {})
|
4144
|
+
req = build_request(:put_resource_config, params)
|
4145
|
+
req.send_request(options)
|
4146
|
+
end
|
4147
|
+
|
4018
4148
|
# Creates and updates the retention configuration with details about
|
4019
4149
|
# retention period (number of days) that AWS Config stores your
|
4020
4150
|
# historical information. The API creates the `RetentionConfiguration`
|
@@ -4347,7 +4477,7 @@ module Aws::ConfigService
|
|
4347
4477
|
params: params,
|
4348
4478
|
config: config)
|
4349
4479
|
context[:gem_name] = 'aws-sdk-configservice'
|
4350
|
-
context[:gem_version] = '1.
|
4480
|
+
context[:gem_version] = '1.40.0'
|
4351
4481
|
Seahorse::Client::Request.new(handlers, context)
|
4352
4482
|
end
|
4353
4483
|
|
@@ -132,6 +132,7 @@ module Aws::ConfigService
|
|
132
132
|
DeleteRemediationConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteRemediationConfigurationResponse')
|
133
133
|
DeleteRemediationExceptionsRequest = Shapes::StructureShape.new(name: 'DeleteRemediationExceptionsRequest')
|
134
134
|
DeleteRemediationExceptionsResponse = Shapes::StructureShape.new(name: 'DeleteRemediationExceptionsResponse')
|
135
|
+
DeleteResourceConfigRequest = Shapes::StructureShape.new(name: 'DeleteResourceConfigRequest')
|
135
136
|
DeleteRetentionConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteRetentionConfigurationRequest')
|
136
137
|
DeliverConfigSnapshotRequest = Shapes::StructureShape.new(name: 'DeliverConfigSnapshotRequest')
|
137
138
|
DeliverConfigSnapshotResponse = Shapes::StructureShape.new(name: 'DeliverConfigSnapshotResponse')
|
@@ -273,6 +274,7 @@ module Aws::ConfigService
|
|
273
274
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
274
275
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
275
276
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
277
|
+
MaxActiveResourcesExceededException = Shapes::StructureShape.new(name: 'MaxActiveResourcesExceededException')
|
276
278
|
MaxNumberOfConfigRulesExceededException = Shapes::StructureShape.new(name: 'MaxNumberOfConfigRulesExceededException')
|
277
279
|
MaxNumberOfConfigurationRecordersExceededException = Shapes::StructureShape.new(name: 'MaxNumberOfConfigurationRecordersExceededException')
|
278
280
|
MaxNumberOfConformancePacksExceededException = Shapes::StructureShape.new(name: 'MaxNumberOfConformancePacksExceededException')
|
@@ -357,6 +359,7 @@ module Aws::ConfigService
|
|
357
359
|
PutRemediationConfigurationsResponse = Shapes::StructureShape.new(name: 'PutRemediationConfigurationsResponse')
|
358
360
|
PutRemediationExceptionsRequest = Shapes::StructureShape.new(name: 'PutRemediationExceptionsRequest')
|
359
361
|
PutRemediationExceptionsResponse = Shapes::StructureShape.new(name: 'PutRemediationExceptionsResponse')
|
362
|
+
PutResourceConfigRequest = Shapes::StructureShape.new(name: 'PutResourceConfigRequest')
|
360
363
|
PutRetentionConfigurationRequest = Shapes::StructureShape.new(name: 'PutRetentionConfigurationRequest')
|
361
364
|
PutRetentionConfigurationResponse = Shapes::StructureShape.new(name: 'PutRetentionConfigurationResponse')
|
362
365
|
QueryInfo = Shapes::StructureShape.new(name: 'QueryInfo')
|
@@ -405,6 +408,7 @@ module Aws::ConfigService
|
|
405
408
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
406
409
|
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
407
410
|
ResourceTypeList = Shapes::ListShape.new(name: 'ResourceTypeList')
|
411
|
+
ResourceTypeString = Shapes::StringShape.new(name: 'ResourceTypeString')
|
408
412
|
ResourceTypes = Shapes::ListShape.new(name: 'ResourceTypes')
|
409
413
|
ResourceTypesScope = Shapes::ListShape.new(name: 'ResourceTypesScope')
|
410
414
|
ResourceValue = Shapes::StructureShape.new(name: 'ResourceValue')
|
@@ -416,6 +420,7 @@ module Aws::ConfigService
|
|
416
420
|
RetentionConfigurationNameList = Shapes::ListShape.new(name: 'RetentionConfigurationNameList')
|
417
421
|
RetentionPeriodInDays = Shapes::IntegerShape.new(name: 'RetentionPeriodInDays')
|
418
422
|
RuleLimit = Shapes::IntegerShape.new(name: 'RuleLimit')
|
423
|
+
SchemaVersionId = Shapes::StringShape.new(name: 'SchemaVersionId')
|
419
424
|
Scope = Shapes::StructureShape.new(name: 'Scope')
|
420
425
|
SelectResourceConfigRequest = Shapes::StructureShape.new(name: 'SelectResourceConfigRequest')
|
421
426
|
SelectResourceConfigResponse = Shapes::StructureShape.new(name: 'SelectResourceConfigResponse')
|
@@ -823,6 +828,10 @@ module Aws::ConfigService
|
|
823
828
|
DeleteRemediationExceptionsResponse.add_member(:failed_batches, Shapes::ShapeRef.new(shape: FailedDeleteRemediationExceptionsBatches, location_name: "FailedBatches"))
|
824
829
|
DeleteRemediationExceptionsResponse.struct_class = Types::DeleteRemediationExceptionsResponse
|
825
830
|
|
831
|
+
DeleteResourceConfigRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceTypeString, required: true, location_name: "ResourceType"))
|
832
|
+
DeleteResourceConfigRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ResourceId"))
|
833
|
+
DeleteResourceConfigRequest.struct_class = Types::DeleteResourceConfigRequest
|
834
|
+
|
826
835
|
DeleteRetentionConfigurationRequest.add_member(:retention_configuration_name, Shapes::ShapeRef.new(shape: RetentionConfigurationName, required: true, location_name: "RetentionConfigurationName"))
|
827
836
|
DeleteRetentionConfigurationRequest.struct_class = Types::DeleteRetentionConfigurationRequest
|
828
837
|
|
@@ -1472,6 +1481,14 @@ module Aws::ConfigService
|
|
1472
1481
|
PutRemediationExceptionsResponse.add_member(:failed_batches, Shapes::ShapeRef.new(shape: FailedRemediationExceptionBatches, location_name: "FailedBatches"))
|
1473
1482
|
PutRemediationExceptionsResponse.struct_class = Types::PutRemediationExceptionsResponse
|
1474
1483
|
|
1484
|
+
PutResourceConfigRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceTypeString, required: true, location_name: "ResourceType"))
|
1485
|
+
PutResourceConfigRequest.add_member(:schema_version_id, Shapes::ShapeRef.new(shape: SchemaVersionId, required: true, location_name: "SchemaVersionId"))
|
1486
|
+
PutResourceConfigRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ResourceId"))
|
1487
|
+
PutResourceConfigRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ResourceName"))
|
1488
|
+
PutResourceConfigRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: Configuration, required: true, location_name: "Configuration"))
|
1489
|
+
PutResourceConfigRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
1490
|
+
PutResourceConfigRequest.struct_class = Types::PutResourceConfigRequest
|
1491
|
+
|
1475
1492
|
PutRetentionConfigurationRequest.add_member(:retention_period_in_days, Shapes::ShapeRef.new(shape: RetentionPeriodInDays, required: true, location_name: "RetentionPeriodInDays"))
|
1476
1493
|
PutRetentionConfigurationRequest.struct_class = Types::PutRetentionConfigurationRequest
|
1477
1494
|
|
@@ -1850,6 +1867,16 @@ module Aws::ConfigService
|
|
1850
1867
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchRemediationExceptionException)
|
1851
1868
|
end)
|
1852
1869
|
|
1870
|
+
api.add_operation(:delete_resource_config, Seahorse::Model::Operation.new.tap do |o|
|
1871
|
+
o.name = "DeleteResourceConfig"
|
1872
|
+
o.http_method = "POST"
|
1873
|
+
o.http_request_uri = "/"
|
1874
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteResourceConfigRequest)
|
1875
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1876
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1877
|
+
o.errors << Shapes::ShapeRef.new(shape: NoRunningConfigurationRecorderException)
|
1878
|
+
end)
|
1879
|
+
|
1853
1880
|
api.add_operation(:delete_retention_configuration, Seahorse::Model::Operation.new.tap do |o|
|
1854
1881
|
o.name = "DeleteRetentionConfiguration"
|
1855
1882
|
o.http_method = "POST"
|
@@ -2478,6 +2505,18 @@ module Aws::ConfigService
|
|
2478
2505
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
2479
2506
|
end)
|
2480
2507
|
|
2508
|
+
api.add_operation(:put_resource_config, Seahorse::Model::Operation.new.tap do |o|
|
2509
|
+
o.name = "PutResourceConfig"
|
2510
|
+
o.http_method = "POST"
|
2511
|
+
o.http_request_uri = "/"
|
2512
|
+
o.input = Shapes::ShapeRef.new(shape: PutResourceConfigRequest)
|
2513
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2514
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
2515
|
+
o.errors << Shapes::ShapeRef.new(shape: InsufficientPermissionsException)
|
2516
|
+
o.errors << Shapes::ShapeRef.new(shape: NoRunningConfigurationRecorderException)
|
2517
|
+
o.errors << Shapes::ShapeRef.new(shape: MaxActiveResourcesExceededException)
|
2518
|
+
end)
|
2519
|
+
|
2481
2520
|
api.add_operation(:put_retention_configuration, Seahorse::Model::Operation.new.tap do |o|
|
2482
2521
|
o.name = "PutRetentionConfiguration"
|
2483
2522
|
o.http_method = "POST"
|
@@ -1146,11 +1146,14 @@ module Aws::ConfigService
|
|
1146
1146
|
# information about CloudTrail, see [What Is AWS CloudTrail][1].
|
1147
1147
|
#
|
1148
1148
|
# An empty field indicates that the current configuration was not
|
1149
|
-
# initiated by any event.
|
1149
|
+
# initiated by any event. As of Version 1.3, the relatedEvents field
|
1150
|
+
# is empty. You can access the [LookupEvents API][2] in the *AWS
|
1151
|
+
# CloudTrail API Reference* to retrieve the events for the resource.
|
1150
1152
|
#
|
1151
1153
|
#
|
1152
1154
|
#
|
1153
1155
|
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html
|
1156
|
+
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_LookupEvents.html
|
1154
1157
|
# @return [Array<String>]
|
1155
1158
|
#
|
1156
1159
|
# @!attribute [rw] relationships
|
@@ -1309,10 +1312,15 @@ module Aws::ConfigService
|
|
1309
1312
|
include Aws::Structure
|
1310
1313
|
end
|
1311
1314
|
|
1315
|
+
# Summary includes the name and status of the conformance pack.
|
1316
|
+
#
|
1312
1317
|
# @!attribute [rw] conformance_pack_name
|
1318
|
+
# The name of the conformance pack name.
|
1313
1319
|
# @return [String]
|
1314
1320
|
#
|
1315
1321
|
# @!attribute [rw] conformance_pack_compliance_status
|
1322
|
+
# The status of the conformance pack. The allowed values are COMPLIANT
|
1323
|
+
# and NON\_COMPLIANT.
|
1316
1324
|
# @return [String]
|
1317
1325
|
#
|
1318
1326
|
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConformancePackComplianceSummary AWS API Documentation
|
@@ -1324,8 +1332,8 @@ module Aws::ConfigService
|
|
1324
1332
|
end
|
1325
1333
|
|
1326
1334
|
# Returns details of a conformance pack. A conformance pack is a
|
1327
|
-
# collection of AWS Config rules that can be
|
1328
|
-
# account and a region.
|
1335
|
+
# collection of AWS Config rules and remediation actions that can be
|
1336
|
+
# easily deployed in an account and a region.
|
1329
1337
|
#
|
1330
1338
|
# @!attribute [rw] conformance_pack_name
|
1331
1339
|
# Name of the conformance pack.
|
@@ -1340,13 +1348,13 @@ module Aws::ConfigService
|
|
1340
1348
|
# @return [String]
|
1341
1349
|
#
|
1342
1350
|
# @!attribute [rw] delivery_s3_bucket
|
1343
|
-
#
|
1344
|
-
#
|
1345
|
-
#
|
1351
|
+
# Conformance pack template that is used to create a pack. The
|
1352
|
+
# delivery bucket name should start with awsconfigconforms. For
|
1353
|
+
# example: "Resource": "arn:aws:s3:::your\_bucket\_name/*".
|
1346
1354
|
# @return [String]
|
1347
1355
|
#
|
1348
1356
|
# @!attribute [rw] delivery_s3_key_prefix
|
1349
|
-
#
|
1357
|
+
# The prefix for the Amazon S3 bucket.
|
1350
1358
|
# @return [String]
|
1351
1359
|
#
|
1352
1360
|
# @!attribute [rw] conformance_pack_input_parameters
|
@@ -1358,6 +1366,7 @@ module Aws::ConfigService
|
|
1358
1366
|
# @return [Time]
|
1359
1367
|
#
|
1360
1368
|
# @!attribute [rw] created_by
|
1369
|
+
# AWS service that created the conformance pack.
|
1361
1370
|
# @return [String]
|
1362
1371
|
#
|
1363
1372
|
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConformancePackDetail AWS API Documentation
|
@@ -1404,6 +1413,11 @@ module Aws::ConfigService
|
|
1404
1413
|
#
|
1405
1414
|
# @!attribute [rw] resource_ids
|
1406
1415
|
# Filters the results by resource IDs.
|
1416
|
+
#
|
1417
|
+
# <note markdown="1"> This is valid only when you provide resource type. If there is no
|
1418
|
+
# resource type, you will see an error.
|
1419
|
+
#
|
1420
|
+
# </note>
|
1407
1421
|
# @return [Array<String>]
|
1408
1422
|
#
|
1409
1423
|
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConformancePackEvaluationFilters AWS API Documentation
|
@@ -1421,9 +1435,8 @@ module Aws::ConfigService
|
|
1421
1435
|
# conformance pack, related time stamps, and supplementary information.
|
1422
1436
|
#
|
1423
1437
|
# @!attribute [rw] compliance_type
|
1424
|
-
#
|
1425
|
-
#
|
1426
|
-
# The allowed values are `COMPLIANT` and `NON_COMPLIANT`.
|
1438
|
+
# The compliance type. The allowed values are `COMPLIANT` and
|
1439
|
+
# `NON_COMPLIANT`.
|
1427
1440
|
# @return [String]
|
1428
1441
|
#
|
1429
1442
|
# @!attribute [rw] evaluation_result_identifier
|
@@ -1488,11 +1501,11 @@ module Aws::ConfigService
|
|
1488
1501
|
# compliance types.
|
1489
1502
|
#
|
1490
1503
|
# @!attribute [rw] config_rule_name
|
1491
|
-
#
|
1504
|
+
# Name of the config rule.
|
1492
1505
|
# @return [String]
|
1493
1506
|
#
|
1494
1507
|
# @!attribute [rw] compliance_type
|
1495
|
-
#
|
1508
|
+
# Compliance of the AWS Config rule
|
1496
1509
|
#
|
1497
1510
|
# The allowed values are `COMPLIANT` and `NON_COMPLIANT`.
|
1498
1511
|
# @return [String]
|
@@ -1536,7 +1549,7 @@ module Aws::ConfigService
|
|
1536
1549
|
# * DELETE\_IN\_PROGRESS when a conformance pack deletion is in
|
1537
1550
|
# progress.
|
1538
1551
|
#
|
1539
|
-
# * DELETE\_FAILED when a conformance pack deletion failed
|
1552
|
+
# * DELETE\_FAILED when a conformance pack deletion failed in your
|
1540
1553
|
# account.
|
1541
1554
|
# @return [String]
|
1542
1555
|
#
|
@@ -1851,6 +1864,30 @@ module Aws::ConfigService
|
|
1851
1864
|
include Aws::Structure
|
1852
1865
|
end
|
1853
1866
|
|
1867
|
+
# @note When making an API call, you may pass DeleteResourceConfigRequest
|
1868
|
+
# data as a hash:
|
1869
|
+
#
|
1870
|
+
# {
|
1871
|
+
# resource_type: "ResourceTypeString", # required
|
1872
|
+
# resource_id: "ResourceId", # required
|
1873
|
+
# }
|
1874
|
+
#
|
1875
|
+
# @!attribute [rw] resource_type
|
1876
|
+
# The type of the resource.
|
1877
|
+
# @return [String]
|
1878
|
+
#
|
1879
|
+
# @!attribute [rw] resource_id
|
1880
|
+
# Unique identifier of the resource.
|
1881
|
+
# @return [String]
|
1882
|
+
#
|
1883
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteResourceConfigRequest AWS API Documentation
|
1884
|
+
#
|
1885
|
+
class DeleteResourceConfigRequest < Struct.new(
|
1886
|
+
:resource_type,
|
1887
|
+
:resource_id)
|
1888
|
+
include Aws::Structure
|
1889
|
+
end
|
1890
|
+
|
1854
1891
|
# @note When making an API call, you may pass DeleteRetentionConfigurationRequest
|
1855
1892
|
# data as a hash:
|
1856
1893
|
#
|
@@ -2600,7 +2637,8 @@ module Aws::ConfigService
|
|
2600
2637
|
# @return [Array<String>]
|
2601
2638
|
#
|
2602
2639
|
# @!attribute [rw] limit
|
2603
|
-
# The maximum number of conformance packs returned on each
|
2640
|
+
# The maximum number of conformance packs status returned on each
|
2641
|
+
# page.
|
2604
2642
|
# @return [Integer]
|
2605
2643
|
#
|
2606
2644
|
# @!attribute [rw] next_token
|
@@ -3979,12 +4017,16 @@ module Aws::ConfigService
|
|
3979
4017
|
# }
|
3980
4018
|
#
|
3981
4019
|
# @!attribute [rw] conformance_pack_names
|
4020
|
+
# Names of conformance packs.
|
3982
4021
|
# @return [Array<String>]
|
3983
4022
|
#
|
3984
4023
|
# @!attribute [rw] limit
|
4024
|
+
# The maximum number of conformance packs returned on each page.
|
3985
4025
|
# @return [Integer]
|
3986
4026
|
#
|
3987
4027
|
# @!attribute [rw] next_token
|
4028
|
+
# The nextToken string returned on a previous page that you use to get
|
4029
|
+
# the next page of results in a paginated response.
|
3988
4030
|
# @return [String]
|
3989
4031
|
#
|
3990
4032
|
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetConformancePackComplianceSummaryRequest AWS API Documentation
|
@@ -3997,9 +4039,12 @@ module Aws::ConfigService
|
|
3997
4039
|
end
|
3998
4040
|
|
3999
4041
|
# @!attribute [rw] conformance_pack_compliance_summary_list
|
4042
|
+
# A list of `ConformancePackComplianceSummary` objects.
|
4000
4043
|
# @return [Array<Types::ConformancePackComplianceSummary>]
|
4001
4044
|
#
|
4002
4045
|
# @!attribute [rw] next_token
|
4046
|
+
# The nextToken string returned on a previous page that you use to get
|
4047
|
+
# the next page of results in a paginated response.
|
4003
4048
|
# @return [String]
|
4004
4049
|
#
|
4005
4050
|
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetConformancePackComplianceSummaryResponse AWS API Documentation
|
@@ -4919,7 +4964,7 @@ module Aws::ConfigService
|
|
4919
4964
|
#
|
4920
4965
|
# @!attribute [rw] error_code
|
4921
4966
|
# An error code that is returned when organization conformance pack
|
4922
|
-
# creation or deletion has failed in
|
4967
|
+
# creation or deletion has failed in a member account.
|
4923
4968
|
# @return [String]
|
4924
4969
|
#
|
4925
4970
|
# @!attribute [rw] error_message
|
@@ -5422,10 +5467,10 @@ module Aws::ConfigService
|
|
5422
5467
|
# @return [String]
|
5423
5468
|
#
|
5424
5469
|
# @!attribute [rw] template_s3_uri
|
5425
|
-
# Location of file containing the template body
|
5426
|
-
#
|
5427
|
-
#
|
5428
|
-
# pack.
|
5470
|
+
# Location of file containing the template body
|
5471
|
+
# (`s3://bucketname/prefix`). The uri must point to the conformance
|
5472
|
+
# pack template (max size: 300 KB) that is located in an Amazon S3
|
5473
|
+
# bucket in the same region as the conformance pack.
|
5429
5474
|
#
|
5430
5475
|
# <note markdown="1"> You must have access to read Amazon S3 bucket.
|
5431
5476
|
#
|
@@ -5438,15 +5483,14 @@ module Aws::ConfigService
|
|
5438
5483
|
# maximum length of 51,200 bytes.
|
5439
5484
|
#
|
5440
5485
|
# <note markdown="1"> You can only use a YAML template with one resource type, that is,
|
5441
|
-
# config rule.
|
5486
|
+
# config rule and a remediation action.
|
5442
5487
|
#
|
5443
5488
|
# </note>
|
5444
5489
|
# @return [String]
|
5445
5490
|
#
|
5446
5491
|
# @!attribute [rw] delivery_s3_bucket
|
5447
|
-
#
|
5448
|
-
#
|
5449
|
-
# processing conformance pack template.
|
5492
|
+
# AWS Config stores intermediate files while processing conformance
|
5493
|
+
# pack template.
|
5450
5494
|
# @return [String]
|
5451
5495
|
#
|
5452
5496
|
# @!attribute [rw] delivery_s3_key_prefix
|
@@ -5663,7 +5707,7 @@ module Aws::ConfigService
|
|
5663
5707
|
#
|
5664
5708
|
# @!attribute [rw] template_s3_uri
|
5665
5709
|
# Location of file containing the template body. The uri must point to
|
5666
|
-
# the conformance pack template (max size: 300
|
5710
|
+
# the conformance pack template (max size: 300 KB).
|
5667
5711
|
#
|
5668
5712
|
# <note markdown="1"> You must have access to read Amazon S3 bucket.
|
5669
5713
|
#
|
@@ -5680,6 +5724,15 @@ module Aws::ConfigService
|
|
5680
5724
|
# Location of an Amazon S3 bucket where AWS Config can deliver
|
5681
5725
|
# evaluation results. AWS Config stores intermediate files while
|
5682
5726
|
# processing conformance pack template.
|
5727
|
+
#
|
5728
|
+
# The delivery bucket name should start with awsconfigconforms. For
|
5729
|
+
# example: "Resource": "arn:aws:s3:::your\_bucket\_name/*". For
|
5730
|
+
# more information, see [Permissions for cross account bucket
|
5731
|
+
# access][1].
|
5732
|
+
#
|
5733
|
+
#
|
5734
|
+
#
|
5735
|
+
# [1]: https://docs.aws.amazon.com/config/latest/developerguide/conformance-pack-organization-apis.html
|
5683
5736
|
# @return [String]
|
5684
5737
|
#
|
5685
5738
|
# @!attribute [rw] delivery_s3_key_prefix
|
@@ -5834,6 +5887,69 @@ module Aws::ConfigService
|
|
5834
5887
|
include Aws::Structure
|
5835
5888
|
end
|
5836
5889
|
|
5890
|
+
# @note When making an API call, you may pass PutResourceConfigRequest
|
5891
|
+
# data as a hash:
|
5892
|
+
#
|
5893
|
+
# {
|
5894
|
+
# resource_type: "ResourceTypeString", # required
|
5895
|
+
# schema_version_id: "SchemaVersionId", # required
|
5896
|
+
# resource_id: "ResourceId", # required
|
5897
|
+
# resource_name: "ResourceName",
|
5898
|
+
# configuration: "Configuration", # required
|
5899
|
+
# tags: {
|
5900
|
+
# "Name" => "Value",
|
5901
|
+
# },
|
5902
|
+
# }
|
5903
|
+
#
|
5904
|
+
# @!attribute [rw] resource_type
|
5905
|
+
# The type of the resource. The custom resource type must be
|
5906
|
+
# registered with AWS CloudFormation.
|
5907
|
+
#
|
5908
|
+
# <note markdown="1"> You cannot use the organization names “aws”, “amzn”, “amazon”,
|
5909
|
+
# “alexa”, “custom” with custom resource types. It is the first part
|
5910
|
+
# of the ResourceType up to the first ::.
|
5911
|
+
#
|
5912
|
+
# </note>
|
5913
|
+
# @return [String]
|
5914
|
+
#
|
5915
|
+
# @!attribute [rw] schema_version_id
|
5916
|
+
# Version of the schema registered for the ResourceType in AWS
|
5917
|
+
# CloudFormation.
|
5918
|
+
# @return [String]
|
5919
|
+
#
|
5920
|
+
# @!attribute [rw] resource_id
|
5921
|
+
# Unique identifier of the resource.
|
5922
|
+
# @return [String]
|
5923
|
+
#
|
5924
|
+
# @!attribute [rw] resource_name
|
5925
|
+
# Name of the resource.
|
5926
|
+
# @return [String]
|
5927
|
+
#
|
5928
|
+
# @!attribute [rw] configuration
|
5929
|
+
# The configuration object of the resource in valid JSON format. It
|
5930
|
+
# must match the schema registered with AWS CloudFormation.
|
5931
|
+
#
|
5932
|
+
# <note markdown="1"> The configuration JSON must not exceed 64 KB.
|
5933
|
+
#
|
5934
|
+
# </note>
|
5935
|
+
# @return [String]
|
5936
|
+
#
|
5937
|
+
# @!attribute [rw] tags
|
5938
|
+
# Tags associated with the resource.
|
5939
|
+
# @return [Hash<String,String>]
|
5940
|
+
#
|
5941
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutResourceConfigRequest AWS API Documentation
|
5942
|
+
#
|
5943
|
+
class PutResourceConfigRequest < Struct.new(
|
5944
|
+
:resource_type,
|
5945
|
+
:schema_version_id,
|
5946
|
+
:resource_id,
|
5947
|
+
:resource_name,
|
5948
|
+
:configuration,
|
5949
|
+
:tags)
|
5950
|
+
include Aws::Structure
|
5951
|
+
end
|
5952
|
+
|
5837
5953
|
# @note When making an API call, you may pass PutRetentionConfigurationRequest
|
5838
5954
|
# data as a hash:
|
5839
5955
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-configservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.40.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: 2019-11-
|
11
|
+
date: 2019-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|