/**
* 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 DatabaseMigrationService
{
namespace Model
{
/**
* Provides the Amazon Resource Name (ARN) of the Identity and Access Management
* (IAM) role used to define an Amazon DynamoDB target endpoint.
See
* Also:
AWS
* API Reference
*/
class DynamoDbSettings
{
public:
AWS_DATABASEMIGRATIONSERVICE_API DynamoDbSettings();
AWS_DATABASEMIGRATIONSERVICE_API DynamoDbSettings(Aws::Utils::Json::JsonView jsonValue);
AWS_DATABASEMIGRATIONSERVICE_API DynamoDbSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The Amazon Resource Name (ARN) used by the service to access the IAM role.
* The role must allow the iam:PassRole
action.
*/
inline const Aws::String& GetServiceAccessRoleArn() const{ return m_serviceAccessRoleArn; }
/**
* The Amazon Resource Name (ARN) used by the service to access the IAM role.
* The role must allow the iam:PassRole
action.
*/
inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
/**
* The Amazon Resource Name (ARN) used by the service to access the IAM role.
* The role must allow the iam:PassRole
action.
*/
inline void SetServiceAccessRoleArn(const Aws::String& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = value; }
/**
* The Amazon Resource Name (ARN) used by the service to access the IAM role.
* The role must allow the iam:PassRole
action.
*/
inline void SetServiceAccessRoleArn(Aws::String&& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = std::move(value); }
/**
* The Amazon Resource Name (ARN) used by the service to access the IAM role.
* The role must allow the iam:PassRole
action.
*/
inline void SetServiceAccessRoleArn(const char* value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn.assign(value); }
/**
* The Amazon Resource Name (ARN) used by the service to access the IAM role.
* The role must allow the iam:PassRole
action.
*/
inline DynamoDbSettings& WithServiceAccessRoleArn(const Aws::String& value) { SetServiceAccessRoleArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) used by the service to access the IAM role.
* The role must allow the iam:PassRole
action.
*/
inline DynamoDbSettings& WithServiceAccessRoleArn(Aws::String&& value) { SetServiceAccessRoleArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) used by the service to access the IAM role.
* The role must allow the iam:PassRole
action.
*/
inline DynamoDbSettings& WithServiceAccessRoleArn(const char* value) { SetServiceAccessRoleArn(value); return *this;}
private:
Aws::String m_serviceAccessRoleArn;
bool m_serviceAccessRoleArnHasBeenSet = false;
};
} // namespace Model
} // namespace DatabaseMigrationService
} // namespace Aws