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

These are IAM Identity Center identity store attributes that you can * configure for use in attributes-based access control (ABAC). You can create * permissions policies that determine who can access your AWS resources based upon * the configured attribute values. When you enable ABAC and specify * AccessControlAttributes, IAM Identity Center passes the attribute * values of the authenticated user into IAM for use in policy * evaluation.

See Also:

AWS * API Reference

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

The name of the attribute associated with your identities in your identity * source. This is used to map a specified attribute in your identity source with * an attribute in IAM Identity Center.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The name of the attribute associated with your identities in your identity * source. This is used to map a specified attribute in your identity source with * an attribute in IAM Identity Center.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The name of the attribute associated with your identities in your identity * source. This is used to map a specified attribute in your identity source with * an attribute in IAM Identity Center.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The name of the attribute associated with your identities in your identity * source. This is used to map a specified attribute in your identity source with * an attribute in IAM Identity Center.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The name of the attribute associated with your identities in your identity * source. This is used to map a specified attribute in your identity source with * an attribute in IAM Identity Center.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The name of the attribute associated with your identities in your identity * source. This is used to map a specified attribute in your identity source with * an attribute in IAM Identity Center.

*/ inline AccessControlAttribute& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The name of the attribute associated with your identities in your identity * source. This is used to map a specified attribute in your identity source with * an attribute in IAM Identity Center.

*/ inline AccessControlAttribute& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The name of the attribute associated with your identities in your identity * source. This is used to map a specified attribute in your identity source with * an attribute in IAM Identity Center.

*/ inline AccessControlAttribute& WithKey(const char* value) { SetKey(value); return *this;} /** *

The value used for mapping a specified attribute to an identity source.

*/ inline const AccessControlAttributeValue& GetValue() const{ return m_value; } /** *

The value used for mapping a specified attribute to an identity source.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value used for mapping a specified attribute to an identity source.

*/ inline void SetValue(const AccessControlAttributeValue& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value used for mapping a specified attribute to an identity source.

*/ inline void SetValue(AccessControlAttributeValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value used for mapping a specified attribute to an identity source.

*/ inline AccessControlAttribute& WithValue(const AccessControlAttributeValue& value) { SetValue(value); return *this;} /** *

The value used for mapping a specified attribute to an identity source.

*/ inline AccessControlAttribute& WithValue(AccessControlAttributeValue&& value) { SetValue(std::move(value)); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; AccessControlAttributeValue m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace SSOAdmin } // namespace Aws