@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Action extends Object implements Serializable, Cloneable, StructuredPojo
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
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
Action |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
Information about the action.
|
String |
getName()
The action name.
|
String |
getRoleArn()
An Amazon Resource Name (ARN) for an Identity and Access Management assume role.
|
String |
getUri()
The extension URI associated to the action point in the extension definition.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
Information about the action.
|
void |
setName(String name)
The action name.
|
void |
setRoleArn(String roleArn)
An Amazon Resource Name (ARN) for an Identity and Access Management assume role.
|
void |
setUri(String uri)
The extension URI associated to the action point in the extension definition.
|
String |
toString()
Returns a string representation of this object.
|
Action |
withDescription(String description)
Information about the action.
|
Action |
withName(String name)
The action name.
|
Action |
withRoleArn(String roleArn)
An Amazon Resource Name (ARN) for an Identity and Access Management assume role.
|
Action |
withUri(String uri)
The extension URI associated to the action point in the extension definition.
|
public void setName(String name)
The action name.
name
- The action name.public String getName()
The action name.
public Action withName(String name)
The action name.
name
- The action name.public void setDescription(String description)
Information about the action.
description
- Information about the action.public String getDescription()
Information about the action.
public Action withDescription(String description)
Information about the action.
description
- Information about the action.public void setUri(String 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.
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.public String getUri()
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.
public Action withUri(String 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.
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.public void setRoleArn(String roleArn)
An Amazon Resource Name (ARN) for an Identity and Access Management assume role.
roleArn
- An Amazon Resource Name (ARN) for an Identity and Access Management assume role.public String getRoleArn()
An Amazon Resource Name (ARN) for an Identity and Access Management assume role.
public Action withRoleArn(String roleArn)
An Amazon Resource Name (ARN) for an Identity and Access Management assume role.
roleArn
- An Amazon Resource Name (ARN) for an Identity and Access Management assume role.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.