Skip to content

Commit

Permalink
Regenerating config from latest service definition
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhay committed Aug 16, 2016
1 parent a3eebc8 commit 774776d
Show file tree
Hide file tree
Showing 11 changed files with 202 additions and 33 deletions.
3 changes: 3 additions & 0 deletions amazonka-config/amazonka-config.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ library
exposed-modules:
Network.AWS.Config
, Network.AWS.Config.DeleteConfigRule
, Network.AWS.Config.DeleteConfigurationRecorder
, Network.AWS.Config.DeleteDeliveryChannel
, Network.AWS.Config.DeleteEvaluationResults
, Network.AWS.Config.DeliverConfigSnapshot
, Network.AWS.Config.DescribeComplianceByConfigRule
, Network.AWS.Config.DescribeComplianceByResource
Expand All @@ -72,6 +74,7 @@ library
, Network.AWS.Config.PutConfigurationRecorder
, Network.AWS.Config.PutDeliveryChannel
, Network.AWS.Config.PutEvaluations
, Network.AWS.Config.StartConfigRulesEvaluation
, Network.AWS.Config.StartConfigurationRecorder
, Network.AWS.Config.StopConfigurationRecorder
, Network.AWS.Config.Types
Expand Down
17 changes: 17 additions & 0 deletions amazonka-config/gen/Network/AWS/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ module Network.AWS.Config
-- ** InvalidS3KeyPrefixException
, _InvalidS3KeyPrefixException

-- ** LimitExceededException
, _LimitExceededException

-- ** ResourceInUseException
, _ResourceInUseException

Expand All @@ -129,6 +132,9 @@ module Network.AWS.Config
-- ** DescribeConfigRules
, module Network.AWS.Config.DescribeConfigRules

-- ** DeleteEvaluationResults
, module Network.AWS.Config.DeleteEvaluationResults

-- ** PutConfigRule
, module Network.AWS.Config.PutConfigRule

Expand All @@ -144,6 +150,9 @@ module Network.AWS.Config
-- ** DescribeConfigRuleEvaluationStatus
, module Network.AWS.Config.DescribeConfigRuleEvaluationStatus

-- ** StartConfigRulesEvaluation
, module Network.AWS.Config.StartConfigRulesEvaluation

-- ** DescribeComplianceByResource
, module Network.AWS.Config.DescribeComplianceByResource

Expand All @@ -165,6 +174,9 @@ module Network.AWS.Config
-- ** PutConfigurationRecorder
, module Network.AWS.Config.PutConfigurationRecorder

-- ** DeleteConfigurationRecorder
, module Network.AWS.Config.DeleteConfigurationRecorder

-- ** GetComplianceSummaryByResourceType
, module Network.AWS.Config.GetComplianceSummaryByResourceType

Expand Down Expand Up @@ -322,6 +334,7 @@ module Network.AWS.Config
, ciConfigurationItemStatus
, ciConfigurationItemCaptureTime
, ciAccountId
, ciSupplementaryConfiguration
, ciAvailabilityZone
, ciRelationships
, ciVersion
Expand Down Expand Up @@ -441,11 +454,14 @@ module Network.AWS.Config
, SourceDetail
, sourceDetail
, sdMessageType
, sdMaximumExecutionFrequency
, sdEventSource
) where

import Network.AWS.Config.DeleteConfigRule
import Network.AWS.Config.DeleteConfigurationRecorder
import Network.AWS.Config.DeleteDeliveryChannel
import Network.AWS.Config.DeleteEvaluationResults
import Network.AWS.Config.DeliverConfigSnapshot
import Network.AWS.Config.DescribeComplianceByConfigRule
import Network.AWS.Config.DescribeComplianceByResource
Expand All @@ -465,6 +481,7 @@ import Network.AWS.Config.PutConfigRule
import Network.AWS.Config.PutConfigurationRecorder
import Network.AWS.Config.PutDeliveryChannel
import Network.AWS.Config.PutEvaluations
import Network.AWS.Config.StartConfigRulesEvaluation
import Network.AWS.Config.StartConfigurationRecorder
import Network.AWS.Config.StopConfigurationRecorder
import Network.AWS.Config.Types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Deletes the specified delivery channel.
-- Deletes the delivery channel.
--
-- The delivery channel cannot be deleted if it is the only delivery channel and the configuration recorder is still running. To delete the delivery channel, stop the running configuration recorder using the < StopConfigurationRecorder> action.
-- Before you can delete the delivery channel, you must stop the configuration recorder by using the < StopConfigurationRecorder> action.
module Network.AWS.Config.DeleteDeliveryChannel
(
-- * Creating a Request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
-- If AWS Config has no current evaluation results for the rule, it returns 'INSUFFICIENT_DATA'. This result might indicate one of the following conditions:
--
-- - AWS Config has never invoked an evaluation for the rule. To check whether it has, use the 'DescribeConfigRuleEvaluationStatus' action to get the 'LastSuccessfulInvocationTime' and 'LastFailedInvocationTime'.
-- - The rule\'s AWS Lambda function is failing to send evaluation results to AWS Config. Verify that the role that you assigned to your configuration recorder includes the 'config:PutEvaluations' permission. If the rule is a customer managed rule, verify that the AWS Lambda execution role includes the 'config:PutEvaluations' permission.
-- - The rule\'s AWS Lambda function is failing to send evaluation results to AWS Config. Verify that the role that you assigned to your configuration recorder includes the 'config:PutEvaluations' permission. If the rule is a custom rule, verify that the AWS Lambda execution role includes the 'config:PutEvaluations' permission.
-- - The rule\'s AWS Lambda function has returned 'NOT_APPLICABLE' for all evaluation results. This can occur if the resources were deleted or removed from the rule\'s scope.
module Network.AWS.Config.DescribeComplianceByConfigRule
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
-- If AWS Config has no current evaluation results for the resource, it returns 'INSUFFICIENT_DATA'. This result might indicate one of the following conditions about the rules that evaluate the resource:
--
-- - AWS Config has never invoked an evaluation for the rule. To check whether it has, use the 'DescribeConfigRuleEvaluationStatus' action to get the 'LastSuccessfulInvocationTime' and 'LastFailedInvocationTime'.
-- - The rule\'s AWS Lambda function is failing to send evaluation results to AWS Config. Verify that the role that you assigned to your configuration recorder includes the 'config:PutEvaluations' permission. If the rule is a customer managed rule, verify that the AWS Lambda execution role includes the 'config:PutEvaluations' permission.
-- - The rule\'s AWS Lambda function is failing to send evaluation results to AWS Config. Verify that the role that you assigned to your configuration recorder includes the 'config:PutEvaluations' permission. If the rule is a custom rule, verify that the AWS Lambda execution role includes the 'config:PutEvaluations' permission.
-- - The rule\'s AWS Lambda function has returned 'NOT_APPLICABLE' for all evaluation results. This can occur if the resources were deleted or removed from the rule\'s scope.
module Network.AWS.Config.DescribeComplianceByResource
(
Expand Down
4 changes: 2 additions & 2 deletions amazonka-config/gen/Network/AWS/Config/PutConfigRule.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
--
-- Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations.
--
-- You can use this action for customer managed Config rules and AWS managed Config rules. A customer managed Config rule is a custom rule that you develop and maintain. An AWS managed Config rule is a customizable, predefined rule that is provided by AWS Config.
-- You can use this action for custom Config rules and AWS managed Config rules. A custom Config rule is a rule that you develop and maintain. An AWS managed Config rule is a customizable, predefined rule that AWS Config provides.
--
-- If you are adding a new customer managed Config rule, you must first create the AWS Lambda function that the rule invokes to evaluate your resources. When you use the 'PutConfigRule' action to add the rule to AWS Config, you must specify the Amazon Resource Name (ARN) that AWS Lambda assigns to the function. Specify the ARN for the 'SourceIdentifier' key. This key is part of the 'Source' object, which is part of the 'ConfigRule' object.
-- If you are adding a new custom Config rule, you must first create the AWS Lambda function that the rule invokes to evaluate your resources. When you use the 'PutConfigRule' action to add the rule to AWS Config, you must specify the Amazon Resource Name (ARN) that AWS Lambda assigns to the function. Specify the ARN for the 'SourceIdentifier' key. This key is part of the 'Source' object, which is part of the 'ConfigRule' object.
--
-- If you are adding a new AWS managed Config rule, specify the rule\'s identifier for the 'SourceIdentifier' key. To reference AWS managed Config rule identifiers, see <http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html Using AWS Managed Config Rules>.
--
Expand Down
6 changes: 4 additions & 2 deletions amazonka-config/gen/Network/AWS/Config/PutDeliveryChannel.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Creates a new delivery channel object to deliver the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic.
-- Creates a delivery channel object to deliver configuration information to an Amazon S3 bucket and Amazon SNS topic.
--
-- Before you can create a delivery channel, you must create a configuration recorder.
--
-- You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.
--
-- Currently, you can specify only one delivery channel per account.
-- You can have only one delivery channel per AWS account.
module Network.AWS.Config.PutDeliveryChannel
(
-- * Creating a Request
Expand Down
9 changes: 8 additions & 1 deletion amazonka-config/gen/Network/AWS/Config/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module Network.AWS.Config.Types
, _MaxNumberOfDeliveryChannelsExceededException
, _NoSuchConfigurationRecorderException
, _InvalidS3KeyPrefixException
, _LimitExceededException
, _ResourceInUseException

-- * ChronologicalOrder
Expand Down Expand Up @@ -178,6 +179,7 @@ module Network.AWS.Config.Types
, ciConfigurationItemStatus
, ciConfigurationItemCaptureTime
, ciAccountId
, ciSupplementaryConfiguration
, ciAvailabilityZone
, ciRelationships
, ciVersion
Expand Down Expand Up @@ -297,6 +299,7 @@ module Network.AWS.Config.Types
, SourceDetail
, sourceDetail
, sdMessageType
, sdMaximumExecutionFrequency
, sdEventSource
) where

Expand Down Expand Up @@ -470,6 +473,10 @@ _InvalidS3KeyPrefixException :: AsError a => Getting (First ServiceError) a Serv
_InvalidS3KeyPrefixException =
_ServiceError . hasCode "InvalidS3KeyPrefixException"

-- | The rule is currently being deleted. Wait for a while and try again.
-- | This exception is thrown when the previous < StartConfigRulesEvaluation> call is in progress or a previous evaluation is in progress.
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException = _ServiceError . hasCode "LimitExceededException"

-- | The rule is currently being deleted or the rule is deleting your evaluation results. Try your request again later.
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceInUseException = _ServiceError . hasCode "ResourceInUseException"
Loading

0 comments on commit 774776d

Please sign in to comment.