amazonka-codedeploy-0.2.1: Amazon CodeDeploy SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeDeploy.Types

Contents

Synopsis

Service

data CodeDeploy Source

Version 2014-10-06 of the Amazon CodeDeploy service.

Error

data JSONError :: *

Instances

Eq JSONError 
Show JSONError 
Generic JSONError 
FromJSON JSONError 
AWSErrorCode JSONError 
type Rep JSONError = D1 D1JSONError (C1 C1_0JSONError ((:*:) (S1 S1_0_0JSONError (Rec0 (Maybe Text))) ((:*:) (S1 S1_0_1JSONError (Rec0 ErrorCode)) (S1 S1_0_2JSONError (Rec0 Text))))) 

GenericRevisionInfo

griDeploymentGroups :: Lens' GenericRevisionInfo [Text] Source

A list of deployment groups that use this revision.

griDescription :: Lens' GenericRevisionInfo (Maybe Text) Source

A comment about the revision.

griFirstUsedTime :: Lens' GenericRevisionInfo (Maybe UTCTime) Source

When the revision was first used by AWS CodeDeploy.

griLastUsedTime :: Lens' GenericRevisionInfo (Maybe UTCTime) Source

When the revision was last used by AWS CodeDeploy.

griRegisterTime :: Lens' GenericRevisionInfo (Maybe UTCTime) Source

When the revision was registered with AWS CodeDeploy.

ApplicationInfo

aiCreateTime :: Lens' ApplicationInfo (Maybe UTCTime) Source

The time that the application was created.

aiLinkedToGitHub :: Lens' ApplicationInfo (Maybe Bool) Source

True if the user has authenticated with GitHub for the specified application; otherwise, false.

BundleType

TimeRange

timeRange :: TimeRange Source

TimeRange constructor.

The fields accessible through corresponding lenses are:

trEnd :: Lens' TimeRange (Maybe UTCTime) Source

The time range's end time.

Specify null to leave the time range's end time open-ended.

trStart :: Lens' TimeRange (Maybe UTCTime) Source

The time range's start time.

Specify null to leave the time range's start time open-ended.

DeploymentCreator

InstanceSummary

isLastUpdatedAt :: Lens' InstanceSummary (Maybe UTCTime) Source

A timestamp indicating when the instance information was last updated.

isLifecycleEvents :: Lens' InstanceSummary [LifecycleEvent] Source

A list of lifecycle events for this instance.

isStatus :: Lens' InstanceSummary (Maybe InstanceStatus) Source

The deployment status for this instance:

Pending: The deployment is pending for this instance. In Progress: The deployment is in progress for this instance. Succeeded: The deployment has succeeded for this instance. Failed: The deployment has failed for this instance. Skipped: The deployment has been skipped for this instance. Unknown: The deployment status is unknown for this instance.

AutoScalingGroup

autoScalingGroup :: AutoScalingGroup Source

AutoScalingGroup constructor.

The fields accessible through corresponding lenses are:

asgHook :: Lens' AutoScalingGroup (Maybe Text) Source

An Auto Scaling lifecycle event hook name.

asgName :: Lens' AutoScalingGroup (Maybe Text) Source

The Auto Scaling group name.

DeploymentGroupInfo

dgiAutoScalingGroups :: Lens' DeploymentGroupInfo [AutoScalingGroup] Source

A list of associated Auto Scaling groups.

dgiDeploymentConfigName :: Lens' DeploymentGroupInfo (Maybe Text) Source

The deployment configuration name.

dgiEc2TagFilters :: Lens' DeploymentGroupInfo [EC2TagFilter] Source

The Amazon EC2 tags to filter on.

dgiTargetRevision :: Lens' DeploymentGroupInfo (Maybe RevisionLocation) Source

Information about the deployment group's target revision, including the revision's type and its location.

ApplicationRevisionSortBy

MinimumHealthyHosts

minimumHealthyHosts :: MinimumHealthyHosts Source

MinimumHealthyHosts constructor.

The fields accessible through corresponding lenses are:

mhhType :: Lens' MinimumHealthyHosts (Maybe MinimumHealthyHostsType) Source

The minimum healthy instances type:

HOST_COUNT: The minimum number of healthy instances, as an absolute value. FLEET_PERCENT: The minimum number of healthy instances, as a percentage of the total number of instances in the deployment. For example, for 9 Amazon EC2 instances, if a HOST_COUNT of 6 is specified, deploy to up to 3 instances at a time. The deployment succeeds if 6 or more instances are successfully deployed to; otherwise, the deployment fails. If a FLEET_PERCENT of 40 is specified, deploy to up to 5 instances at a time. The deployment succeeds if 4 or more instances are successfully deployed to; otherwise, the deployment fails.

In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime will return a minimum healthy instances type of MOST_CONCURRENCY and a value of 1. This means a deployment to only one Amazon EC2 instance at a time. (You cannot set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.)

mhhValue :: Lens' MinimumHealthyHosts (Maybe Int) Source

The minimum healthy instances value.

ListStateFilterAction

LifecycleErrorCode

RevisionLocation

rlRevisionType :: Lens' RevisionLocation (Maybe RevisionLocationType) Source

The application revision's type:

S3: An application revision stored in Amazon S3. GitHub: An application revision stored in GitHub.

LifecycleEventStatus

EC2TagFilter

ec2TagFilter :: EC2TagFilter Source

EC2TagFilter constructor.

The fields accessible through corresponding lenses are:

ectfKey :: Lens' EC2TagFilter (Maybe Text) Source

The Amazon EC2 tag filter key.

ectfType :: Lens' EC2TagFilter (Maybe EC2TagFilterType) Source

The Amazon EC2 tag filter type:

KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value.

ectfValue :: Lens' EC2TagFilter (Maybe Text) Source

The Amazon EC2 tag filter value.

Diagnostics

diagnostics :: Diagnostics Source

Diagnostics constructor.

The fields accessible through corresponding lenses are:

dErrorCode :: Lens' Diagnostics (Maybe LifecycleErrorCode) Source

The associated error code:

Success: The specified script ran. ScriptMissing: The specified script was not found in the specified location. ScriptNotExecutable: The specified script is not a recognized executable file type. ScriptTimedOut: The specified script did not finish running in the specified time period. ScriptFailed: The specified script failed to run as expected. UnknownError: The specified script did not run for an unknown reason.

dLogTail :: Lens' Diagnostics (Maybe Text) Source

The last portion of the associated diagnostic log.

dMessage :: Lens' Diagnostics (Maybe Text) Source

The message associated with the error.

dScriptName :: Lens' Diagnostics (Maybe Text) Source

The name of the script.

StopStatus

ErrorInformation

errorInformation :: ErrorInformation Source

ErrorInformation constructor.

The fields accessible through corresponding lenses are:

eiCode :: Lens' ErrorInformation (Maybe ErrorCode) Source

The error code:

APPLICATION_MISSING: The application was missing. Note that this error code will most likely be raised if the application is deleted after the deployment is created but before it starts. DEPLOYMENT_GROUP_MISSING: The deployment group was missing. Note that this error code will most likely be raised if the deployment group is deleted after the deployment is created but before it starts. REVISION_MISSING: The revision ID was missing. Note that this error code will most likely be raised if the revision is deleted after the deployment is created but before it starts. IAM_ROLE_MISSING: The service role cannot be accessed. IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions. OVER_MAX_INSTANCES: The maximum number of instances was exceeded. NO_INSTANCES: No instances were specified, or no instances can be found. TIMEOUT: The deployment has timed out. HEALTH_CONSTRAINTS_INVALID: The revision can never successfully deploy under the instance health constraints as specified. HEALTH_CONSTRAINTS: The deployment failed on too many instances to be able to successfully deploy under the specified instance health constraints. INTERNAL_ERROR: There was an internal error.

eiMessage :: Lens' ErrorInformation (Maybe Text) Source

An accompanying error message.

SortOrder

DeploymentInfo

diCompleteTime :: Lens' DeploymentInfo (Maybe UTCTime) Source

A timestamp indicating when the deployment was completed.

diCreateTime :: Lens' DeploymentInfo (Maybe UTCTime) Source

A timestamp indicating when the deployment was created.

diCreator :: Lens' DeploymentInfo (Maybe DeploymentCreator) Source

How the deployment was created:

user: A user created the deployment. autoscaling: Auto Scaling created the deployment.

diDeploymentConfigName :: Lens' DeploymentInfo (Maybe Text) Source

The deployment configuration name.

diDeploymentOverview :: Lens' DeploymentInfo (Maybe DeploymentOverview) Source

A summary of the deployment status of the instances in the deployment.

diDescription :: Lens' DeploymentInfo (Maybe Text) Source

A comment about the deployment.

diErrorInformation :: Lens' DeploymentInfo (Maybe ErrorInformation) Source

Information about any error associated with this deployment.

diIgnoreApplicationStopFailures :: Lens' DeploymentInfo (Maybe Bool) Source

If true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

diRevision :: Lens' DeploymentInfo (Maybe RevisionLocation) Source

Information about the location of application artifacts that are stored and the service to retrieve them from.

diStartTime :: Lens' DeploymentInfo (Maybe UTCTime) Source

A timestamp indicating when the deployment began deploying to the deployment group.

Note that in some cases, the reported value of the start time may be later than the complete time. This is due to differences in the clock settings of various back-end servers that participate in the overall deployment process.

diStatus :: Lens' DeploymentInfo (Maybe DeploymentStatus) Source

The current state of the deployment as a whole.

LifecycleEvent

leDiagnostics :: Lens' LifecycleEvent (Maybe Diagnostics) Source

Diagnostic information about the deployment lifecycle event.

leEndTime :: Lens' LifecycleEvent (Maybe UTCTime) Source

A timestamp indicating when the deployment lifecycle event ended.

leLifecycleEventName :: Lens' LifecycleEvent (Maybe Text) Source

The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.

leStartTime :: Lens' LifecycleEvent (Maybe UTCTime) Source

A timestamp indicating when the deployment lifecycle event started.

leStatus :: Lens' LifecycleEvent (Maybe LifecycleEventStatus) Source

The deployment lifecycle event status:

Pending: The deployment lifecycle event is pending. InProgress: The deployment lifecycle event is in progress. Succeeded: The deployment lifecycle event has succeeded. Failed: The deployment lifecycle event has failed. Skipped: The deployment lifecycle event has been skipped. Unknown: The deployment lifecycle event is unknown.

DeploymentOverview

doFailed :: Lens' DeploymentOverview (Maybe Integer) Source

The number of instances that have failed in the deployment.

doInProgress :: Lens' DeploymentOverview (Maybe Integer) Source

The number of instances that are in progress in the deployment.

doPending :: Lens' DeploymentOverview (Maybe Integer) Source

The number of instances that are pending in the deployment.

doSkipped :: Lens' DeploymentOverview (Maybe Integer) Source

The number of instances that have been skipped in the deployment.

doSucceeded :: Lens' DeploymentOverview (Maybe Integer) Source

The number of instances that have succeeded in the deployment.

ErrorCode

DeploymentConfigInfo

dciCreateTime :: Lens' DeploymentConfigInfo (Maybe UTCTime) Source

The time that the deployment configuration was created.

dciDeploymentConfigId :: Lens' DeploymentConfigInfo (Maybe Text) Source

The deployment configuration ID.

dciDeploymentConfigName :: Lens' DeploymentConfigInfo (Maybe Text) Source

The deployment configuration name.

dciMinimumHealthyHosts :: Lens' DeploymentConfigInfo (Maybe MinimumHealthyHosts) Source

Information about the number or percentage of minimum healthy instances.

InstanceStatus

DeploymentStatus

S3Location

s3Location :: S3Location Source

S3Location constructor.

The fields accessible through corresponding lenses are:

slBucket :: Lens' S3Location (Maybe Text) Source

The name of the Amazon S3 bucket where the application revision is stored.

slBundleType :: Lens' S3Location (Maybe BundleType) Source

The file type of the application revision. Must be one of the following:

tar: A tar archive file. tgz: A compressed tar archive file. zip: A zip archive file.

slETag :: Lens' S3Location (Maybe Text) Source

The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.

If the ETag is not specified as an input parameter, ETag validation of the object will be skipped.

slKey :: Lens' S3Location (Maybe Text) Source

The name of the Amazon S3 object that represents the bundled artifacts for the application revision.

slVersion :: Lens' S3Location (Maybe Text) Source

A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.

If the version is not specified, the system will use the most recent version by default.

MinimumHealthyHostsType

GitHubLocation

gitHubLocation :: GitHubLocation Source

GitHubLocation constructor.

The fields accessible through corresponding lenses are:

ghlCommitId :: Lens' GitHubLocation (Maybe Text) Source

The SHA1 commit ID of the GitHub commit that references the that represents the bundled artifacts for the application revision.

ghlRepository :: Lens' GitHubLocation (Maybe Text) Source

The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.

Specified as account/repository.

RevisionLocationType

EC2TagFilterType