230 lines
11 KiB
C++
230 lines
11 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/waf/WAF_EXPORTS.h>
|
|
#include <aws/waf/WAFRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace WAF
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_WAF_API CreateWebACLMigrationStackRequest : public WAFRequest
|
|
{
|
|
public:
|
|
CreateWebACLMigrationStackRequest();
|
|
|
|
// 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 "CreateWebACLMigrationStack"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
|
|
*/
|
|
inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
|
|
|
|
/**
|
|
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
|
|
*/
|
|
inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
|
|
*/
|
|
inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
|
|
|
|
/**
|
|
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
|
|
*/
|
|
inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
|
|
*/
|
|
inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
|
|
|
|
/**
|
|
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
|
|
*/
|
|
inline CreateWebACLMigrationStackRequest& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
|
|
*/
|
|
inline CreateWebACLMigrationStackRequest& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
|
|
*/
|
|
inline CreateWebACLMigrationStackRequest& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
|
|
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
|
|
* bucket name must start with <code>aws-waf-migration-</code>. For example,
|
|
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
|
|
* in the Region where you are deploying the template. For example, for a web ACL
|
|
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
|
|
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
|
|
* permit the migration process to write data. For listings of the bucket policies,
|
|
* see the Examples section. </p> </li> </ul>
|
|
*/
|
|
inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
|
|
|
|
/**
|
|
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
|
|
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
|
|
* bucket name must start with <code>aws-waf-migration-</code>. For example,
|
|
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
|
|
* in the Region where you are deploying the template. For example, for a web ACL
|
|
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
|
|
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
|
|
* permit the migration process to write data. For listings of the bucket policies,
|
|
* see the Examples section. </p> </li> </ul>
|
|
*/
|
|
inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
|
|
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
|
|
* bucket name must start with <code>aws-waf-migration-</code>. For example,
|
|
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
|
|
* in the Region where you are deploying the template. For example, for a web ACL
|
|
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
|
|
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
|
|
* permit the migration process to write data. For listings of the bucket policies,
|
|
* see the Examples section. </p> </li> </ul>
|
|
*/
|
|
inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
|
|
|
|
/**
|
|
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
|
|
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
|
|
* bucket name must start with <code>aws-waf-migration-</code>. For example,
|
|
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
|
|
* in the Region where you are deploying the template. For example, for a web ACL
|
|
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
|
|
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
|
|
* permit the migration process to write data. For listings of the bucket policies,
|
|
* see the Examples section. </p> </li> </ul>
|
|
*/
|
|
inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
|
|
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
|
|
* bucket name must start with <code>aws-waf-migration-</code>. For example,
|
|
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
|
|
* in the Region where you are deploying the template. For example, for a web ACL
|
|
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
|
|
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
|
|
* permit the migration process to write data. For listings of the bucket policies,
|
|
* see the Examples section. </p> </li> </ul>
|
|
*/
|
|
inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
|
|
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
|
|
* bucket name must start with <code>aws-waf-migration-</code>. For example,
|
|
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
|
|
* in the Region where you are deploying the template. For example, for a web ACL
|
|
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
|
|
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
|
|
* permit the migration process to write data. For listings of the bucket policies,
|
|
* see the Examples section. </p> </li> </ul>
|
|
*/
|
|
inline CreateWebACLMigrationStackRequest& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
|
|
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
|
|
* bucket name must start with <code>aws-waf-migration-</code>. For example,
|
|
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
|
|
* in the Region where you are deploying the template. For example, for a web ACL
|
|
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
|
|
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
|
|
* permit the migration process to write data. For listings of the bucket policies,
|
|
* see the Examples section. </p> </li> </ul>
|
|
*/
|
|
inline CreateWebACLMigrationStackRequest& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
|
|
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
|
|
* bucket name must start with <code>aws-waf-migration-</code>. For example,
|
|
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
|
|
* in the Region where you are deploying the template. For example, for a web ACL
|
|
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
|
|
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
|
|
* permit the migration process to write data. For listings of the bucket policies,
|
|
* see the Examples section. </p> </li> </ul>
|
|
*/
|
|
inline CreateWebACLMigrationStackRequest& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Indicates whether to exclude entities that can't be migrated or to stop the
|
|
* migration. Set this to true to ignore unsupported entities in the web ACL during
|
|
* the migration. Otherwise, if AWS WAF encounters unsupported entities, it stops
|
|
* the process and throws an exception. </p>
|
|
*/
|
|
inline bool GetIgnoreUnsupportedType() const{ return m_ignoreUnsupportedType; }
|
|
|
|
/**
|
|
* <p>Indicates whether to exclude entities that can't be migrated or to stop the
|
|
* migration. Set this to true to ignore unsupported entities in the web ACL during
|
|
* the migration. Otherwise, if AWS WAF encounters unsupported entities, it stops
|
|
* the process and throws an exception. </p>
|
|
*/
|
|
inline bool IgnoreUnsupportedTypeHasBeenSet() const { return m_ignoreUnsupportedTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates whether to exclude entities that can't be migrated or to stop the
|
|
* migration. Set this to true to ignore unsupported entities in the web ACL during
|
|
* the migration. Otherwise, if AWS WAF encounters unsupported entities, it stops
|
|
* the process and throws an exception. </p>
|
|
*/
|
|
inline void SetIgnoreUnsupportedType(bool value) { m_ignoreUnsupportedTypeHasBeenSet = true; m_ignoreUnsupportedType = value; }
|
|
|
|
/**
|
|
* <p>Indicates whether to exclude entities that can't be migrated or to stop the
|
|
* migration. Set this to true to ignore unsupported entities in the web ACL during
|
|
* the migration. Otherwise, if AWS WAF encounters unsupported entities, it stops
|
|
* the process and throws an exception. </p>
|
|
*/
|
|
inline CreateWebACLMigrationStackRequest& WithIgnoreUnsupportedType(bool value) { SetIgnoreUnsupportedType(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_webACLId;
|
|
bool m_webACLIdHasBeenSet;
|
|
|
|
Aws::String m_s3BucketName;
|
|
bool m_s3BucketNameHasBeenSet;
|
|
|
|
bool m_ignoreUnsupportedType;
|
|
bool m_ignoreUnsupportedTypeHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace WAF
|
|
} // namespace Aws
|