536 lines
25 KiB
C++
536 lines
25 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/synthetics/Synthetics_EXPORTS.h>
|
|
#include <aws/synthetics/SyntheticsRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/synthetics/model/CanaryCodeInput.h>
|
|
#include <aws/synthetics/model/CanaryScheduleInput.h>
|
|
#include <aws/synthetics/model/CanaryRunConfigInput.h>
|
|
#include <aws/synthetics/model/VpcConfigInput.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Synthetics
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_SYNTHETICS_API UpdateCanaryRequest : public SyntheticsRequest
|
|
{
|
|
public:
|
|
UpdateCanaryRequest();
|
|
|
|
// 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 "UpdateCanary"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the canary that you want to update. To find the names of your
|
|
* canaries, use <a
|
|
* href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html">DescribeCanaries</a>.</p>
|
|
* <p>You cannot change the name of a canary that has already been created.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the canary that you want to update. To find the names of your
|
|
* canaries, use <a
|
|
* href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html">DescribeCanaries</a>.</p>
|
|
* <p>You cannot change the name of a canary that has already been created.</p>
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the canary that you want to update. To find the names of your
|
|
* canaries, use <a
|
|
* href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html">DescribeCanaries</a>.</p>
|
|
* <p>You cannot change the name of a canary that has already been created.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the canary that you want to update. To find the names of your
|
|
* canaries, use <a
|
|
* href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html">DescribeCanaries</a>.</p>
|
|
* <p>You cannot change the name of a canary that has already been created.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the canary that you want to update. To find the names of your
|
|
* canaries, use <a
|
|
* href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html">DescribeCanaries</a>.</p>
|
|
* <p>You cannot change the name of a canary that has already been created.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the canary that you want to update. To find the names of your
|
|
* canaries, use <a
|
|
* href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html">DescribeCanaries</a>.</p>
|
|
* <p>You cannot change the name of a canary that has already been created.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the canary that you want to update. To find the names of your
|
|
* canaries, use <a
|
|
* href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html">DescribeCanaries</a>.</p>
|
|
* <p>You cannot change the name of a canary that has already been created.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the canary that you want to update. To find the names of your
|
|
* canaries, use <a
|
|
* href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html">DescribeCanaries</a>.</p>
|
|
* <p>You cannot change the name of a canary that has already been created.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline const CanaryCodeInput& GetCode() const{ return m_code; }
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline void SetCode(const CanaryCodeInput& value) { m_codeHasBeenSet = true; m_code = value; }
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline void SetCode(CanaryCodeInput&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithCode(const CanaryCodeInput& value) { SetCode(value); return *this;}
|
|
|
|
/**
|
|
* <p>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. </p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithCode(CanaryCodeInput&& value) { SetCode(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the IAM role to be used to run the canary. This role must already
|
|
* exist, and must include <code>lambda.amazonaws.com</code> as a principal in the
|
|
* trust policy. The role must also have the following permissions:</p> <ul> <li>
|
|
* <p> <code>s3:PutObject</code> </p> </li> <li> <p>
|
|
* <code>s3:GetBucketLocation</code> </p> </li> <li> <p>
|
|
* <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p>
|
|
* <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogGroup</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> </ul>
|
|
*/
|
|
inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM role to be used to run the canary. This role must already
|
|
* exist, and must include <code>lambda.amazonaws.com</code> as a principal in the
|
|
* trust policy. The role must also have the following permissions:</p> <ul> <li>
|
|
* <p> <code>s3:PutObject</code> </p> </li> <li> <p>
|
|
* <code>s3:GetBucketLocation</code> </p> </li> <li> <p>
|
|
* <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p>
|
|
* <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogGroup</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> </ul>
|
|
*/
|
|
inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM role to be used to run the canary. This role must already
|
|
* exist, and must include <code>lambda.amazonaws.com</code> as a principal in the
|
|
* trust policy. The role must also have the following permissions:</p> <ul> <li>
|
|
* <p> <code>s3:PutObject</code> </p> </li> <li> <p>
|
|
* <code>s3:GetBucketLocation</code> </p> </li> <li> <p>
|
|
* <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p>
|
|
* <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogGroup</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> </ul>
|
|
*/
|
|
inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM role to be used to run the canary. This role must already
|
|
* exist, and must include <code>lambda.amazonaws.com</code> as a principal in the
|
|
* trust policy. The role must also have the following permissions:</p> <ul> <li>
|
|
* <p> <code>s3:PutObject</code> </p> </li> <li> <p>
|
|
* <code>s3:GetBucketLocation</code> </p> </li> <li> <p>
|
|
* <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p>
|
|
* <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogGroup</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> </ul>
|
|
*/
|
|
inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM role to be used to run the canary. This role must already
|
|
* exist, and must include <code>lambda.amazonaws.com</code> as a principal in the
|
|
* trust policy. The role must also have the following permissions:</p> <ul> <li>
|
|
* <p> <code>s3:PutObject</code> </p> </li> <li> <p>
|
|
* <code>s3:GetBucketLocation</code> </p> </li> <li> <p>
|
|
* <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p>
|
|
* <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogGroup</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> </ul>
|
|
*/
|
|
inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM role to be used to run the canary. This role must already
|
|
* exist, and must include <code>lambda.amazonaws.com</code> as a principal in the
|
|
* trust policy. The role must also have the following permissions:</p> <ul> <li>
|
|
* <p> <code>s3:PutObject</code> </p> </li> <li> <p>
|
|
* <code>s3:GetBucketLocation</code> </p> </li> <li> <p>
|
|
* <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p>
|
|
* <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogGroup</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> </ul>
|
|
*/
|
|
inline UpdateCanaryRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the IAM role to be used to run the canary. This role must already
|
|
* exist, and must include <code>lambda.amazonaws.com</code> as a principal in the
|
|
* trust policy. The role must also have the following permissions:</p> <ul> <li>
|
|
* <p> <code>s3:PutObject</code> </p> </li> <li> <p>
|
|
* <code>s3:GetBucketLocation</code> </p> </li> <li> <p>
|
|
* <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p>
|
|
* <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogGroup</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> </ul>
|
|
*/
|
|
inline UpdateCanaryRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the IAM role to be used to run the canary. This role must already
|
|
* exist, and must include <code>lambda.amazonaws.com</code> as a principal in the
|
|
* trust policy. The role must also have the following permissions:</p> <ul> <li>
|
|
* <p> <code>s3:PutObject</code> </p> </li> <li> <p>
|
|
* <code>s3:GetBucketLocation</code> </p> </li> <li> <p>
|
|
* <code>s3:ListAllMyBuckets</code> </p> </li> <li> <p>
|
|
* <code>cloudwatch:PutMetricData</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogGroup</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> <li> <p>
|
|
* <code>logs:CreateLogStream</code> </p> </li> </ul>
|
|
*/
|
|
inline UpdateCanaryRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Specifies the runtime version to use for the canary. Currently, the only
|
|
* valid value is <code>syn-1.0</code>. For more information about runtime
|
|
* versions, see <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
|
|
* Canary Runtime Versions</a>.</p>
|
|
*/
|
|
inline const Aws::String& GetRuntimeVersion() const{ return m_runtimeVersion; }
|
|
|
|
/**
|
|
* <p>Specifies the runtime version to use for the canary. Currently, the only
|
|
* valid value is <code>syn-1.0</code>. For more information about runtime
|
|
* versions, see <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
|
|
* Canary Runtime Versions</a>.</p>
|
|
*/
|
|
inline bool RuntimeVersionHasBeenSet() const { return m_runtimeVersionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies the runtime version to use for the canary. Currently, the only
|
|
* valid value is <code>syn-1.0</code>. For more information about runtime
|
|
* versions, see <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
|
|
* Canary Runtime Versions</a>.</p>
|
|
*/
|
|
inline void SetRuntimeVersion(const Aws::String& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = value; }
|
|
|
|
/**
|
|
* <p>Specifies the runtime version to use for the canary. Currently, the only
|
|
* valid value is <code>syn-1.0</code>. For more information about runtime
|
|
* versions, see <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
|
|
* Canary Runtime Versions</a>.</p>
|
|
*/
|
|
inline void SetRuntimeVersion(Aws::String&& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = std::move(value); }
|
|
|
|
/**
|
|
* <p>Specifies the runtime version to use for the canary. Currently, the only
|
|
* valid value is <code>syn-1.0</code>. For more information about runtime
|
|
* versions, see <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
|
|
* Canary Runtime Versions</a>.</p>
|
|
*/
|
|
inline void SetRuntimeVersion(const char* value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion.assign(value); }
|
|
|
|
/**
|
|
* <p>Specifies the runtime version to use for the canary. Currently, the only
|
|
* valid value is <code>syn-1.0</code>. For more information about runtime
|
|
* versions, see <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
|
|
* Canary Runtime Versions</a>.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithRuntimeVersion(const Aws::String& value) { SetRuntimeVersion(value); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the runtime version to use for the canary. Currently, the only
|
|
* valid value is <code>syn-1.0</code>. For more information about runtime
|
|
* versions, see <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
|
|
* Canary Runtime Versions</a>.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithRuntimeVersion(Aws::String&& value) { SetRuntimeVersion(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the runtime version to use for the canary. Currently, the only
|
|
* valid value is <code>syn-1.0</code>. For more information about runtime
|
|
* versions, see <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
|
|
* Canary Runtime Versions</a>.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithRuntimeVersion(const char* value) { SetRuntimeVersion(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A structure that contains information about how often the canary is to run,
|
|
* and when these runs are to stop.</p>
|
|
*/
|
|
inline const CanaryScheduleInput& GetSchedule() const{ return m_schedule; }
|
|
|
|
/**
|
|
* <p>A structure that contains information about how often the canary is to run,
|
|
* and when these runs are to stop.</p>
|
|
*/
|
|
inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A structure that contains information about how often the canary is to run,
|
|
* and when these runs are to stop.</p>
|
|
*/
|
|
inline void SetSchedule(const CanaryScheduleInput& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
|
|
|
|
/**
|
|
* <p>A structure that contains information about how often the canary is to run,
|
|
* and when these runs are to stop.</p>
|
|
*/
|
|
inline void SetSchedule(CanaryScheduleInput&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
|
|
|
|
/**
|
|
* <p>A structure that contains information about how often the canary is to run,
|
|
* and when these runs are to stop.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithSchedule(const CanaryScheduleInput& value) { SetSchedule(value); return *this;}
|
|
|
|
/**
|
|
* <p>A structure that contains information about how often the canary is to run,
|
|
* and when these runs are to stop.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithSchedule(CanaryScheduleInput&& value) { SetSchedule(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A structure that contains the timeout value that is used for each individual
|
|
* run of the canary.</p>
|
|
*/
|
|
inline const CanaryRunConfigInput& GetRunConfig() const{ return m_runConfig; }
|
|
|
|
/**
|
|
* <p>A structure that contains the timeout value that is used for each individual
|
|
* run of the canary.</p>
|
|
*/
|
|
inline bool RunConfigHasBeenSet() const { return m_runConfigHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A structure that contains the timeout value that is used for each individual
|
|
* run of the canary.</p>
|
|
*/
|
|
inline void SetRunConfig(const CanaryRunConfigInput& value) { m_runConfigHasBeenSet = true; m_runConfig = value; }
|
|
|
|
/**
|
|
* <p>A structure that contains the timeout value that is used for each individual
|
|
* run of the canary.</p>
|
|
*/
|
|
inline void SetRunConfig(CanaryRunConfigInput&& value) { m_runConfigHasBeenSet = true; m_runConfig = std::move(value); }
|
|
|
|
/**
|
|
* <p>A structure that contains the timeout value that is used for each individual
|
|
* run of the canary.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithRunConfig(const CanaryRunConfigInput& value) { SetRunConfig(value); return *this;}
|
|
|
|
/**
|
|
* <p>A structure that contains the timeout value that is used for each individual
|
|
* run of the canary.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithRunConfig(CanaryRunConfigInput&& value) { SetRunConfig(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The number of days to retain data about successful runs of this canary.</p>
|
|
*/
|
|
inline int GetSuccessRetentionPeriodInDays() const{ return m_successRetentionPeriodInDays; }
|
|
|
|
/**
|
|
* <p>The number of days to retain data about successful runs of this canary.</p>
|
|
*/
|
|
inline bool SuccessRetentionPeriodInDaysHasBeenSet() const { return m_successRetentionPeriodInDaysHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The number of days to retain data about successful runs of this canary.</p>
|
|
*/
|
|
inline void SetSuccessRetentionPeriodInDays(int value) { m_successRetentionPeriodInDaysHasBeenSet = true; m_successRetentionPeriodInDays = value; }
|
|
|
|
/**
|
|
* <p>The number of days to retain data about successful runs of this canary.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithSuccessRetentionPeriodInDays(int value) { SetSuccessRetentionPeriodInDays(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The number of days to retain data about failed runs of this canary.</p>
|
|
*/
|
|
inline int GetFailureRetentionPeriodInDays() const{ return m_failureRetentionPeriodInDays; }
|
|
|
|
/**
|
|
* <p>The number of days to retain data about failed runs of this canary.</p>
|
|
*/
|
|
inline bool FailureRetentionPeriodInDaysHasBeenSet() const { return m_failureRetentionPeriodInDaysHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The number of days to retain data about failed runs of this canary.</p>
|
|
*/
|
|
inline void SetFailureRetentionPeriodInDays(int value) { m_failureRetentionPeriodInDaysHasBeenSet = true; m_failureRetentionPeriodInDays = value; }
|
|
|
|
/**
|
|
* <p>The number of days to retain data about failed runs of this canary.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithFailureRetentionPeriodInDays(int value) { SetFailureRetentionPeriodInDays(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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 <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html">
|
|
* Running a Canary in a VPC</a>.</p>
|
|
*/
|
|
inline const VpcConfigInput& GetVpcConfig() const{ return m_vpcConfig; }
|
|
|
|
/**
|
|
* <p>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 <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html">
|
|
* Running a Canary in a VPC</a>.</p>
|
|
*/
|
|
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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 <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html">
|
|
* Running a Canary in a VPC</a>.</p>
|
|
*/
|
|
inline void SetVpcConfig(const VpcConfigInput& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
|
|
|
|
/**
|
|
* <p>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 <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html">
|
|
* Running a Canary in a VPC</a>.</p>
|
|
*/
|
|
inline void SetVpcConfig(VpcConfigInput&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
|
|
|
|
/**
|
|
* <p>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 <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html">
|
|
* Running a Canary in a VPC</a>.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithVpcConfig(const VpcConfigInput& value) { SetVpcConfig(value); return *this;}
|
|
|
|
/**
|
|
* <p>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 <a
|
|
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html">
|
|
* Running a Canary in a VPC</a>.</p>
|
|
*/
|
|
inline UpdateCanaryRequest& WithVpcConfig(VpcConfigInput&& value) { SetVpcConfig(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
CanaryCodeInput m_code;
|
|
bool m_codeHasBeenSet;
|
|
|
|
Aws::String m_executionRoleArn;
|
|
bool m_executionRoleArnHasBeenSet;
|
|
|
|
Aws::String m_runtimeVersion;
|
|
bool m_runtimeVersionHasBeenSet;
|
|
|
|
CanaryScheduleInput m_schedule;
|
|
bool m_scheduleHasBeenSet;
|
|
|
|
CanaryRunConfigInput m_runConfig;
|
|
bool m_runConfigHasBeenSet;
|
|
|
|
int m_successRetentionPeriodInDays;
|
|
bool m_successRetentionPeriodInDaysHasBeenSet;
|
|
|
|
int m_failureRetentionPeriodInDays;
|
|
bool m_failureRetentionPeriodInDaysHasBeenSet;
|
|
|
|
VpcConfigInput m_vpcConfig;
|
|
bool m_vpcConfigHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Synthetics
|
|
} // namespace Aws
|