/** * 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 #include namespace Aws { namespace Synthetics { namespace Model { /** */ class CreateCanaryRequest : public SyntheticsRequest { public: AWS_SYNTHETICS_API CreateCanaryRequest(); // 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 "CreateCanary"; } AWS_SYNTHETICS_API Aws::String SerializePayload() const override; /** *

The name for this canary. Be sure to give it a descriptive name that * distinguishes it from other canaries in your account.

Do not include * secrets or proprietary information in your canary names. The canary name makes * up part of the canary ARN, and the ARN is included in outbound calls over the * internet. For more information, see Security * Considerations for Synthetics Canaries.

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

The name for this canary. Be sure to give it a descriptive name that * distinguishes it from other canaries in your account.

Do not include * secrets or proprietary information in your canary names. The canary name makes * up part of the canary ARN, and the ARN is included in outbound calls over the * internet. For more information, see Security * Considerations for Synthetics Canaries.

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

The name for this canary. Be sure to give it a descriptive name that * distinguishes it from other canaries in your account.

Do not include * secrets or proprietary information in your canary names. The canary name makes * up part of the canary ARN, and the ARN is included in outbound calls over the * internet. For more information, see Security * Considerations for Synthetics Canaries.

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

The name for this canary. Be sure to give it a descriptive name that * distinguishes it from other canaries in your account.

Do not include * secrets or proprietary information in your canary names. The canary name makes * up part of the canary ARN, and the ARN is included in outbound calls over the * internet. For more information, see Security * Considerations for Synthetics Canaries.

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

The name for this canary. Be sure to give it a descriptive name that * distinguishes it from other canaries in your account.

Do not include * secrets or proprietary information in your canary names. The canary name makes * up part of the canary ARN, and the ARN is included in outbound calls over the * internet. For more information, see Security * Considerations for Synthetics Canaries.

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

The name for this canary. Be sure to give it a descriptive name that * distinguishes it from other canaries in your account.

Do not include * secrets or proprietary information in your canary names. The canary name makes * up part of the canary ARN, and the ARN is included in outbound calls over the * internet. For more information, see Security * Considerations for Synthetics Canaries.

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

The name for this canary. Be sure to give it a descriptive name that * distinguishes it from other canaries in your account.

Do not include * secrets or proprietary information in your canary names. The canary name makes * up part of the canary ARN, and the ARN is included in outbound calls over the * internet. For more information, see Security * Considerations for Synthetics Canaries.

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

The name for this canary. Be sure to give it a descriptive name that * distinguishes it from other canaries in your account.

Do not include * secrets or proprietary information in your canary names. The canary name makes * up part of the canary ARN, and the ARN is included in outbound calls over the * internet. For more information, see Security * Considerations for Synthetics Canaries.

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

A structure that includes the entry point from which the canary should start * running your script. If the script is stored in an S3 bucket, the bucket name, * key, and version are also included.

*/ inline const CanaryCodeInput& GetCode() const{ return m_code; } /** *

A structure that includes the entry point from which the canary should start * running your script. If the script is stored in an S3 bucket, the bucket name, * key, and version are also included.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

A structure that includes the entry point from which the canary should start * running your script. If the script is stored in an S3 bucket, the bucket name, * key, and version are also included.

*/ inline void SetCode(const CanaryCodeInput& value) { m_codeHasBeenSet = true; m_code = value; } /** *

A structure that includes the entry point from which the canary should start * running your script. If the script is stored in an S3 bucket, the bucket name, * key, and version are also included.

*/ inline void SetCode(CanaryCodeInput&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

A structure that includes the entry point from which the canary should start * running your script. If the script is stored in an S3 bucket, the bucket name, * key, and version are also included.

*/ inline CreateCanaryRequest& WithCode(const CanaryCodeInput& value) { SetCode(value); return *this;} /** *

A structure that includes the entry point from which the canary should start * running your script. If the script is stored in an S3 bucket, the bucket name, * key, and version are also included.

*/ inline CreateCanaryRequest& WithCode(CanaryCodeInput&& value) { SetCode(std::move(value)); return *this;} /** *

The location in Amazon S3 where Synthetics stores artifacts from the test * runs of this canary. Artifacts include the log file, screenshots, and HAR files. * The name of the S3 bucket can't include a period (.).

*/ inline const Aws::String& GetArtifactS3Location() const{ return m_artifactS3Location; } /** *

The location in Amazon S3 where Synthetics stores artifacts from the test * runs of this canary. Artifacts include the log file, screenshots, and HAR files. * The name of the S3 bucket can't include a period (.).

*/ inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; } /** *

The location in Amazon S3 where Synthetics stores artifacts from the test * runs of this canary. Artifacts include the log file, screenshots, and HAR files. * The name of the S3 bucket can't include a period (.).

*/ inline void SetArtifactS3Location(const Aws::String& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = value; } /** *

The location in Amazon S3 where Synthetics stores artifacts from the test * runs of this canary. Artifacts include the log file, screenshots, and HAR files. * The name of the S3 bucket can't include a period (.).

*/ inline void SetArtifactS3Location(Aws::String&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::move(value); } /** *

The location in Amazon S3 where Synthetics stores artifacts from the test * runs of this canary. Artifacts include the log file, screenshots, and HAR files. * The name of the S3 bucket can't include a period (.).

*/ inline void SetArtifactS3Location(const char* value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location.assign(value); } /** *

The location in Amazon S3 where Synthetics stores artifacts from the test * runs of this canary. Artifacts include the log file, screenshots, and HAR files. * The name of the S3 bucket can't include a period (.).

*/ inline CreateCanaryRequest& WithArtifactS3Location(const Aws::String& value) { SetArtifactS3Location(value); return *this;} /** *

The location in Amazon S3 where Synthetics stores artifacts from the test * runs of this canary. Artifacts include the log file, screenshots, and HAR files. * The name of the S3 bucket can't include a period (.).

*/ inline CreateCanaryRequest& WithArtifactS3Location(Aws::String&& value) { SetArtifactS3Location(std::move(value)); return *this;} /** *

The location in Amazon S3 where Synthetics stores artifacts from the test * runs of this canary. Artifacts include the log file, screenshots, and HAR files. * The name of the S3 bucket can't include a period (.).

*/ inline CreateCanaryRequest& WithArtifactS3Location(const char* value) { SetArtifactS3Location(value); return *this;} /** *

The ARN of the IAM role to be used to run the canary. This role must already * exist, and must include lambda.amazonaws.com as a principal in the * trust policy. The role must also have the following permissions:

  • *

    s3:PutObject

  • * s3:GetBucketLocation

  • * s3:ListAllMyBuckets

  • * cloudwatch:PutMetricData

  • * logs:CreateLogGroup

  • * logs:CreateLogStream

  • * logs:PutLogEvents

*/ inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; } /** *

The ARN of the IAM role to be used to run the canary. This role must already * exist, and must include lambda.amazonaws.com as a principal in the * trust policy. The role must also have the following permissions:

  • *

    s3:PutObject

  • * s3:GetBucketLocation

  • * s3:ListAllMyBuckets

  • * cloudwatch:PutMetricData

  • * logs:CreateLogGroup

  • * logs:CreateLogStream

  • * logs:PutLogEvents

*/ inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; } /** *

The ARN of the IAM role to be used to run the canary. This role must already * exist, and must include lambda.amazonaws.com as a principal in the * trust policy. The role must also have the following permissions:

  • *

    s3:PutObject

  • * s3:GetBucketLocation

  • * s3:ListAllMyBuckets

  • * cloudwatch:PutMetricData

  • * logs:CreateLogGroup

  • * logs:CreateLogStream

  • * logs:PutLogEvents

*/ inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; } /** *

The ARN of the IAM role to be used to run the canary. This role must already * exist, and must include lambda.amazonaws.com as a principal in the * trust policy. The role must also have the following permissions:

  • *

    s3:PutObject

  • * s3:GetBucketLocation

  • * s3:ListAllMyBuckets

  • * cloudwatch:PutMetricData

  • * logs:CreateLogGroup

  • * logs:CreateLogStream

  • * logs:PutLogEvents

*/ inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); } /** *

The ARN of the IAM role to be used to run the canary. This role must already * exist, and must include lambda.amazonaws.com as a principal in the * trust policy. The role must also have the following permissions:

  • *

    s3:PutObject

  • * s3:GetBucketLocation

  • * s3:ListAllMyBuckets

  • * cloudwatch:PutMetricData

  • * logs:CreateLogGroup

  • * logs:CreateLogStream

  • * logs:PutLogEvents

*/ inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); } /** *

The ARN of the IAM role to be used to run the canary. This role must already * exist, and must include lambda.amazonaws.com as a principal in the * trust policy. The role must also have the following permissions:

  • *

    s3:PutObject

  • * s3:GetBucketLocation

  • * s3:ListAllMyBuckets

  • * cloudwatch:PutMetricData

  • * logs:CreateLogGroup

  • * logs:CreateLogStream

  • * logs:PutLogEvents

*/ inline CreateCanaryRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;} /** *

The ARN of the IAM role to be used to run the canary. This role must already * exist, and must include lambda.amazonaws.com as a principal in the * trust policy. The role must also have the following permissions:

  • *

    s3:PutObject

  • * s3:GetBucketLocation

  • * s3:ListAllMyBuckets

  • * cloudwatch:PutMetricData

  • * logs:CreateLogGroup

  • * logs:CreateLogStream

  • * logs:PutLogEvents

*/ inline CreateCanaryRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;} /** *

The ARN of the IAM role to be used to run the canary. This role must already * exist, and must include lambda.amazonaws.com as a principal in the * trust policy. The role must also have the following permissions:

  • *

    s3:PutObject

  • * s3:GetBucketLocation

  • * s3:ListAllMyBuckets

  • * cloudwatch:PutMetricData

  • * logs:CreateLogGroup

  • * logs:CreateLogStream

  • * logs:PutLogEvents

*/ inline CreateCanaryRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;} /** *

A structure that contains information about how often the canary is to run * and when these test runs are to stop.

*/ inline const CanaryScheduleInput& GetSchedule() const{ return m_schedule; } /** *

A structure that contains information about how often the canary is to run * and when these test runs are to stop.

*/ inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } /** *

A structure that contains information about how often the canary is to run * and when these test runs are to stop.

*/ inline void SetSchedule(const CanaryScheduleInput& value) { m_scheduleHasBeenSet = true; m_schedule = value; } /** *

A structure that contains information about how often the canary is to run * and when these test runs are to stop.

*/ inline void SetSchedule(CanaryScheduleInput&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } /** *

A structure that contains information about how often the canary is to run * and when these test runs are to stop.

*/ inline CreateCanaryRequest& WithSchedule(const CanaryScheduleInput& value) { SetSchedule(value); return *this;} /** *

A structure that contains information about how often the canary is to run * and when these test runs are to stop.

*/ inline CreateCanaryRequest& WithSchedule(CanaryScheduleInput&& value) { SetSchedule(std::move(value)); return *this;} /** *

A structure that contains the configuration for individual canary runs, such * as timeout value and environment variables.

The environment * variables keys and values are not encrypted. Do not store sensitive information * in this field.

*/ inline const CanaryRunConfigInput& GetRunConfig() const{ return m_runConfig; } /** *

A structure that contains the configuration for individual canary runs, such * as timeout value and environment variables.

The environment * variables keys and values are not encrypted. Do not store sensitive information * in this field.

*/ inline bool RunConfigHasBeenSet() const { return m_runConfigHasBeenSet; } /** *

A structure that contains the configuration for individual canary runs, such * as timeout value and environment variables.

The environment * variables keys and values are not encrypted. Do not store sensitive information * in this field.

*/ inline void SetRunConfig(const CanaryRunConfigInput& value) { m_runConfigHasBeenSet = true; m_runConfig = value; } /** *

A structure that contains the configuration for individual canary runs, such * as timeout value and environment variables.

The environment * variables keys and values are not encrypted. Do not store sensitive information * in this field.

*/ inline void SetRunConfig(CanaryRunConfigInput&& value) { m_runConfigHasBeenSet = true; m_runConfig = std::move(value); } /** *

A structure that contains the configuration for individual canary runs, such * as timeout value and environment variables.

The environment * variables keys and values are not encrypted. Do not store sensitive information * in this field.

*/ inline CreateCanaryRequest& WithRunConfig(const CanaryRunConfigInput& value) { SetRunConfig(value); return *this;} /** *

A structure that contains the configuration for individual canary runs, such * as timeout value and environment variables.

The environment * variables keys and values are not encrypted. Do not store sensitive information * in this field.

*/ inline CreateCanaryRequest& WithRunConfig(CanaryRunConfigInput&& value) { SetRunConfig(std::move(value)); return *this;} /** *

The number of days to retain data about successful runs of this canary. If * you omit this field, the default of 31 days is used. The valid range is 1 to 455 * days.

*/ inline int GetSuccessRetentionPeriodInDays() const{ return m_successRetentionPeriodInDays; } /** *

The number of days to retain data about successful runs of this canary. If * you omit this field, the default of 31 days is used. The valid range is 1 to 455 * days.

*/ inline bool SuccessRetentionPeriodInDaysHasBeenSet() const { return m_successRetentionPeriodInDaysHasBeenSet; } /** *

The number of days to retain data about successful runs of this canary. If * you omit this field, the default of 31 days is used. The valid range is 1 to 455 * days.

*/ inline void SetSuccessRetentionPeriodInDays(int value) { m_successRetentionPeriodInDaysHasBeenSet = true; m_successRetentionPeriodInDays = value; } /** *

The number of days to retain data about successful runs of this canary. If * you omit this field, the default of 31 days is used. The valid range is 1 to 455 * days.

*/ inline CreateCanaryRequest& WithSuccessRetentionPeriodInDays(int value) { SetSuccessRetentionPeriodInDays(value); return *this;} /** *

The number of days to retain data about failed runs of this canary. If you * omit this field, the default of 31 days is used. The valid range is 1 to 455 * days.

*/ inline int GetFailureRetentionPeriodInDays() const{ return m_failureRetentionPeriodInDays; } /** *

The number of days to retain data about failed runs of this canary. If you * omit this field, the default of 31 days is used. The valid range is 1 to 455 * days.

*/ inline bool FailureRetentionPeriodInDaysHasBeenSet() const { return m_failureRetentionPeriodInDaysHasBeenSet; } /** *

The number of days to retain data about failed runs of this canary. If you * omit this field, the default of 31 days is used. The valid range is 1 to 455 * days.

*/ inline void SetFailureRetentionPeriodInDays(int value) { m_failureRetentionPeriodInDaysHasBeenSet = true; m_failureRetentionPeriodInDays = value; } /** *

The number of days to retain data about failed runs of this canary. If you * omit this field, the default of 31 days is used. The valid range is 1 to 455 * days.

*/ inline CreateCanaryRequest& WithFailureRetentionPeriodInDays(int value) { SetFailureRetentionPeriodInDays(value); return *this;} /** *

Specifies the runtime version to use for the canary. For a list of valid * runtime versions and more information about runtime versions, see * Canary Runtime Versions.

*/ inline const Aws::String& GetRuntimeVersion() const{ return m_runtimeVersion; } /** *

Specifies the runtime version to use for the canary. For a list of valid * runtime versions and more information about runtime versions, see * Canary Runtime Versions.

*/ inline bool RuntimeVersionHasBeenSet() const { return m_runtimeVersionHasBeenSet; } /** *

Specifies the runtime version to use for the canary. For a list of valid * runtime versions and more information about runtime versions, see * Canary Runtime Versions.

*/ inline void SetRuntimeVersion(const Aws::String& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = value; } /** *

Specifies the runtime version to use for the canary. For a list of valid * runtime versions and more information about runtime versions, see * Canary Runtime Versions.

*/ inline void SetRuntimeVersion(Aws::String&& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = std::move(value); } /** *

Specifies the runtime version to use for the canary. For a list of valid * runtime versions and more information about runtime versions, see * Canary Runtime Versions.

*/ inline void SetRuntimeVersion(const char* value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion.assign(value); } /** *

Specifies the runtime version to use for the canary. For a list of valid * runtime versions and more information about runtime versions, see * Canary Runtime Versions.

*/ inline CreateCanaryRequest& WithRuntimeVersion(const Aws::String& value) { SetRuntimeVersion(value); return *this;} /** *

Specifies the runtime version to use for the canary. For a list of valid * runtime versions and more information about runtime versions, see * Canary Runtime Versions.

*/ inline CreateCanaryRequest& WithRuntimeVersion(Aws::String&& value) { SetRuntimeVersion(std::move(value)); return *this;} /** *

Specifies the runtime version to use for the canary. For a list of valid * runtime versions and more information about runtime versions, see * Canary Runtime Versions.

*/ inline CreateCanaryRequest& WithRuntimeVersion(const char* value) { SetRuntimeVersion(value); return *this;} /** *

If this canary is to test an endpoint in a VPC, this structure contains * information about the subnet and security groups of the VPC endpoint. For more * information, see * Running a Canary in a VPC.

*/ inline const VpcConfigInput& GetVpcConfig() const{ return m_vpcConfig; } /** *

If this canary is to test an endpoint in a VPC, this structure contains * information about the subnet and security groups of the VPC endpoint. For more * information, see * Running a Canary in a VPC.

*/ inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } /** *

If this canary is to test an endpoint in a VPC, this structure contains * information about the subnet and security groups of the VPC endpoint. For more * information, see * Running a Canary in a VPC.

*/ inline void SetVpcConfig(const VpcConfigInput& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } /** *

If this canary is to test an endpoint in a VPC, this structure contains * information about the subnet and security groups of the VPC endpoint. For more * information, see * Running a Canary in a VPC.

*/ inline void SetVpcConfig(VpcConfigInput&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } /** *

If this canary is to test an endpoint in a VPC, this structure contains * information about the subnet and security groups of the VPC endpoint. For more * information, see * Running a Canary in a VPC.

*/ inline CreateCanaryRequest& WithVpcConfig(const VpcConfigInput& value) { SetVpcConfig(value); return *this;} /** *

If this canary is to test an endpoint in a VPC, this structure contains * information about the subnet and security groups of the VPC endpoint. For more * information, see * Running a Canary in a VPC.

*/ inline CreateCanaryRequest& WithVpcConfig(VpcConfigInput&& value) { SetVpcConfig(std::move(value)); return *this;} /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateCanaryRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateCanaryRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateCanaryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateCanaryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateCanaryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateCanaryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateCanaryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateCanaryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of key-value pairs to associate with the canary. You can associate as * many as 50 tags with a canary.

Tags can help you organize and categorize * your resources. You can also use them to scope user permissions, by granting a * user permission to access or change only the resources that have certain tag * values.

*/ inline CreateCanaryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A structure that contains the configuration for canary artifacts, including * the encryption-at-rest settings for artifacts that the canary uploads to Amazon * S3.

*/ inline const ArtifactConfigInput& GetArtifactConfig() const{ return m_artifactConfig; } /** *

A structure that contains the configuration for canary artifacts, including * the encryption-at-rest settings for artifacts that the canary uploads to Amazon * S3.

*/ inline bool ArtifactConfigHasBeenSet() const { return m_artifactConfigHasBeenSet; } /** *

A structure that contains the configuration for canary artifacts, including * the encryption-at-rest settings for artifacts that the canary uploads to Amazon * S3.

*/ inline void SetArtifactConfig(const ArtifactConfigInput& value) { m_artifactConfigHasBeenSet = true; m_artifactConfig = value; } /** *

A structure that contains the configuration for canary artifacts, including * the encryption-at-rest settings for artifacts that the canary uploads to Amazon * S3.

*/ inline void SetArtifactConfig(ArtifactConfigInput&& value) { m_artifactConfigHasBeenSet = true; m_artifactConfig = std::move(value); } /** *

A structure that contains the configuration for canary artifacts, including * the encryption-at-rest settings for artifacts that the canary uploads to Amazon * S3.

*/ inline CreateCanaryRequest& WithArtifactConfig(const ArtifactConfigInput& value) { SetArtifactConfig(value); return *this;} /** *

A structure that contains the configuration for canary artifacts, including * the encryption-at-rest settings for artifacts that the canary uploads to Amazon * S3.

*/ inline CreateCanaryRequest& WithArtifactConfig(ArtifactConfigInput&& value) { SetArtifactConfig(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; CanaryCodeInput m_code; bool m_codeHasBeenSet = false; Aws::String m_artifactS3Location; bool m_artifactS3LocationHasBeenSet = false; Aws::String m_executionRoleArn; bool m_executionRoleArnHasBeenSet = false; CanaryScheduleInput m_schedule; bool m_scheduleHasBeenSet = false; CanaryRunConfigInput m_runConfig; bool m_runConfigHasBeenSet = false; int m_successRetentionPeriodInDays; bool m_successRetentionPeriodInDaysHasBeenSet = false; int m_failureRetentionPeriodInDays; bool m_failureRetentionPeriodInDaysHasBeenSet = false; Aws::String m_runtimeVersion; bool m_runtimeVersionHasBeenSet = false; VpcConfigInput m_vpcConfig; bool m_vpcConfigHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; ArtifactConfigInput m_artifactConfig; bool m_artifactConfigHasBeenSet = false; }; } // namespace Model } // namespace Synthetics } // namespace Aws