/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An action defines the tasks that the extension performs during the AppConfig
* workflow. Each action includes an action point such as
*
*
*
*
*
*
*
* ON_CREATE_HOSTED_CONFIGURATION
, PRE_DEPLOYMENT
, or
* ON_DEPLOYMENT
. Each action also includes a name, a URI to an Lambda
* function, and an Amazon Resource Name (ARN) for an Identity and Access
* Management assume role. You specify the name, URI, and ARN for each action
* point defined in the extension. You can specify the following actions for an
* extension:
PRE_CREATE_HOSTED_CONFIGURATION_VERSION
PRE_START_DEPLOYMENT
ON_DEPLOYMENT_START
ON_DEPLOYMENT_STEP
ON_DEPLOYMENT_BAKING
ON_DEPLOYMENT_COMPLETE
ON_DEPLOYMENT_ROLLED_BACK
See Also:
* AWS
* API Reference
The action name.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The action name.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The action name.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The action name.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The action name.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The action name.
*/ inline Action& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The action name.
*/ inline Action& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The action name.
*/ inline Action& WithName(const char* value) { SetName(value); return *this;} /** *Information about the action.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *Information about the action.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *Information about the action.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *Information about the action.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *Information about the action.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *Information about the action.
*/ inline Action& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *Information about the action.
*/ inline Action& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *Information about the action.
*/ inline Action& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The extension URI associated to the action point in the extension definition. * The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda * function, an Amazon Simple Queue Service queue, an Amazon Simple Notification * Service topic, or the Amazon EventBridge default event bus.
*/ inline const Aws::String& GetUri() const{ return m_uri; } /** *The extension URI associated to the action point in the extension definition. * The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda * function, an Amazon Simple Queue Service queue, an Amazon Simple Notification * Service topic, or the Amazon EventBridge default event bus.
*/ inline bool UriHasBeenSet() const { return m_uriHasBeenSet; } /** *The extension URI associated to the action point in the extension definition. * The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda * function, an Amazon Simple Queue Service queue, an Amazon Simple Notification * Service topic, or the Amazon EventBridge default event bus.
*/ inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; } /** *The extension URI associated to the action point in the extension definition. * The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda * function, an Amazon Simple Queue Service queue, an Amazon Simple Notification * Service topic, or the Amazon EventBridge default event bus.
*/ inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); } /** *The extension URI associated to the action point in the extension definition. * The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda * function, an Amazon Simple Queue Service queue, an Amazon Simple Notification * Service topic, or the Amazon EventBridge default event bus.
*/ inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); } /** *The extension URI associated to the action point in the extension definition. * The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda * function, an Amazon Simple Queue Service queue, an Amazon Simple Notification * Service topic, or the Amazon EventBridge default event bus.
*/ inline Action& WithUri(const Aws::String& value) { SetUri(value); return *this;} /** *The extension URI associated to the action point in the extension definition. * The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda * function, an Amazon Simple Queue Service queue, an Amazon Simple Notification * Service topic, or the Amazon EventBridge default event bus.
*/ inline Action& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;} /** *The extension URI associated to the action point in the extension definition. * The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda * function, an Amazon Simple Queue Service queue, an Amazon Simple Notification * Service topic, or the Amazon EventBridge default event bus.
*/ inline Action& WithUri(const char* value) { SetUri(value); return *this;} /** *An Amazon Resource Name (ARN) for an Identity and Access Management assume * role.
*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *An Amazon Resource Name (ARN) for an Identity and Access Management assume * role.
*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *An Amazon Resource Name (ARN) for an Identity and Access Management assume * role.
*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *An Amazon Resource Name (ARN) for an Identity and Access Management assume * role.
*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *An Amazon Resource Name (ARN) for an Identity and Access Management assume * role.
*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *An Amazon Resource Name (ARN) for an Identity and Access Management assume * role.
*/ inline Action& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *An Amazon Resource Name (ARN) for an Identity and Access Management assume * role.
*/ inline Action& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *An Amazon Resource Name (ARN) for an Identity and Access Management assume * role.
*/ inline Action& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_uri; bool m_uriHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws