/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConfigService { namespace Model { /** *

organization managed rule metadata such as resource type and ID of Amazon * Web Services resource along with the rule identifier. It also provides the * frequency with which you want Config to run evaluations for the rule if the * trigger type is periodic.

See Also:

AWS * API Reference

*/ class OrganizationManagedRuleMetadata { public: AWS_CONFIGSERVICE_API OrganizationManagedRuleMetadata(); AWS_CONFIGSERVICE_API OrganizationManagedRuleMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_CONFIGSERVICE_API OrganizationManagedRuleMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The description that you provide for your organization Config rule.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description that you provide for your organization Config rule.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description that you provide for your organization Config rule.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description that you provide for your organization Config rule.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description that you provide for your organization Config rule.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description that you provide for your organization Config rule.

*/ inline OrganizationManagedRuleMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description that you provide for your organization Config rule.

*/ inline OrganizationManagedRuleMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description that you provide for your organization Config rule.

*/ inline OrganizationManagedRuleMetadata& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

For organization config managed rules, a predefined identifier from a list. * For example, IAM_PASSWORD_POLICY is a managed rule. To reference a * managed rule, see Using * Config managed rules.

*/ inline const Aws::String& GetRuleIdentifier() const{ return m_ruleIdentifier; } /** *

For organization config managed rules, a predefined identifier from a list. * For example, IAM_PASSWORD_POLICY is a managed rule. To reference a * managed rule, see Using * Config managed rules.

*/ inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; } /** *

For organization config managed rules, a predefined identifier from a list. * For example, IAM_PASSWORD_POLICY is a managed rule. To reference a * managed rule, see Using * Config managed rules.

*/ inline void SetRuleIdentifier(const Aws::String& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = value; } /** *

For organization config managed rules, a predefined identifier from a list. * For example, IAM_PASSWORD_POLICY is a managed rule. To reference a * managed rule, see Using * Config managed rules.

*/ inline void SetRuleIdentifier(Aws::String&& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = std::move(value); } /** *

For organization config managed rules, a predefined identifier from a list. * For example, IAM_PASSWORD_POLICY is a managed rule. To reference a * managed rule, see Using * Config managed rules.

*/ inline void SetRuleIdentifier(const char* value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier.assign(value); } /** *

For organization config managed rules, a predefined identifier from a list. * For example, IAM_PASSWORD_POLICY is a managed rule. To reference a * managed rule, see Using * Config managed rules.

*/ inline OrganizationManagedRuleMetadata& WithRuleIdentifier(const Aws::String& value) { SetRuleIdentifier(value); return *this;} /** *

For organization config managed rules, a predefined identifier from a list. * For example, IAM_PASSWORD_POLICY is a managed rule. To reference a * managed rule, see Using * Config managed rules.

*/ inline OrganizationManagedRuleMetadata& WithRuleIdentifier(Aws::String&& value) { SetRuleIdentifier(std::move(value)); return *this;} /** *

For organization config managed rules, a predefined identifier from a list. * For example, IAM_PASSWORD_POLICY is a managed rule. To reference a * managed rule, see Using * Config managed rules.

*/ inline OrganizationManagedRuleMetadata& WithRuleIdentifier(const char* value) { SetRuleIdentifier(value); return *this;} /** *

A string, in JSON format, that is passed to your organization Config rule * Lambda function.

*/ inline const Aws::String& GetInputParameters() const{ return m_inputParameters; } /** *

A string, in JSON format, that is passed to your organization Config rule * Lambda function.

*/ inline bool InputParametersHasBeenSet() const { return m_inputParametersHasBeenSet; } /** *

A string, in JSON format, that is passed to your organization Config rule * Lambda function.

*/ inline void SetInputParameters(const Aws::String& value) { m_inputParametersHasBeenSet = true; m_inputParameters = value; } /** *

A string, in JSON format, that is passed to your organization Config rule * Lambda function.

*/ inline void SetInputParameters(Aws::String&& value) { m_inputParametersHasBeenSet = true; m_inputParameters = std::move(value); } /** *

A string, in JSON format, that is passed to your organization Config rule * Lambda function.

*/ inline void SetInputParameters(const char* value) { m_inputParametersHasBeenSet = true; m_inputParameters.assign(value); } /** *

A string, in JSON format, that is passed to your organization Config rule * Lambda function.

*/ inline OrganizationManagedRuleMetadata& WithInputParameters(const Aws::String& value) { SetInputParameters(value); return *this;} /** *

A string, in JSON format, that is passed to your organization Config rule * Lambda function.

*/ inline OrganizationManagedRuleMetadata& WithInputParameters(Aws::String&& value) { SetInputParameters(std::move(value)); return *this;} /** *

A string, in JSON format, that is passed to your organization Config rule * Lambda function.

*/ inline OrganizationManagedRuleMetadata& WithInputParameters(const char* value) { SetInputParameters(value); return *this;} /** *

The maximum frequency with which Config runs evaluations for a rule. This is * for an Config managed rule that is triggered at a periodic frequency.

*

By default, rules with a periodic trigger are evaluated every 24 hours. To * change the frequency, specify a valid value for the * MaximumExecutionFrequency parameter.

*/ inline const MaximumExecutionFrequency& GetMaximumExecutionFrequency() const{ return m_maximumExecutionFrequency; } /** *

The maximum frequency with which Config runs evaluations for a rule. This is * for an Config managed rule that is triggered at a periodic frequency.

*

By default, rules with a periodic trigger are evaluated every 24 hours. To * change the frequency, specify a valid value for the * MaximumExecutionFrequency parameter.

*/ inline bool MaximumExecutionFrequencyHasBeenSet() const { return m_maximumExecutionFrequencyHasBeenSet; } /** *

The maximum frequency with which Config runs evaluations for a rule. This is * for an Config managed rule that is triggered at a periodic frequency.

*

By default, rules with a periodic trigger are evaluated every 24 hours. To * change the frequency, specify a valid value for the * MaximumExecutionFrequency parameter.

*/ inline void SetMaximumExecutionFrequency(const MaximumExecutionFrequency& value) { m_maximumExecutionFrequencyHasBeenSet = true; m_maximumExecutionFrequency = value; } /** *

The maximum frequency with which Config runs evaluations for a rule. This is * for an Config managed rule that is triggered at a periodic frequency.

*

By default, rules with a periodic trigger are evaluated every 24 hours. To * change the frequency, specify a valid value for the * MaximumExecutionFrequency parameter.

*/ inline void SetMaximumExecutionFrequency(MaximumExecutionFrequency&& value) { m_maximumExecutionFrequencyHasBeenSet = true; m_maximumExecutionFrequency = std::move(value); } /** *

The maximum frequency with which Config runs evaluations for a rule. This is * for an Config managed rule that is triggered at a periodic frequency.

*

By default, rules with a periodic trigger are evaluated every 24 hours. To * change the frequency, specify a valid value for the * MaximumExecutionFrequency parameter.

*/ inline OrganizationManagedRuleMetadata& WithMaximumExecutionFrequency(const MaximumExecutionFrequency& value) { SetMaximumExecutionFrequency(value); return *this;} /** *

The maximum frequency with which Config runs evaluations for a rule. This is * for an Config managed rule that is triggered at a periodic frequency.

*

By default, rules with a periodic trigger are evaluated every 24 hours. To * change the frequency, specify a valid value for the * MaximumExecutionFrequency parameter.

*/ inline OrganizationManagedRuleMetadata& WithMaximumExecutionFrequency(MaximumExecutionFrequency&& value) { SetMaximumExecutionFrequency(std::move(value)); return *this;} /** *

The type of the Amazon Web Services resource that was evaluated.

*/ inline const Aws::Vector& GetResourceTypesScope() const{ return m_resourceTypesScope; } /** *

The type of the Amazon Web Services resource that was evaluated.

*/ inline bool ResourceTypesScopeHasBeenSet() const { return m_resourceTypesScopeHasBeenSet; } /** *

The type of the Amazon Web Services resource that was evaluated.

*/ inline void SetResourceTypesScope(const Aws::Vector& value) { m_resourceTypesScopeHasBeenSet = true; m_resourceTypesScope = value; } /** *

The type of the Amazon Web Services resource that was evaluated.

*/ inline void SetResourceTypesScope(Aws::Vector&& value) { m_resourceTypesScopeHasBeenSet = true; m_resourceTypesScope = std::move(value); } /** *

The type of the Amazon Web Services resource that was evaluated.

*/ inline OrganizationManagedRuleMetadata& WithResourceTypesScope(const Aws::Vector& value) { SetResourceTypesScope(value); return *this;} /** *

The type of the Amazon Web Services resource that was evaluated.

*/ inline OrganizationManagedRuleMetadata& WithResourceTypesScope(Aws::Vector&& value) { SetResourceTypesScope(std::move(value)); return *this;} /** *

The type of the Amazon Web Services resource that was evaluated.

*/ inline OrganizationManagedRuleMetadata& AddResourceTypesScope(const Aws::String& value) { m_resourceTypesScopeHasBeenSet = true; m_resourceTypesScope.push_back(value); return *this; } /** *

The type of the Amazon Web Services resource that was evaluated.

*/ inline OrganizationManagedRuleMetadata& AddResourceTypesScope(Aws::String&& value) { m_resourceTypesScopeHasBeenSet = true; m_resourceTypesScope.push_back(std::move(value)); return *this; } /** *

The type of the Amazon Web Services resource that was evaluated.

*/ inline OrganizationManagedRuleMetadata& AddResourceTypesScope(const char* value) { m_resourceTypesScopeHasBeenSet = true; m_resourceTypesScope.push_back(value); return *this; } /** *

The ID of the Amazon Web Services resource that was evaluated.

*/ inline const Aws::String& GetResourceIdScope() const{ return m_resourceIdScope; } /** *

The ID of the Amazon Web Services resource that was evaluated.

*/ inline bool ResourceIdScopeHasBeenSet() const { return m_resourceIdScopeHasBeenSet; } /** *

The ID of the Amazon Web Services resource that was evaluated.

*/ inline void SetResourceIdScope(const Aws::String& value) { m_resourceIdScopeHasBeenSet = true; m_resourceIdScope = value; } /** *

The ID of the Amazon Web Services resource that was evaluated.

*/ inline void SetResourceIdScope(Aws::String&& value) { m_resourceIdScopeHasBeenSet = true; m_resourceIdScope = std::move(value); } /** *

The ID of the Amazon Web Services resource that was evaluated.

*/ inline void SetResourceIdScope(const char* value) { m_resourceIdScopeHasBeenSet = true; m_resourceIdScope.assign(value); } /** *

The ID of the Amazon Web Services resource that was evaluated.

*/ inline OrganizationManagedRuleMetadata& WithResourceIdScope(const Aws::String& value) { SetResourceIdScope(value); return *this;} /** *

The ID of the Amazon Web Services resource that was evaluated.

*/ inline OrganizationManagedRuleMetadata& WithResourceIdScope(Aws::String&& value) { SetResourceIdScope(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services resource that was evaluated.

*/ inline OrganizationManagedRuleMetadata& WithResourceIdScope(const char* value) { SetResourceIdScope(value); return *this;} /** *

One part of a key-value pair that make up a tag. A key is a general label * that acts like a category for more specific tag values.

*/ inline const Aws::String& GetTagKeyScope() const{ return m_tagKeyScope; } /** *

One part of a key-value pair that make up a tag. A key is a general label * that acts like a category for more specific tag values.

*/ inline bool TagKeyScopeHasBeenSet() const { return m_tagKeyScopeHasBeenSet; } /** *

One part of a key-value pair that make up a tag. A key is a general label * that acts like a category for more specific tag values.

*/ inline void SetTagKeyScope(const Aws::String& value) { m_tagKeyScopeHasBeenSet = true; m_tagKeyScope = value; } /** *

One part of a key-value pair that make up a tag. A key is a general label * that acts like a category for more specific tag values.

*/ inline void SetTagKeyScope(Aws::String&& value) { m_tagKeyScopeHasBeenSet = true; m_tagKeyScope = std::move(value); } /** *

One part of a key-value pair that make up a tag. A key is a general label * that acts like a category for more specific tag values.

*/ inline void SetTagKeyScope(const char* value) { m_tagKeyScopeHasBeenSet = true; m_tagKeyScope.assign(value); } /** *

One part of a key-value pair that make up a tag. A key is a general label * that acts like a category for more specific tag values.

*/ inline OrganizationManagedRuleMetadata& WithTagKeyScope(const Aws::String& value) { SetTagKeyScope(value); return *this;} /** *

One part of a key-value pair that make up a tag. A key is a general label * that acts like a category for more specific tag values.

*/ inline OrganizationManagedRuleMetadata& WithTagKeyScope(Aws::String&& value) { SetTagKeyScope(std::move(value)); return *this;} /** *

One part of a key-value pair that make up a tag. A key is a general label * that acts like a category for more specific tag values.

*/ inline OrganizationManagedRuleMetadata& WithTagKeyScope(const char* value) { SetTagKeyScope(value); return *this;} /** *

The optional part of a key-value pair that make up a tag. A value acts as a * descriptor within a tag category (key).

*/ inline const Aws::String& GetTagValueScope() const{ return m_tagValueScope; } /** *

The optional part of a key-value pair that make up a tag. A value acts as a * descriptor within a tag category (key).

*/ inline bool TagValueScopeHasBeenSet() const { return m_tagValueScopeHasBeenSet; } /** *

The optional part of a key-value pair that make up a tag. A value acts as a * descriptor within a tag category (key).

*/ inline void SetTagValueScope(const Aws::String& value) { m_tagValueScopeHasBeenSet = true; m_tagValueScope = value; } /** *

The optional part of a key-value pair that make up a tag. A value acts as a * descriptor within a tag category (key).

*/ inline void SetTagValueScope(Aws::String&& value) { m_tagValueScopeHasBeenSet = true; m_tagValueScope = std::move(value); } /** *

The optional part of a key-value pair that make up a tag. A value acts as a * descriptor within a tag category (key).

*/ inline void SetTagValueScope(const char* value) { m_tagValueScopeHasBeenSet = true; m_tagValueScope.assign(value); } /** *

The optional part of a key-value pair that make up a tag. A value acts as a * descriptor within a tag category (key).

*/ inline OrganizationManagedRuleMetadata& WithTagValueScope(const Aws::String& value) { SetTagValueScope(value); return *this;} /** *

The optional part of a key-value pair that make up a tag. A value acts as a * descriptor within a tag category (key).

*/ inline OrganizationManagedRuleMetadata& WithTagValueScope(Aws::String&& value) { SetTagValueScope(std::move(value)); return *this;} /** *

The optional part of a key-value pair that make up a tag. A value acts as a * descriptor within a tag category (key).

*/ inline OrganizationManagedRuleMetadata& WithTagValueScope(const char* value) { SetTagValueScope(value); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_ruleIdentifier; bool m_ruleIdentifierHasBeenSet = false; Aws::String m_inputParameters; bool m_inputParametersHasBeenSet = false; MaximumExecutionFrequency m_maximumExecutionFrequency; bool m_maximumExecutionFrequencyHasBeenSet = false; Aws::Vector m_resourceTypesScope; bool m_resourceTypesScopeHasBeenSet = false; Aws::String m_resourceIdScope; bool m_resourceIdScopeHasBeenSet = false; Aws::String m_tagKeyScope; bool m_tagKeyScopeHasBeenSet = false; Aws::String m_tagValueScope; bool m_tagValueScopeHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws