/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class AWS_EC2_API CreateFlowLogsRequest : public EC2Request { public: CreateFlowLogsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateFlowLogs"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline CreateFlowLogsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

*/ inline CreateFlowLogsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

*/ inline CreateFlowLogsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

*/ inline CreateFlowLogsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a * CloudWatch Logs log group in your account.

If you specify * LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*/ inline const Aws::String& GetDeliverLogsPermissionArn() const{ return m_deliverLogsPermissionArn; } /** *

The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a * CloudWatch Logs log group in your account.

If you specify * LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*/ inline bool DeliverLogsPermissionArnHasBeenSet() const { return m_deliverLogsPermissionArnHasBeenSet; } /** *

The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a * CloudWatch Logs log group in your account.

If you specify * LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*/ inline void SetDeliverLogsPermissionArn(const Aws::String& value) { m_deliverLogsPermissionArnHasBeenSet = true; m_deliverLogsPermissionArn = value; } /** *

The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a * CloudWatch Logs log group in your account.

If you specify * LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*/ inline void SetDeliverLogsPermissionArn(Aws::String&& value) { m_deliverLogsPermissionArnHasBeenSet = true; m_deliverLogsPermissionArn = std::move(value); } /** *

The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a * CloudWatch Logs log group in your account.

If you specify * LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*/ inline void SetDeliverLogsPermissionArn(const char* value) { m_deliverLogsPermissionArnHasBeenSet = true; m_deliverLogsPermissionArn.assign(value); } /** *

The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a * CloudWatch Logs log group in your account.

If you specify * LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*/ inline CreateFlowLogsRequest& WithDeliverLogsPermissionArn(const Aws::String& value) { SetDeliverLogsPermissionArn(value); return *this;} /** *

The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a * CloudWatch Logs log group in your account.

If you specify * LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*/ inline CreateFlowLogsRequest& WithDeliverLogsPermissionArn(Aws::String&& value) { SetDeliverLogsPermissionArn(std::move(value)); return *this;} /** *

The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a * CloudWatch Logs log group in your account.

If you specify * LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*/ inline CreateFlowLogsRequest& WithDeliverLogsPermissionArn(const char* value) { SetDeliverLogsPermissionArn(value); return *this;} /** *

The name of a new or existing CloudWatch Logs log group where Amazon EC2 * publishes your flow logs.

If you specify LogDestinationType * as s3, do not specify DeliverLogsPermissionArn or * LogGroupName.

*/ inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; } /** *

The name of a new or existing CloudWatch Logs log group where Amazon EC2 * publishes your flow logs.

If you specify LogDestinationType * as s3, do not specify DeliverLogsPermissionArn or * LogGroupName.

*/ inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; } /** *

The name of a new or existing CloudWatch Logs log group where Amazon EC2 * publishes your flow logs.

If you specify LogDestinationType * as s3, do not specify DeliverLogsPermissionArn or * LogGroupName.

*/ inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; } /** *

The name of a new or existing CloudWatch Logs log group where Amazon EC2 * publishes your flow logs.

If you specify LogDestinationType * as s3, do not specify DeliverLogsPermissionArn or * LogGroupName.

*/ inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); } /** *

The name of a new or existing CloudWatch Logs log group where Amazon EC2 * publishes your flow logs.

If you specify LogDestinationType * as s3, do not specify DeliverLogsPermissionArn or * LogGroupName.

*/ inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); } /** *

The name of a new or existing CloudWatch Logs log group where Amazon EC2 * publishes your flow logs.

If you specify LogDestinationType * as s3, do not specify DeliverLogsPermissionArn or * LogGroupName.

*/ inline CreateFlowLogsRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;} /** *

The name of a new or existing CloudWatch Logs log group where Amazon EC2 * publishes your flow logs.

If you specify LogDestinationType * as s3, do not specify DeliverLogsPermissionArn or * LogGroupName.

*/ inline CreateFlowLogsRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;} /** *

The name of a new or existing CloudWatch Logs log group where Amazon EC2 * publishes your flow logs.

If you specify LogDestinationType * as s3, do not specify DeliverLogsPermissionArn or * LogGroupName.

*/ inline CreateFlowLogsRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} /** *

The ID of the subnet, network interface, or VPC for which you want to create * a flow log.

Constraints: Maximum of 1000 resources

*/ inline const Aws::Vector& GetResourceIds() const{ return m_resourceIds; } /** *

The ID of the subnet, network interface, or VPC for which you want to create * a flow log.

Constraints: Maximum of 1000 resources

*/ inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; } /** *

The ID of the subnet, network interface, or VPC for which you want to create * a flow log.

Constraints: Maximum of 1000 resources

*/ inline void SetResourceIds(const Aws::Vector& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; } /** *

The ID of the subnet, network interface, or VPC for which you want to create * a flow log.

Constraints: Maximum of 1000 resources

*/ inline void SetResourceIds(Aws::Vector&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); } /** *

The ID of the subnet, network interface, or VPC for which you want to create * a flow log.

Constraints: Maximum of 1000 resources

*/ inline CreateFlowLogsRequest& WithResourceIds(const Aws::Vector& value) { SetResourceIds(value); return *this;} /** *

The ID of the subnet, network interface, or VPC for which you want to create * a flow log.

Constraints: Maximum of 1000 resources

*/ inline CreateFlowLogsRequest& WithResourceIds(Aws::Vector&& value) { SetResourceIds(std::move(value)); return *this;} /** *

The ID of the subnet, network interface, or VPC for which you want to create * a flow log.

Constraints: Maximum of 1000 resources

*/ inline CreateFlowLogsRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; } /** *

The ID of the subnet, network interface, or VPC for which you want to create * a flow log.

Constraints: Maximum of 1000 resources

*/ inline CreateFlowLogsRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; } /** *

The ID of the subnet, network interface, or VPC for which you want to create * a flow log.

Constraints: Maximum of 1000 resources

*/ inline CreateFlowLogsRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; } /** *

The type of resource for which to create the flow log. For example, if you * specified a VPC ID for the ResourceId property, specify * VPC for this property.

*/ inline const FlowLogsResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of resource for which to create the flow log. For example, if you * specified a VPC ID for the ResourceId property, specify * VPC for this property.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of resource for which to create the flow log. For example, if you * specified a VPC ID for the ResourceId property, specify * VPC for this property.

*/ inline void SetResourceType(const FlowLogsResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of resource for which to create the flow log. For example, if you * specified a VPC ID for the ResourceId property, specify * VPC for this property.

*/ inline void SetResourceType(FlowLogsResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of resource for which to create the flow log. For example, if you * specified a VPC ID for the ResourceId property, specify * VPC for this property.

*/ inline CreateFlowLogsRequest& WithResourceType(const FlowLogsResourceType& value) { SetResourceType(value); return *this;} /** *

The type of resource for which to create the flow log. For example, if you * specified a VPC ID for the ResourceId property, specify * VPC for this property.

*/ inline CreateFlowLogsRequest& WithResourceType(FlowLogsResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The type of traffic to log. You can log traffic that the resource accepts or * rejects, or all traffic.

*/ inline const TrafficType& GetTrafficType() const{ return m_trafficType; } /** *

The type of traffic to log. You can log traffic that the resource accepts or * rejects, or all traffic.

*/ inline bool TrafficTypeHasBeenSet() const { return m_trafficTypeHasBeenSet; } /** *

The type of traffic to log. You can log traffic that the resource accepts or * rejects, or all traffic.

*/ inline void SetTrafficType(const TrafficType& value) { m_trafficTypeHasBeenSet = true; m_trafficType = value; } /** *

The type of traffic to log. You can log traffic that the resource accepts or * rejects, or all traffic.

*/ inline void SetTrafficType(TrafficType&& value) { m_trafficTypeHasBeenSet = true; m_trafficType = std::move(value); } /** *

The type of traffic to log. You can log traffic that the resource accepts or * rejects, or all traffic.

*/ inline CreateFlowLogsRequest& WithTrafficType(const TrafficType& value) { SetTrafficType(value); return *this;} /** *

The type of traffic to log. You can log traffic that the resource accepts or * rejects, or all traffic.

*/ inline CreateFlowLogsRequest& WithTrafficType(TrafficType&& value) { SetTrafficType(std::move(value)); return *this;} /** *

Specifies the type of destination to which the flow log data is to be * published. Flow log data can be published to CloudWatch Logs or Amazon S3. To * publish flow log data to CloudWatch Logs, specify cloud-watch-logs. * To publish flow log data to Amazon S3, specify s3.

If you * specify LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*

Default: cloud-watch-logs

*/ inline const LogDestinationType& GetLogDestinationType() const{ return m_logDestinationType; } /** *

Specifies the type of destination to which the flow log data is to be * published. Flow log data can be published to CloudWatch Logs or Amazon S3. To * publish flow log data to CloudWatch Logs, specify cloud-watch-logs. * To publish flow log data to Amazon S3, specify s3.

If you * specify LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*

Default: cloud-watch-logs

*/ inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; } /** *

Specifies the type of destination to which the flow log data is to be * published. Flow log data can be published to CloudWatch Logs or Amazon S3. To * publish flow log data to CloudWatch Logs, specify cloud-watch-logs. * To publish flow log data to Amazon S3, specify s3.

If you * specify LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*

Default: cloud-watch-logs

*/ inline void SetLogDestinationType(const LogDestinationType& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = value; } /** *

Specifies the type of destination to which the flow log data is to be * published. Flow log data can be published to CloudWatch Logs or Amazon S3. To * publish flow log data to CloudWatch Logs, specify cloud-watch-logs. * To publish flow log data to Amazon S3, specify s3.

If you * specify LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*

Default: cloud-watch-logs

*/ inline void SetLogDestinationType(LogDestinationType&& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = std::move(value); } /** *

Specifies the type of destination to which the flow log data is to be * published. Flow log data can be published to CloudWatch Logs or Amazon S3. To * publish flow log data to CloudWatch Logs, specify cloud-watch-logs. * To publish flow log data to Amazon S3, specify s3.

If you * specify LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*

Default: cloud-watch-logs

*/ inline CreateFlowLogsRequest& WithLogDestinationType(const LogDestinationType& value) { SetLogDestinationType(value); return *this;} /** *

Specifies the type of destination to which the flow log data is to be * published. Flow log data can be published to CloudWatch Logs or Amazon S3. To * publish flow log data to CloudWatch Logs, specify cloud-watch-logs. * To publish flow log data to Amazon S3, specify s3.

If you * specify LogDestinationType as s3, do not specify * DeliverLogsPermissionArn or LogGroupName.

*

Default: cloud-watch-logs

*/ inline CreateFlowLogsRequest& WithLogDestinationType(LogDestinationType&& value) { SetLogDestinationType(std::move(value)); return *this;} /** *

Specifies the destination to which the flow log data is to be published. Flow * log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. * The value specified for this parameter depends on the value specified for * LogDestinationType.

If LogDestinationType is * not specified or cloud-watch-logs, specify the Amazon Resource Name * (ARN) of the CloudWatch Logs log group. For example, to publish to a log group * called my-logs, specify * arn:aws:logs:us-east-1:123456789012:log-group:my-logs. * Alternatively, use LogGroupName instead.

If * LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. * You can also specify a subfolder in the bucket. To specify a subfolder in the * bucket, use the following ARN format: bucket_ARN/subfolder_name/. * For example, to specify a subfolder named my-logs in a bucket named * my-bucket, use the following ARN: * arn:aws:s3:::my-bucket/my-logs/. You cannot use * AWSLogs as a subfolder name. This is a reserved term.

*/ inline const Aws::String& GetLogDestination() const{ return m_logDestination; } /** *

Specifies the destination to which the flow log data is to be published. Flow * log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. * The value specified for this parameter depends on the value specified for * LogDestinationType.

If LogDestinationType is * not specified or cloud-watch-logs, specify the Amazon Resource Name * (ARN) of the CloudWatch Logs log group. For example, to publish to a log group * called my-logs, specify * arn:aws:logs:us-east-1:123456789012:log-group:my-logs. * Alternatively, use LogGroupName instead.

If * LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. * You can also specify a subfolder in the bucket. To specify a subfolder in the * bucket, use the following ARN format: bucket_ARN/subfolder_name/. * For example, to specify a subfolder named my-logs in a bucket named * my-bucket, use the following ARN: * arn:aws:s3:::my-bucket/my-logs/. You cannot use * AWSLogs as a subfolder name. This is a reserved term.

*/ inline bool LogDestinationHasBeenSet() const { return m_logDestinationHasBeenSet; } /** *

Specifies the destination to which the flow log data is to be published. Flow * log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. * The value specified for this parameter depends on the value specified for * LogDestinationType.

If LogDestinationType is * not specified or cloud-watch-logs, specify the Amazon Resource Name * (ARN) of the CloudWatch Logs log group. For example, to publish to a log group * called my-logs, specify * arn:aws:logs:us-east-1:123456789012:log-group:my-logs. * Alternatively, use LogGroupName instead.

If * LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. * You can also specify a subfolder in the bucket. To specify a subfolder in the * bucket, use the following ARN format: bucket_ARN/subfolder_name/. * For example, to specify a subfolder named my-logs in a bucket named * my-bucket, use the following ARN: * arn:aws:s3:::my-bucket/my-logs/. You cannot use * AWSLogs as a subfolder name. This is a reserved term.

*/ inline void SetLogDestination(const Aws::String& value) { m_logDestinationHasBeenSet = true; m_logDestination = value; } /** *

Specifies the destination to which the flow log data is to be published. Flow * log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. * The value specified for this parameter depends on the value specified for * LogDestinationType.

If LogDestinationType is * not specified or cloud-watch-logs, specify the Amazon Resource Name * (ARN) of the CloudWatch Logs log group. For example, to publish to a log group * called my-logs, specify * arn:aws:logs:us-east-1:123456789012:log-group:my-logs. * Alternatively, use LogGroupName instead.

If * LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. * You can also specify a subfolder in the bucket. To specify a subfolder in the * bucket, use the following ARN format: bucket_ARN/subfolder_name/. * For example, to specify a subfolder named my-logs in a bucket named * my-bucket, use the following ARN: * arn:aws:s3:::my-bucket/my-logs/. You cannot use * AWSLogs as a subfolder name. This is a reserved term.

*/ inline void SetLogDestination(Aws::String&& value) { m_logDestinationHasBeenSet = true; m_logDestination = std::move(value); } /** *

Specifies the destination to which the flow log data is to be published. Flow * log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. * The value specified for this parameter depends on the value specified for * LogDestinationType.

If LogDestinationType is * not specified or cloud-watch-logs, specify the Amazon Resource Name * (ARN) of the CloudWatch Logs log group. For example, to publish to a log group * called my-logs, specify * arn:aws:logs:us-east-1:123456789012:log-group:my-logs. * Alternatively, use LogGroupName instead.

If * LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. * You can also specify a subfolder in the bucket. To specify a subfolder in the * bucket, use the following ARN format: bucket_ARN/subfolder_name/. * For example, to specify a subfolder named my-logs in a bucket named * my-bucket, use the following ARN: * arn:aws:s3:::my-bucket/my-logs/. You cannot use * AWSLogs as a subfolder name. This is a reserved term.

*/ inline void SetLogDestination(const char* value) { m_logDestinationHasBeenSet = true; m_logDestination.assign(value); } /** *

Specifies the destination to which the flow log data is to be published. Flow * log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. * The value specified for this parameter depends on the value specified for * LogDestinationType.

If LogDestinationType is * not specified or cloud-watch-logs, specify the Amazon Resource Name * (ARN) of the CloudWatch Logs log group. For example, to publish to a log group * called my-logs, specify * arn:aws:logs:us-east-1:123456789012:log-group:my-logs. * Alternatively, use LogGroupName instead.

If * LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. * You can also specify a subfolder in the bucket. To specify a subfolder in the * bucket, use the following ARN format: bucket_ARN/subfolder_name/. * For example, to specify a subfolder named my-logs in a bucket named * my-bucket, use the following ARN: * arn:aws:s3:::my-bucket/my-logs/. You cannot use * AWSLogs as a subfolder name. This is a reserved term.

*/ inline CreateFlowLogsRequest& WithLogDestination(const Aws::String& value) { SetLogDestination(value); return *this;} /** *

Specifies the destination to which the flow log data is to be published. Flow * log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. * The value specified for this parameter depends on the value specified for * LogDestinationType.

If LogDestinationType is * not specified or cloud-watch-logs, specify the Amazon Resource Name * (ARN) of the CloudWatch Logs log group. For example, to publish to a log group * called my-logs, specify * arn:aws:logs:us-east-1:123456789012:log-group:my-logs. * Alternatively, use LogGroupName instead.

If * LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. * You can also specify a subfolder in the bucket. To specify a subfolder in the * bucket, use the following ARN format: bucket_ARN/subfolder_name/. * For example, to specify a subfolder named my-logs in a bucket named * my-bucket, use the following ARN: * arn:aws:s3:::my-bucket/my-logs/. You cannot use * AWSLogs as a subfolder name. This is a reserved term.

*/ inline CreateFlowLogsRequest& WithLogDestination(Aws::String&& value) { SetLogDestination(std::move(value)); return *this;} /** *

Specifies the destination to which the flow log data is to be published. Flow * log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. * The value specified for this parameter depends on the value specified for * LogDestinationType.

If LogDestinationType is * not specified or cloud-watch-logs, specify the Amazon Resource Name * (ARN) of the CloudWatch Logs log group. For example, to publish to a log group * called my-logs, specify * arn:aws:logs:us-east-1:123456789012:log-group:my-logs. * Alternatively, use LogGroupName instead.

If * LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. * You can also specify a subfolder in the bucket. To specify a subfolder in the * bucket, use the following ARN format: bucket_ARN/subfolder_name/. * For example, to specify a subfolder named my-logs in a bucket named * my-bucket, use the following ARN: * arn:aws:s3:::my-bucket/my-logs/. You cannot use * AWSLogs as a subfolder name. This is a reserved term.

*/ inline CreateFlowLogsRequest& WithLogDestination(const char* value) { SetLogDestination(value); return *this;} /** *

The fields to include in the flow log record, in the order in which they * should appear. For a list of available fields, see Flow * Log Records. If you omit this parameter, the flow log is created using the * default format. If you specify this parameter, you must specify at least one * field.

Specify the fields using the ${field-id} format, * separated by spaces. For the AWS CLI, use single quotation marks (' ') to * surround the parameter value.

*/ inline const Aws::String& GetLogFormat() const{ return m_logFormat; } /** *

The fields to include in the flow log record, in the order in which they * should appear. For a list of available fields, see Flow * Log Records. If you omit this parameter, the flow log is created using the * default format. If you specify this parameter, you must specify at least one * field.

Specify the fields using the ${field-id} format, * separated by spaces. For the AWS CLI, use single quotation marks (' ') to * surround the parameter value.

*/ inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; } /** *

The fields to include in the flow log record, in the order in which they * should appear. For a list of available fields, see Flow * Log Records. If you omit this parameter, the flow log is created using the * default format. If you specify this parameter, you must specify at least one * field.

Specify the fields using the ${field-id} format, * separated by spaces. For the AWS CLI, use single quotation marks (' ') to * surround the parameter value.

*/ inline void SetLogFormat(const Aws::String& value) { m_logFormatHasBeenSet = true; m_logFormat = value; } /** *

The fields to include in the flow log record, in the order in which they * should appear. For a list of available fields, see Flow * Log Records. If you omit this parameter, the flow log is created using the * default format. If you specify this parameter, you must specify at least one * field.

Specify the fields using the ${field-id} format, * separated by spaces. For the AWS CLI, use single quotation marks (' ') to * surround the parameter value.

*/ inline void SetLogFormat(Aws::String&& value) { m_logFormatHasBeenSet = true; m_logFormat = std::move(value); } /** *

The fields to include in the flow log record, in the order in which they * should appear. For a list of available fields, see Flow * Log Records. If you omit this parameter, the flow log is created using the * default format. If you specify this parameter, you must specify at least one * field.

Specify the fields using the ${field-id} format, * separated by spaces. For the AWS CLI, use single quotation marks (' ') to * surround the parameter value.

*/ inline void SetLogFormat(const char* value) { m_logFormatHasBeenSet = true; m_logFormat.assign(value); } /** *

The fields to include in the flow log record, in the order in which they * should appear. For a list of available fields, see Flow * Log Records. If you omit this parameter, the flow log is created using the * default format. If you specify this parameter, you must specify at least one * field.

Specify the fields using the ${field-id} format, * separated by spaces. For the AWS CLI, use single quotation marks (' ') to * surround the parameter value.

*/ inline CreateFlowLogsRequest& WithLogFormat(const Aws::String& value) { SetLogFormat(value); return *this;} /** *

The fields to include in the flow log record, in the order in which they * should appear. For a list of available fields, see Flow * Log Records. If you omit this parameter, the flow log is created using the * default format. If you specify this parameter, you must specify at least one * field.

Specify the fields using the ${field-id} format, * separated by spaces. For the AWS CLI, use single quotation marks (' ') to * surround the parameter value.

*/ inline CreateFlowLogsRequest& WithLogFormat(Aws::String&& value) { SetLogFormat(std::move(value)); return *this;} /** *

The fields to include in the flow log record, in the order in which they * should appear. For a list of available fields, see Flow * Log Records. If you omit this parameter, the flow log is created using the * default format. If you specify this parameter, you must specify at least one * field.

Specify the fields using the ${field-id} format, * separated by spaces. For the AWS CLI, use single quotation marks (' ') to * surround the parameter value.

*/ inline CreateFlowLogsRequest& WithLogFormat(const char* value) { SetLogFormat(value); return *this;} /** *

The tags to apply to the flow logs.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

The tags to apply to the flow logs.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

The tags to apply to the flow logs.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

The tags to apply to the flow logs.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

The tags to apply to the flow logs.

*/ inline CreateFlowLogsRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

The tags to apply to the flow logs.

*/ inline CreateFlowLogsRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

The tags to apply to the flow logs.

*/ inline CreateFlowLogsRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

The tags to apply to the flow logs.

*/ inline CreateFlowLogsRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *

The maximum interval of time during which a flow of packets is captured and * aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 * seconds (10 minutes).

When a network interface is attached to a Nitro-based * instance, the aggregation interval is always 60 seconds or less, regardless * of the value that you specify.

Default: 600

*/ inline int GetMaxAggregationInterval() const{ return m_maxAggregationInterval; } /** *

The maximum interval of time during which a flow of packets is captured and * aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 * seconds (10 minutes).

When a network interface is attached to a Nitro-based * instance, the aggregation interval is always 60 seconds or less, regardless * of the value that you specify.

Default: 600

*/ inline bool MaxAggregationIntervalHasBeenSet() const { return m_maxAggregationIntervalHasBeenSet; } /** *

The maximum interval of time during which a flow of packets is captured and * aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 * seconds (10 minutes).

When a network interface is attached to a Nitro-based * instance, the aggregation interval is always 60 seconds or less, regardless * of the value that you specify.

Default: 600

*/ inline void SetMaxAggregationInterval(int value) { m_maxAggregationIntervalHasBeenSet = true; m_maxAggregationInterval = value; } /** *

The maximum interval of time during which a flow of packets is captured and * aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 * seconds (10 minutes).

When a network interface is attached to a Nitro-based * instance, the aggregation interval is always 60 seconds or less, regardless * of the value that you specify.

Default: 600

*/ inline CreateFlowLogsRequest& WithMaxAggregationInterval(int value) { SetMaxAggregationInterval(value); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet; Aws::String m_clientToken; bool m_clientTokenHasBeenSet; Aws::String m_deliverLogsPermissionArn; bool m_deliverLogsPermissionArnHasBeenSet; Aws::String m_logGroupName; bool m_logGroupNameHasBeenSet; Aws::Vector m_resourceIds; bool m_resourceIdsHasBeenSet; FlowLogsResourceType m_resourceType; bool m_resourceTypeHasBeenSet; TrafficType m_trafficType; bool m_trafficTypeHasBeenSet; LogDestinationType m_logDestinationType; bool m_logDestinationTypeHasBeenSet; Aws::String m_logDestination; bool m_logDestinationHasBeenSet; Aws::String m_logFormat; bool m_logFormatHasBeenSet; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet; int m_maxAggregationInterval; bool m_maxAggregationIntervalHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws