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

Identifies the Key Management Service (KMS) key used to encrypt the * secrets.

See Also:

AWS API * Reference

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

Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be * symmetric, created in the same region as the cluster, and if the KMS key was * created in a different account, the user must have access to the KMS key. For * more information, see Allowing * Users in Other Accounts to Use a KMS key in the Key Management Service * Developer Guide.

*/ inline const Aws::String& GetKeyArn() const{ return m_keyArn; } /** *

Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be * symmetric, created in the same region as the cluster, and if the KMS key was * created in a different account, the user must have access to the KMS key. For * more information, see Allowing * Users in Other Accounts to Use a KMS key in the Key Management Service * Developer Guide.

*/ inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; } /** *

Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be * symmetric, created in the same region as the cluster, and if the KMS key was * created in a different account, the user must have access to the KMS key. For * more information, see Allowing * Users in Other Accounts to Use a KMS key in the Key Management Service * Developer Guide.

*/ inline void SetKeyArn(const Aws::String& value) { m_keyArnHasBeenSet = true; m_keyArn = value; } /** *

Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be * symmetric, created in the same region as the cluster, and if the KMS key was * created in a different account, the user must have access to the KMS key. For * more information, see Allowing * Users in Other Accounts to Use a KMS key in the Key Management Service * Developer Guide.

*/ inline void SetKeyArn(Aws::String&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::move(value); } /** *

Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be * symmetric, created in the same region as the cluster, and if the KMS key was * created in a different account, the user must have access to the KMS key. For * more information, see Allowing * Users in Other Accounts to Use a KMS key in the Key Management Service * Developer Guide.

*/ inline void SetKeyArn(const char* value) { m_keyArnHasBeenSet = true; m_keyArn.assign(value); } /** *

Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be * symmetric, created in the same region as the cluster, and if the KMS key was * created in a different account, the user must have access to the KMS key. For * more information, see Allowing * Users in Other Accounts to Use a KMS key in the Key Management Service * Developer Guide.

*/ inline Provider& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;} /** *

Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be * symmetric, created in the same region as the cluster, and if the KMS key was * created in a different account, the user must have access to the KMS key. For * more information, see Allowing * Users in Other Accounts to Use a KMS key in the Key Management Service * Developer Guide.

*/ inline Provider& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be * symmetric, created in the same region as the cluster, and if the KMS key was * created in a different account, the user must have access to the KMS key. For * more information, see Allowing * Users in Other Accounts to Use a KMS key in the Key Management Service * Developer Guide.

*/ inline Provider& WithKeyArn(const char* value) { SetKeyArn(value); return *this;} private: Aws::String m_keyArn; bool m_keyArnHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws