/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents the details about the remediation configuration
* that includes the remediation action, parameters, and data to execute the
* action.See Also:
AWS
* API Reference
The name of the Config rule.
*/ inline const Aws::String& GetConfigRuleName() const{ return m_configRuleName; } /** *The name of the Config rule.
*/ inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; } /** *The name of the Config rule.
*/ inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; } /** *The name of the Config rule.
*/ inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::move(value); } /** *The name of the Config rule.
*/ inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); } /** *The name of the Config rule.
*/ inline RemediationConfiguration& WithConfigRuleName(const Aws::String& value) { SetConfigRuleName(value); return *this;} /** *The name of the Config rule.
*/ inline RemediationConfiguration& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;} /** *The name of the Config rule.
*/ inline RemediationConfiguration& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;} /** *The type of the target. Target executes remediation. For example, SSM * document.
*/ inline const RemediationTargetType& GetTargetType() const{ return m_targetType; } /** *The type of the target. Target executes remediation. For example, SSM * document.
*/ inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; } /** *The type of the target. Target executes remediation. For example, SSM * document.
*/ inline void SetTargetType(const RemediationTargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; } /** *The type of the target. Target executes remediation. For example, SSM * document.
*/ inline void SetTargetType(RemediationTargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); } /** *The type of the target. Target executes remediation. For example, SSM * document.
*/ inline RemediationConfiguration& WithTargetType(const RemediationTargetType& value) { SetTargetType(value); return *this;} /** *The type of the target. Target executes remediation. For example, SSM * document.
*/ inline RemediationConfiguration& WithTargetType(RemediationTargetType&& value) { SetTargetType(std::move(value)); return *this;} /** *Target ID is the name of the SSM document.
*/ inline const Aws::String& GetTargetId() const{ return m_targetId; } /** *Target ID is the name of the SSM document.
*/ inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; } /** *Target ID is the name of the SSM document.
*/ inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; } /** *Target ID is the name of the SSM document.
*/ inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); } /** *Target ID is the name of the SSM document.
*/ inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); } /** *Target ID is the name of the SSM document.
*/ inline RemediationConfiguration& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;} /** *Target ID is the name of the SSM document.
*/ inline RemediationConfiguration& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;} /** *Target ID is the name of the SSM document.
*/ inline RemediationConfiguration& WithTargetId(const char* value) { SetTargetId(value); return *this;} /** *Version of the target. For example, version of the SSM document.
*If you make backward incompatible changes to the SSM document, you must call * PutRemediationConfiguration API again to ensure the remediations can run.
* */ inline const Aws::String& GetTargetVersion() const{ return m_targetVersion; } /** *Version of the target. For example, version of the SSM document.
*If you make backward incompatible changes to the SSM document, you must call * PutRemediationConfiguration API again to ensure the remediations can run.
* */ inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; } /** *Version of the target. For example, version of the SSM document.
*If you make backward incompatible changes to the SSM document, you must call * PutRemediationConfiguration API again to ensure the remediations can run.
* */ inline void SetTargetVersion(const Aws::String& value) { m_targetVersionHasBeenSet = true; m_targetVersion = value; } /** *Version of the target. For example, version of the SSM document.
*If you make backward incompatible changes to the SSM document, you must call * PutRemediationConfiguration API again to ensure the remediations can run.
* */ inline void SetTargetVersion(Aws::String&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::move(value); } /** *Version of the target. For example, version of the SSM document.
*If you make backward incompatible changes to the SSM document, you must call * PutRemediationConfiguration API again to ensure the remediations can run.
* */ inline void SetTargetVersion(const char* value) { m_targetVersionHasBeenSet = true; m_targetVersion.assign(value); } /** *Version of the target. For example, version of the SSM document.
*If you make backward incompatible changes to the SSM document, you must call * PutRemediationConfiguration API again to ensure the remediations can run.
* */ inline RemediationConfiguration& WithTargetVersion(const Aws::String& value) { SetTargetVersion(value); return *this;} /** *Version of the target. For example, version of the SSM document.
*If you make backward incompatible changes to the SSM document, you must call * PutRemediationConfiguration API again to ensure the remediations can run.
* */ inline RemediationConfiguration& WithTargetVersion(Aws::String&& value) { SetTargetVersion(std::move(value)); return *this;} /** *Version of the target. For example, version of the SSM document.
*If you make backward incompatible changes to the SSM document, you must call * PutRemediationConfiguration API again to ensure the remediations can run.
* */ inline RemediationConfiguration& WithTargetVersion(const char* value) { SetTargetVersion(value); return *this;} /** *An object of the RemediationParameterValue.
*/ inline const Aws::MapAn object of the RemediationParameterValue.
*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *An object of the RemediationParameterValue.
*/ inline void SetParameters(const Aws::MapAn object of the RemediationParameterValue.
*/ inline void SetParameters(Aws::MapAn object of the RemediationParameterValue.
*/ inline RemediationConfiguration& WithParameters(const Aws::MapAn object of the RemediationParameterValue.
*/ inline RemediationConfiguration& WithParameters(Aws::MapAn object of the RemediationParameterValue.
*/ inline RemediationConfiguration& AddParameters(const Aws::String& key, const RemediationParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *An object of the RemediationParameterValue.
*/ inline RemediationConfiguration& AddParameters(Aws::String&& key, const RemediationParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *An object of the RemediationParameterValue.
*/ inline RemediationConfiguration& AddParameters(const Aws::String& key, RemediationParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *An object of the RemediationParameterValue.
*/ inline RemediationConfiguration& AddParameters(Aws::String&& key, RemediationParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *An object of the RemediationParameterValue.
*/ inline RemediationConfiguration& AddParameters(const char* key, RemediationParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *An object of the RemediationParameterValue.
*/ inline RemediationConfiguration& AddParameters(const char* key, const RemediationParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *The type of a resource.
*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *The type of a resource.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The type of a resource.
*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The type of a resource.
*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The type of a resource.
*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *The type of a resource.
*/ inline RemediationConfiguration& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *The type of a resource.
*/ inline RemediationConfiguration& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *The type of a resource.
*/ inline RemediationConfiguration& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *The remediation is triggered automatically.
*/ inline bool GetAutomatic() const{ return m_automatic; } /** *The remediation is triggered automatically.
*/ inline bool AutomaticHasBeenSet() const { return m_automaticHasBeenSet; } /** *The remediation is triggered automatically.
*/ inline void SetAutomatic(bool value) { m_automaticHasBeenSet = true; m_automatic = value; } /** *The remediation is triggered automatically.
*/ inline RemediationConfiguration& WithAutomatic(bool value) { SetAutomatic(value); return *this;} /** *An ExecutionControls object.
*/ inline const ExecutionControls& GetExecutionControls() const{ return m_executionControls; } /** *An ExecutionControls object.
*/ inline bool ExecutionControlsHasBeenSet() const { return m_executionControlsHasBeenSet; } /** *An ExecutionControls object.
*/ inline void SetExecutionControls(const ExecutionControls& value) { m_executionControlsHasBeenSet = true; m_executionControls = value; } /** *An ExecutionControls object.
*/ inline void SetExecutionControls(ExecutionControls&& value) { m_executionControlsHasBeenSet = true; m_executionControls = std::move(value); } /** *An ExecutionControls object.
*/ inline RemediationConfiguration& WithExecutionControls(const ExecutionControls& value) { SetExecutionControls(value); return *this;} /** *An ExecutionControls object.
*/ inline RemediationConfiguration& WithExecutionControls(ExecutionControls&& value) { SetExecutionControls(std::move(value)); return *this;} /** *The maximum number of failed attempts for auto-remediation. If you do not * select a number, the default is 5.
For example, if you specify * MaximumAutomaticAttempts as 5 with RetryAttemptSeconds as 50 seconds, Config * will put a RemediationException on your behalf for the failing resource after * the 5th failed attempt within 50 seconds.
*/ inline int GetMaximumAutomaticAttempts() const{ return m_maximumAutomaticAttempts; } /** *The maximum number of failed attempts for auto-remediation. If you do not * select a number, the default is 5.
For example, if you specify * MaximumAutomaticAttempts as 5 with RetryAttemptSeconds as 50 seconds, Config * will put a RemediationException on your behalf for the failing resource after * the 5th failed attempt within 50 seconds.
*/ inline bool MaximumAutomaticAttemptsHasBeenSet() const { return m_maximumAutomaticAttemptsHasBeenSet; } /** *The maximum number of failed attempts for auto-remediation. If you do not * select a number, the default is 5.
For example, if you specify * MaximumAutomaticAttempts as 5 with RetryAttemptSeconds as 50 seconds, Config * will put a RemediationException on your behalf for the failing resource after * the 5th failed attempt within 50 seconds.
*/ inline void SetMaximumAutomaticAttempts(int value) { m_maximumAutomaticAttemptsHasBeenSet = true; m_maximumAutomaticAttempts = value; } /** *The maximum number of failed attempts for auto-remediation. If you do not * select a number, the default is 5.
For example, if you specify * MaximumAutomaticAttempts as 5 with RetryAttemptSeconds as 50 seconds, Config * will put a RemediationException on your behalf for the failing resource after * the 5th failed attempt within 50 seconds.
*/ inline RemediationConfiguration& WithMaximumAutomaticAttempts(int value) { SetMaximumAutomaticAttempts(value); return *this;} /** *Maximum time in seconds that Config runs auto-remediation. If you do not * select a number, the default is 60 seconds.
For example, if you specify * RetryAttemptSeconds as 50 seconds and MaximumAutomaticAttempts as 5, Config will * run auto-remediations 5 times within 50 seconds before throwing an * exception.
*/ inline long long GetRetryAttemptSeconds() const{ return m_retryAttemptSeconds; } /** *Maximum time in seconds that Config runs auto-remediation. If you do not * select a number, the default is 60 seconds.
For example, if you specify * RetryAttemptSeconds as 50 seconds and MaximumAutomaticAttempts as 5, Config will * run auto-remediations 5 times within 50 seconds before throwing an * exception.
*/ inline bool RetryAttemptSecondsHasBeenSet() const { return m_retryAttemptSecondsHasBeenSet; } /** *Maximum time in seconds that Config runs auto-remediation. If you do not * select a number, the default is 60 seconds.
For example, if you specify * RetryAttemptSeconds as 50 seconds and MaximumAutomaticAttempts as 5, Config will * run auto-remediations 5 times within 50 seconds before throwing an * exception.
*/ inline void SetRetryAttemptSeconds(long long value) { m_retryAttemptSecondsHasBeenSet = true; m_retryAttemptSeconds = value; } /** *Maximum time in seconds that Config runs auto-remediation. If you do not * select a number, the default is 60 seconds.
For example, if you specify * RetryAttemptSeconds as 50 seconds and MaximumAutomaticAttempts as 5, Config will * run auto-remediations 5 times within 50 seconds before throwing an * exception.
*/ inline RemediationConfiguration& WithRetryAttemptSeconds(long long value) { SetRetryAttemptSeconds(value); return *this;} /** *Amazon Resource Name (ARN) of remediation configuration.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *Amazon Resource Name (ARN) of remediation configuration.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *Amazon Resource Name (ARN) of remediation configuration.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *Amazon Resource Name (ARN) of remediation configuration.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *Amazon Resource Name (ARN) of remediation configuration.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *Amazon Resource Name (ARN) of remediation configuration.
*/ inline RemediationConfiguration& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *Amazon Resource Name (ARN) of remediation configuration.
*/ inline RemediationConfiguration& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *Amazon Resource Name (ARN) of remediation configuration.
*/ inline RemediationConfiguration& WithArn(const char* value) { SetArn(value); return *this;} /** *Name of the service that owns the service-linked rule, if applicable.
*/ inline const Aws::String& GetCreatedByService() const{ return m_createdByService; } /** *Name of the service that owns the service-linked rule, if applicable.
*/ inline bool CreatedByServiceHasBeenSet() const { return m_createdByServiceHasBeenSet; } /** *Name of the service that owns the service-linked rule, if applicable.
*/ inline void SetCreatedByService(const Aws::String& value) { m_createdByServiceHasBeenSet = true; m_createdByService = value; } /** *Name of the service that owns the service-linked rule, if applicable.
*/ inline void SetCreatedByService(Aws::String&& value) { m_createdByServiceHasBeenSet = true; m_createdByService = std::move(value); } /** *Name of the service that owns the service-linked rule, if applicable.
*/ inline void SetCreatedByService(const char* value) { m_createdByServiceHasBeenSet = true; m_createdByService.assign(value); } /** *Name of the service that owns the service-linked rule, if applicable.
*/ inline RemediationConfiguration& WithCreatedByService(const Aws::String& value) { SetCreatedByService(value); return *this;} /** *Name of the service that owns the service-linked rule, if applicable.
*/ inline RemediationConfiguration& WithCreatedByService(Aws::String&& value) { SetCreatedByService(std::move(value)); return *this;} /** *Name of the service that owns the service-linked rule, if applicable.
*/ inline RemediationConfiguration& WithCreatedByService(const char* value) { SetCreatedByService(value); return *this;} private: Aws::String m_configRuleName; bool m_configRuleNameHasBeenSet = false; RemediationTargetType m_targetType; bool m_targetTypeHasBeenSet = false; Aws::String m_targetId; bool m_targetIdHasBeenSet = false; Aws::String m_targetVersion; bool m_targetVersionHasBeenSet = false; Aws::Map