// Adds or updates an AWS Config rule for evaluating whether your AWS resources
// comply with your desired configurations. You can use this action for custom AWS
// Config rules and AWS managed Config rules. A custom AWS 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 custom AWS
// 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 an AWS managed Config rule, specify the rule's identifier for
// the SourceIdentifier key. To reference AWS managed Config rule identifiers, see
// About AWS Managed Config Rules
// (https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html).
// For any new rule that you add, specify the ConfigRuleName in the ConfigRule
// object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values are
// generated by AWS Config for new rules. If you are updating a rule that you added
// previously, you can specify the rule by ConfigRuleName, ConfigRuleId, or
// ConfigRuleArn in the ConfigRule data type that you use in this request. The
// maximum number of rules that AWS Config supports is 150. For information about
// requesting a rule limit increase, see AWS Config Limits
// (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_config)
// in the AWS General Reference Guide. For more information about developing and
// using AWS Config rules, see Evaluating AWS Resource Configurations with AWS
// Config
// (https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html)
// in the AWS Config Developer Guide.
Adds or updates an AWS Config rule for evaluating whether your AWS resources
comply with your desired configurations. You can use this action for custom AWS
Config rules and AWS managed Config rules. A custom AWS 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 custom AWS
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 an AWS managed Config rule, specify the rule's identifier for
the SourceIdentifier key. To reference AWS managed Config rule identifiers, see
About AWS Managed Config Rules
.
For any new rule that you add, specify the ConfigRuleName in the ConfigRule
object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values are
generated by AWS Config for new rules. If you are updating a rule that you added
previously, you can specify the rule by ConfigRuleName, ConfigRuleId, or
ConfigRuleArn in the ConfigRule data type that you use in this request. The
maximum number of rules that AWS Config supports is 150. For information about
requesting a rule limit increase, see AWS Config Limits

in the AWS General Reference Guide. For more information about developing and
using AWS Config rules, see Evaluating AWS Resource Configurations with AWS
Config

in the AWS Config Developer Guide.
// Adds or updates an AWS Config rule for evaluating whether your AWS resources // comply with your desired configurations . You can use this action for custom AWS // Config rules and AWS managed Config rules . A custom AWS 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 custom AWS // 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 an AWS managed Config rule specify the rule ' s identifier for // the SourceIdentifier key . To reference AWS managed Config rule identifiers see // About AWS Managed Config Rules // ( https : // docs . aws . amazon . com / config / latest / developerguide / evaluate - config_use - managed - rules . html ) . // For any new rule that you add specify the ConfigRuleName in the ConfigRule // object . Do not specify the ConfigRuleArn or the ConfigRuleId . These values are // generated by AWS Config for new rules . If you are updating a rule that you added // previously you can specify the rule by ConfigRuleName ConfigRuleId or // ConfigRuleArn in the ConfigRule data type that you use in this request . The // maximum number of rules that AWS Config supports is 150 . For information about // requesting a rule limit increase see AWS Config Limits // ( http : // docs . aws . amazon . com / general / latest / gr / aws_service_limits . html#limits_config ) // in the AWS General Reference Guide . For more information about developing and // using AWS Config rules see Evaluating AWS Resource Configurations with AWS // Config // ( https : // docs . aws . amazon . com / config / latest / developerguide / evaluate - config . html ) // in the AWS Config Developer Guide .
func (c *Client) PutConfigRule(ctx context.Context, params *PutConfigRuleInput, optFns ...func(*Options)) (*PutConfigRuleOutput, error) {
	if params == nil {
		params = &PutConfigRuleInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "PutConfigRule", params, optFns, addOperationPutConfigRuleMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*PutConfigRuleOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) PutConfigRule ( ctx context . Context , params * PutConfigRuleInput , optFns ... func ( * Options ) ) ( * PutConfigRuleOutput , error ) { if params == nil { params = & PutConfigRuleInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationPutConfigRuleMiddlewares ) if err != nil { return nil , err } out := result . ( * PutConfigRuleOutput ) out . ResultMetadata = metadata return out , nil }
Adds or updates an AWS Config rule for evaluating whether your AWS resources
comply with your desired configurations.
Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations .