Class CreateCFStackTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- com.nike.pdm.localstack.aws.cloudformation.CreateCFStackTask
-
- All Implemented Interfaces:
java.lang.Comparable<org.gradle.api.Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.Task
,org.gradle.util.Configurable<org.gradle.api.Task>
public class CreateCFStackTask extends org.gradle.api.DefaultTask
Task that creates a CloudFormation stack.
-
-
Constructor Summary
Constructors Constructor Description CreateCFStackTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getCapabilities()
Gets the capabilities.java.io.File
getCfTemplate()
Gets the CloudFormation template to run.java.lang.String
getClientRequestToken()
Gets the client request token.java.lang.String
getDescription()
java.lang.Boolean
getDisableRollback()
Gets the disable rollback setting.java.lang.Boolean
getEnableTerminationProtection()
Gets the termination protection setting.java.lang.String
getGroup()
java.util.Collection<java.lang.String>
getNotificationArns()
Gets notification arns.com.amazonaws.services.cloudformation.model.OnFailure
getOnFailure()
Gets the on failure setting.java.util.Collection<com.amazonaws.services.cloudformation.model.Parameter>
getParameters()
Gets the template parameters.java.util.Collection<java.lang.String>
getResourceTypes()
Gets the templatae resource types.java.lang.String
getRoleArn()
Gets the role arn.com.amazonaws.services.cloudformation.model.RollbackConfiguration
getRollbackConfiguration()
Gets the rollback configuration.java.lang.String
getStackName()
Gets the name of the stack to create.java.io.File
getStackPolicy()
Gets the stack policy.java.util.Collection<com.amazonaws.services.cloudformation.model.Tag>
getTags()
Gets the tags to apply to the stack.java.lang.Integer
getTimeoutInMinutes()
Gets the timeout.void
run()
void
setCapabilities(java.util.Collection<java.lang.String> capabilities)
Sets the capabilitiesvoid
setCfTemplate(java.io.File cfTemplate)
Sets the CloudFormation template to run.void
setClientRequestToken(java.lang.String clientRequestToken)
Sets the client request token.void
setDisableRollback(java.lang.Boolean disableRollback)
Sets the disable rollback setting.void
setEnableTerminationProtection(java.lang.Boolean enableTerminationProtection)
Sets the termination protection setting.void
setNotificationArns(java.util.Collection<java.lang.String> notificationArns)
Sets notification arnsvoid
setOnFailure(com.amazonaws.services.cloudformation.model.OnFailure onFailure)
Sets the on failure setting.void
setParameters(java.util.Collection<com.amazonaws.services.cloudformation.model.Parameter> parameters)
Sets the template parameters.void
setResourceTypes(java.util.Collection<java.lang.String> resourceTypes)
Sets the template resource types.void
setRoleArn(java.lang.String roleArn)
Sets the role arnvoid
setRollbackConfiguration(com.amazonaws.services.cloudformation.model.RollbackConfiguration rollbackConfiguration)
Sets the rollback configurationvoid
setStackName(java.lang.String stackName)
Sets the name of the stack to create.void
setStackPolicy(java.io.File stackPolicy)
Sets the stack policy.void
setTags(java.util.Collection<com.amazonaws.services.cloudformation.model.Tag> tags)
Sets the tags to apply to the stack.void
setTimeoutInMinutes(java.lang.Integer timeoutInMinutes)
Sets the timeout.-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
-
-
-
Method Detail
-
run
public void run()
-
getGroup
@Internal public java.lang.String getGroup()
- Specified by:
getGroup
in interfaceorg.gradle.api.Task
- Overrides:
getGroup
in classorg.gradle.api.internal.AbstractTask
-
getDescription
@Internal public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceorg.gradle.api.Task
- Overrides:
getDescription
in classorg.gradle.api.internal.AbstractTask
-
getStackName
public java.lang.String getStackName()
Gets the name of the stack to create.
-
setStackName
public void setStackName(java.lang.String stackName)
Sets the name of the stack to create.- Parameters:
stackName
- stack name- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getCfTemplate
public java.io.File getCfTemplate()
Gets the CloudFormation template to run.- Returns:
- cloudformation template
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setCfTemplate
public void setCfTemplate(java.io.File cfTemplate)
Sets the CloudFormation template to run.- Parameters:
cfTemplate
- cloudformation template- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getCapabilities
public java.util.Collection<java.lang.String> getCapabilities()
Gets the capabilities.- Returns:
- capabilities
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setCapabilities
public void setCapabilities(java.util.Collection<java.lang.String> capabilities)
Sets the capabilities- Parameters:
capabilities
- capabilities- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getClientRequestToken
public java.lang.String getClientRequestToken()
Gets the client request token.- Returns:
- client request token
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setClientRequestToken
public void setClientRequestToken(java.lang.String clientRequestToken)
Sets the client request token.- Parameters:
clientRequestToken
- client request token- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getDisableRollback
public java.lang.Boolean getDisableRollback()
Gets the disable rollback setting.- Returns:
- disable rollback setting
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setDisableRollback
public void setDisableRollback(java.lang.Boolean disableRollback)
Sets the disable rollback setting.- Parameters:
disableRollback
- disable rollback setting- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getEnableTerminationProtection
public java.lang.Boolean getEnableTerminationProtection()
Gets the termination protection setting.- Returns:
- termination protection setting
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setEnableTerminationProtection
public void setEnableTerminationProtection(java.lang.Boolean enableTerminationProtection)
Sets the termination protection setting.- Parameters:
enableTerminationProtection
- termination protection setting- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getNotificationArns
public java.util.Collection<java.lang.String> getNotificationArns()
Gets notification arns.- Returns:
- notification arns
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setNotificationArns
public void setNotificationArns(java.util.Collection<java.lang.String> notificationArns)
Sets notification arns- Parameters:
notificationArns
- notification arns- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getOnFailure
public com.amazonaws.services.cloudformation.model.OnFailure getOnFailure()
Gets the on failure setting.- Returns:
- on failure setting
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setOnFailure
public void setOnFailure(com.amazonaws.services.cloudformation.model.OnFailure onFailure)
Sets the on failure setting.- Parameters:
onFailure
- on failure setting- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getParameters
public java.util.Collection<com.amazonaws.services.cloudformation.model.Parameter> getParameters()
Gets the template parameters.- Returns:
- template parameters
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setParameters
public void setParameters(java.util.Collection<com.amazonaws.services.cloudformation.model.Parameter> parameters)
Sets the template parameters.- Parameters:
parameters
- template parameters- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getResourceTypes
public java.util.Collection<java.lang.String> getResourceTypes()
Gets the templatae resource types.- Returns:
- template resource types
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setResourceTypes
public void setResourceTypes(java.util.Collection<java.lang.String> resourceTypes)
Sets the template resource types.- Parameters:
resourceTypes
- template resource types- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getRoleArn
public java.lang.String getRoleArn()
Gets the role arn.
-
setRoleArn
public void setRoleArn(java.lang.String roleArn)
Sets the role arn- Parameters:
roleArn
- role arn- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getRollbackConfiguration
public com.amazonaws.services.cloudformation.model.RollbackConfiguration getRollbackConfiguration()
Gets the rollback configuration.- Returns:
- rollback configuration
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setRollbackConfiguration
public void setRollbackConfiguration(com.amazonaws.services.cloudformation.model.RollbackConfiguration rollbackConfiguration)
Sets the rollback configuration- Parameters:
rollbackConfiguration
- rollback configuration- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getStackPolicy
public java.io.File getStackPolicy()
Gets the stack policy.- Returns:
- stack policy
- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
setStackPolicy
public void setStackPolicy(java.io.File stackPolicy)
Sets the stack policy.- Parameters:
stackPolicy
- stack policy- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getTimeoutInMinutes
public java.lang.Integer getTimeoutInMinutes()
Gets the timeout.
-
setTimeoutInMinutes
public void setTimeoutInMinutes(java.lang.Integer timeoutInMinutes)
Sets the timeout.- Parameters:
timeoutInMinutes
- timeout- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
getTags
public java.util.Collection<com.amazonaws.services.cloudformation.model.Tag> getTags()
Gets the tags to apply to the stack.
-
setTags
public void setTags(java.util.Collection<com.amazonaws.services.cloudformation.model.Tag> tags)
Sets the tags to apply to the stack.- Parameters:
tags
- tags- See Also:
- https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudformation/model/CreateStackRequest.html
-
-