/** * 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 SecurityLake { namespace Model { /** *

The details of the log provider for a third-party custom * source.

See Also:

AWS * API Reference

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

The location of the partition in the Amazon S3 bucket for Security Lake.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

The location of the partition in the Amazon S3 bucket for Security Lake.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The location of the partition in the Amazon S3 bucket for Security Lake.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The location of the partition in the Amazon S3 bucket for Security Lake.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The location of the partition in the Amazon S3 bucket for Security Lake.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

The location of the partition in the Amazon S3 bucket for Security Lake.

*/ inline CustomLogSourceProvider& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The location of the partition in the Amazon S3 bucket for Security Lake.

*/ inline CustomLogSourceProvider& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The location of the partition in the Amazon S3 bucket for Security Lake.

*/ inline CustomLogSourceProvider& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

The ARN of the IAM role to be used by the entity putting logs into your * custom source partition. Security Lake will apply the correct access policies to * this role, but you must first manually create the trust policy for this role. * The IAM role name must start with the text 'Security Lake'. The IAM role must * trust the logProviderAccountId to assume the role.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the IAM role to be used by the entity putting logs into your * custom source partition. Security Lake will apply the correct access policies to * this role, but you must first manually create the trust policy for this role. * The IAM role name must start with the text 'Security Lake'. The IAM role must * trust the logProviderAccountId to assume the role.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the IAM role to be used by the entity putting logs into your * custom source partition. Security Lake will apply the correct access policies to * this role, but you must first manually create the trust policy for this role. * The IAM role name must start with the text 'Security Lake'. The IAM role must * trust the logProviderAccountId to assume the role.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the IAM role to be used by the entity putting logs into your * custom source partition. Security Lake will apply the correct access policies to * this role, but you must first manually create the trust policy for this role. * The IAM role name must start with the text 'Security Lake'. The IAM role must * trust the logProviderAccountId to assume the role.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the IAM role to be used by the entity putting logs into your * custom source partition. Security Lake will apply the correct access policies to * this role, but you must first manually create the trust policy for this role. * The IAM role name must start with the text 'Security Lake'. The IAM role must * trust the logProviderAccountId to assume the role.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the IAM role to be used by the entity putting logs into your * custom source partition. Security Lake will apply the correct access policies to * this role, but you must first manually create the trust policy for this role. * The IAM role name must start with the text 'Security Lake'. The IAM role must * trust the logProviderAccountId to assume the role.

*/ inline CustomLogSourceProvider& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the IAM role to be used by the entity putting logs into your * custom source partition. Security Lake will apply the correct access policies to * this role, but you must first manually create the trust policy for this role. * The IAM role name must start with the text 'Security Lake'. The IAM role must * trust the logProviderAccountId to assume the role.

*/ inline CustomLogSourceProvider& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the IAM role to be used by the entity putting logs into your * custom source partition. Security Lake will apply the correct access policies to * this role, but you must first manually create the trust policy for this role. * The IAM role name must start with the text 'Security Lake'. The IAM role must * trust the logProviderAccountId to assume the role.

*/ inline CustomLogSourceProvider& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_location; bool m_locationHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace SecurityLake } // namespace Aws