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

The channel through which Config delivers notifications and updated * configuration states.

See Also:

AWS * API Reference

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

The name of the delivery channel. By default, Config assigns the name * "default" when creating the delivery channel. To change the delivery channel * name, you must use the DeleteDeliveryChannel action to delete your current * delivery channel, and then you must use the PutDeliveryChannel command to create * a delivery channel that has the desired name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the delivery channel. By default, Config assigns the name * "default" when creating the delivery channel. To change the delivery channel * name, you must use the DeleteDeliveryChannel action to delete your current * delivery channel, and then you must use the PutDeliveryChannel command to create * a delivery channel that has the desired name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the delivery channel. By default, Config assigns the name * "default" when creating the delivery channel. To change the delivery channel * name, you must use the DeleteDeliveryChannel action to delete your current * delivery channel, and then you must use the PutDeliveryChannel command to create * a delivery channel that has the desired name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the delivery channel. By default, Config assigns the name * "default" when creating the delivery channel. To change the delivery channel * name, you must use the DeleteDeliveryChannel action to delete your current * delivery channel, and then you must use the PutDeliveryChannel command to create * a delivery channel that has the desired name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the delivery channel. By default, Config assigns the name * "default" when creating the delivery channel. To change the delivery channel * name, you must use the DeleteDeliveryChannel action to delete your current * delivery channel, and then you must use the PutDeliveryChannel command to create * a delivery channel that has the desired name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the delivery channel. By default, Config assigns the name * "default" when creating the delivery channel. To change the delivery channel * name, you must use the DeleteDeliveryChannel action to delete your current * delivery channel, and then you must use the PutDeliveryChannel command to create * a delivery channel that has the desired name.

*/ inline DeliveryChannel& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the delivery channel. By default, Config assigns the name * "default" when creating the delivery channel. To change the delivery channel * name, you must use the DeleteDeliveryChannel action to delete your current * delivery channel, and then you must use the PutDeliveryChannel command to create * a delivery channel that has the desired name.

*/ inline DeliveryChannel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the delivery channel. By default, Config assigns the name * "default" when creating the delivery channel. To change the delivery channel * name, you must use the DeleteDeliveryChannel action to delete your current * delivery channel, and then you must use the PutDeliveryChannel command to create * a delivery channel that has the desired name.

*/ inline DeliveryChannel& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the Amazon S3 bucket to which Config delivers configuration * snapshots and configuration history files.

If you specify a bucket that * belongs to another Amazon Web Services account, that bucket must have policies * that grant access permissions to Config. For more information, see Permissions * for the Amazon S3 Bucket in the Config Developer Guide.

*/ inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } /** *

The name of the Amazon S3 bucket to which Config delivers configuration * snapshots and configuration history files.

If you specify a bucket that * belongs to another Amazon Web Services account, that bucket must have policies * that grant access permissions to Config. For more information, see Permissions * for the Amazon S3 Bucket in the Config Developer Guide.

*/ inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; } /** *

The name of the Amazon S3 bucket to which Config delivers configuration * snapshots and configuration history files.

If you specify a bucket that * belongs to another Amazon Web Services account, that bucket must have policies * that grant access permissions to Config. For more information, see Permissions * for the Amazon S3 Bucket in the Config Developer Guide.

*/ inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; } /** *

The name of the Amazon S3 bucket to which Config delivers configuration * snapshots and configuration history files.

If you specify a bucket that * belongs to another Amazon Web Services account, that bucket must have policies * that grant access permissions to Config. For more information, see Permissions * for the Amazon S3 Bucket in the Config Developer Guide.

*/ inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); } /** *

The name of the Amazon S3 bucket to which Config delivers configuration * snapshots and configuration history files.

If you specify a bucket that * belongs to another Amazon Web Services account, that bucket must have policies * that grant access permissions to Config. For more information, see Permissions * for the Amazon S3 Bucket in the Config Developer Guide.

*/ inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); } /** *

The name of the Amazon S3 bucket to which Config delivers configuration * snapshots and configuration history files.

If you specify a bucket that * belongs to another Amazon Web Services account, that bucket must have policies * that grant access permissions to Config. For more information, see Permissions * for the Amazon S3 Bucket in the Config Developer Guide.

*/ inline DeliveryChannel& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} /** *

The name of the Amazon S3 bucket to which Config delivers configuration * snapshots and configuration history files.

If you specify a bucket that * belongs to another Amazon Web Services account, that bucket must have policies * that grant access permissions to Config. For more information, see Permissions * for the Amazon S3 Bucket in the Config Developer Guide.

*/ inline DeliveryChannel& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} /** *

The name of the Amazon S3 bucket to which Config delivers configuration * snapshots and configuration history files.

If you specify a bucket that * belongs to another Amazon Web Services account, that bucket must have policies * that grant access permissions to Config. For more information, see Permissions * for the Amazon S3 Bucket in the Config Developer Guide.

*/ inline DeliveryChannel& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;} /** *

The prefix for the specified Amazon S3 bucket.

*/ inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; } /** *

The prefix for the specified Amazon S3 bucket.

*/ inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; } /** *

The prefix for the specified Amazon S3 bucket.

*/ inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; } /** *

The prefix for the specified Amazon S3 bucket.

*/ inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); } /** *

The prefix for the specified Amazon S3 bucket.

*/ inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); } /** *

The prefix for the specified Amazon S3 bucket.

*/ inline DeliveryChannel& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;} /** *

The prefix for the specified Amazon S3 bucket.

*/ inline DeliveryChannel& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;} /** *

The prefix for the specified Amazon S3 bucket.

*/ inline DeliveryChannel& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS ) KMS key * (KMS key) used to encrypt objects delivered by Config. Must belong to the same * Region as the destination S3 bucket.

*/ inline const Aws::String& GetS3KmsKeyArn() const{ return m_s3KmsKeyArn; } /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS ) KMS key * (KMS key) used to encrypt objects delivered by Config. Must belong to the same * Region as the destination S3 bucket.

*/ inline bool S3KmsKeyArnHasBeenSet() const { return m_s3KmsKeyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS ) KMS key * (KMS key) used to encrypt objects delivered by Config. Must belong to the same * Region as the destination S3 bucket.

*/ inline void SetS3KmsKeyArn(const Aws::String& value) { m_s3KmsKeyArnHasBeenSet = true; m_s3KmsKeyArn = value; } /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS ) KMS key * (KMS key) used to encrypt objects delivered by Config. Must belong to the same * Region as the destination S3 bucket.

*/ inline void SetS3KmsKeyArn(Aws::String&& value) { m_s3KmsKeyArnHasBeenSet = true; m_s3KmsKeyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS ) KMS key * (KMS key) used to encrypt objects delivered by Config. Must belong to the same * Region as the destination S3 bucket.

*/ inline void SetS3KmsKeyArn(const char* value) { m_s3KmsKeyArnHasBeenSet = true; m_s3KmsKeyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS ) KMS key * (KMS key) used to encrypt objects delivered by Config. Must belong to the same * Region as the destination S3 bucket.

*/ inline DeliveryChannel& WithS3KmsKeyArn(const Aws::String& value) { SetS3KmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS ) KMS key * (KMS key) used to encrypt objects delivered by Config. Must belong to the same * Region as the destination S3 bucket.

*/ inline DeliveryChannel& WithS3KmsKeyArn(Aws::String&& value) { SetS3KmsKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS ) KMS key * (KMS key) used to encrypt objects delivered by Config. Must belong to the same * Region as the destination S3 bucket.

*/ inline DeliveryChannel& WithS3KmsKeyArn(const char* value) { SetS3KmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Config sends * notifications about configuration changes.

If you choose a topic from * another account, the topic must have policies that grant access permissions to * Config. For more information, see Permissions * for the Amazon SNS Topic in the Config Developer Guide.

*/ inline const Aws::String& GetSnsTopicARN() const{ return m_snsTopicARN; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Config sends * notifications about configuration changes.

If you choose a topic from * another account, the topic must have policies that grant access permissions to * Config. For more information, see Permissions * for the Amazon SNS Topic in the Config Developer Guide.

*/ inline bool SnsTopicARNHasBeenSet() const { return m_snsTopicARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Config sends * notifications about configuration changes.

If you choose a topic from * another account, the topic must have policies that grant access permissions to * Config. For more information, see Permissions * for the Amazon SNS Topic in the Config Developer Guide.

*/ inline void SetSnsTopicARN(const Aws::String& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = value; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Config sends * notifications about configuration changes.

If you choose a topic from * another account, the topic must have policies that grant access permissions to * Config. For more information, see Permissions * for the Amazon SNS Topic in the Config Developer Guide.

*/ inline void SetSnsTopicARN(Aws::String&& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Config sends * notifications about configuration changes.

If you choose a topic from * another account, the topic must have policies that grant access permissions to * Config. For more information, see Permissions * for the Amazon SNS Topic in the Config Developer Guide.

*/ inline void SetSnsTopicARN(const char* value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Config sends * notifications about configuration changes.

If you choose a topic from * another account, the topic must have policies that grant access permissions to * Config. For more information, see Permissions * for the Amazon SNS Topic in the Config Developer Guide.

*/ inline DeliveryChannel& WithSnsTopicARN(const Aws::String& value) { SetSnsTopicARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Config sends * notifications about configuration changes.

If you choose a topic from * another account, the topic must have policies that grant access permissions to * Config. For more information, see Permissions * for the Amazon SNS Topic in the Config Developer Guide.

*/ inline DeliveryChannel& WithSnsTopicARN(Aws::String&& value) { SetSnsTopicARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Config sends * notifications about configuration changes.

If you choose a topic from * another account, the topic must have policies that grant access permissions to * Config. For more information, see Permissions * for the Amazon SNS Topic in the Config Developer Guide.

*/ inline DeliveryChannel& WithSnsTopicARN(const char* value) { SetSnsTopicARN(value); return *this;} /** *

The options for how often Config delivers configuration snapshots to the * Amazon S3 bucket.

*/ inline const ConfigSnapshotDeliveryProperties& GetConfigSnapshotDeliveryProperties() const{ return m_configSnapshotDeliveryProperties; } /** *

The options for how often Config delivers configuration snapshots to the * Amazon S3 bucket.

*/ inline bool ConfigSnapshotDeliveryPropertiesHasBeenSet() const { return m_configSnapshotDeliveryPropertiesHasBeenSet; } /** *

The options for how often Config delivers configuration snapshots to the * Amazon S3 bucket.

*/ inline void SetConfigSnapshotDeliveryProperties(const ConfigSnapshotDeliveryProperties& value) { m_configSnapshotDeliveryPropertiesHasBeenSet = true; m_configSnapshotDeliveryProperties = value; } /** *

The options for how often Config delivers configuration snapshots to the * Amazon S3 bucket.

*/ inline void SetConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryProperties&& value) { m_configSnapshotDeliveryPropertiesHasBeenSet = true; m_configSnapshotDeliveryProperties = std::move(value); } /** *

The options for how often Config delivers configuration snapshots to the * Amazon S3 bucket.

*/ inline DeliveryChannel& WithConfigSnapshotDeliveryProperties(const ConfigSnapshotDeliveryProperties& value) { SetConfigSnapshotDeliveryProperties(value); return *this;} /** *

The options for how often Config delivers configuration snapshots to the * Amazon S3 bucket.

*/ inline DeliveryChannel& WithConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryProperties&& value) { SetConfigSnapshotDeliveryProperties(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_s3BucketName; bool m_s3BucketNameHasBeenSet = false; Aws::String m_s3KeyPrefix; bool m_s3KeyPrefixHasBeenSet = false; Aws::String m_s3KmsKeyArn; bool m_s3KmsKeyArnHasBeenSet = false; Aws::String m_snsTopicARN; bool m_snsTopicARNHasBeenSet = false; ConfigSnapshotDeliveryProperties m_configSnapshotDeliveryProperties; bool m_configSnapshotDeliveryPropertiesHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws