Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Sets the result of a Lambda validation function. The function validates
lifecycle hooks during a deployment that uses the AWS Lambda or Amazon
ECS compute platform. For AWS Lambda deployments, the available
lifecycle hooks are BeforeAllowTraffic
and AfterAllowTraffic
. For
Amazon ECS deployments, the available lifecycle hooks are
BeforeInstall
, AfterInstall
, AfterAllowTestTraffic
,
BeforeAllowTraffic
, and AfterAllowTraffic
. Lambda validation
functions return Succeeded
or Failed
. For more information, see
AppSpec 'hooks' Section for an AWS Lambda Deployment
and
AppSpec 'hooks' Section for an Amazon ECS Deployment.
Synopsis
- data PutLifecycleEventHookExecutionStatus = PutLifecycleEventHookExecutionStatus' {}
- newPutLifecycleEventHookExecutionStatus :: PutLifecycleEventHookExecutionStatus
- putLifecycleEventHookExecutionStatus_status :: Lens' PutLifecycleEventHookExecutionStatus (Maybe LifecycleEventStatus)
- putLifecycleEventHookExecutionStatus_deploymentId :: Lens' PutLifecycleEventHookExecutionStatus (Maybe Text)
- putLifecycleEventHookExecutionStatus_lifecycleEventHookExecutionId :: Lens' PutLifecycleEventHookExecutionStatus (Maybe Text)
- data PutLifecycleEventHookExecutionStatusResponse = PutLifecycleEventHookExecutionStatusResponse' {}
- newPutLifecycleEventHookExecutionStatusResponse :: Int -> PutLifecycleEventHookExecutionStatusResponse
- putLifecycleEventHookExecutionStatusResponse_lifecycleEventHookExecutionId :: Lens' PutLifecycleEventHookExecutionStatusResponse (Maybe Text)
- putLifecycleEventHookExecutionStatusResponse_httpStatus :: Lens' PutLifecycleEventHookExecutionStatusResponse Int
Creating a Request
data PutLifecycleEventHookExecutionStatus Source #
See: newPutLifecycleEventHookExecutionStatus
smart constructor.
PutLifecycleEventHookExecutionStatus' | |
|
Instances
newPutLifecycleEventHookExecutionStatus :: PutLifecycleEventHookExecutionStatus Source #
Create a value of PutLifecycleEventHookExecutionStatus
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:status:PutLifecycleEventHookExecutionStatus'
, putLifecycleEventHookExecutionStatus_status
- The result of a Lambda function that validates a deployment lifecycle
event. Succeeded
and Failed
are the only valid values for status
.
$sel:deploymentId:PutLifecycleEventHookExecutionStatus'
, putLifecycleEventHookExecutionStatus_deploymentId
- The unique ID of a deployment. Pass this ID to a Lambda function that
validates a deployment lifecycle event.
$sel:lifecycleEventHookExecutionId:PutLifecycleEventHookExecutionStatus'
, putLifecycleEventHookExecutionStatus_lifecycleEventHookExecutionId
- The execution ID of a deployment's lifecycle hook. A deployment
lifecycle hook is specified in the hooks
section of the AppSpec file.
Request Lenses
putLifecycleEventHookExecutionStatus_status :: Lens' PutLifecycleEventHookExecutionStatus (Maybe LifecycleEventStatus) Source #
The result of a Lambda function that validates a deployment lifecycle
event. Succeeded
and Failed
are the only valid values for status
.
putLifecycleEventHookExecutionStatus_deploymentId :: Lens' PutLifecycleEventHookExecutionStatus (Maybe Text) Source #
The unique ID of a deployment. Pass this ID to a Lambda function that validates a deployment lifecycle event.
putLifecycleEventHookExecutionStatus_lifecycleEventHookExecutionId :: Lens' PutLifecycleEventHookExecutionStatus (Maybe Text) Source #
The execution ID of a deployment's lifecycle hook. A deployment
lifecycle hook is specified in the hooks
section of the AppSpec file.
Destructuring the Response
data PutLifecycleEventHookExecutionStatusResponse Source #
See: newPutLifecycleEventHookExecutionStatusResponse
smart constructor.
PutLifecycleEventHookExecutionStatusResponse' | |
|
Instances
Eq PutLifecycleEventHookExecutionStatusResponse Source # | |
Read PutLifecycleEventHookExecutionStatusResponse Source # | |
Show PutLifecycleEventHookExecutionStatusResponse Source # | |
Generic PutLifecycleEventHookExecutionStatusResponse Source # | |
NFData PutLifecycleEventHookExecutionStatusResponse Source # | |
type Rep PutLifecycleEventHookExecutionStatusResponse Source # | |
Defined in Amazonka.CodeDeploy.PutLifecycleEventHookExecutionStatus type Rep PutLifecycleEventHookExecutionStatusResponse = D1 ('MetaData "PutLifecycleEventHookExecutionStatusResponse" "Amazonka.CodeDeploy.PutLifecycleEventHookExecutionStatus" "libZSservicesZSamazonka-codedeployZSamazonka-codedeploy" 'False) (C1 ('MetaCons "PutLifecycleEventHookExecutionStatusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lifecycleEventHookExecutionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutLifecycleEventHookExecutionStatusResponse Source #
:: Int |
|
-> PutLifecycleEventHookExecutionStatusResponse |
Create a value of PutLifecycleEventHookExecutionStatusResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lifecycleEventHookExecutionId:PutLifecycleEventHookExecutionStatus'
, putLifecycleEventHookExecutionStatusResponse_lifecycleEventHookExecutionId
- The execution ID of the lifecycle event hook. A hook is specified in the
hooks
section of the deployment's AppSpec file.
$sel:httpStatus:PutLifecycleEventHookExecutionStatusResponse'
, putLifecycleEventHookExecutionStatusResponse_httpStatus
- The response's http status code.
Response Lenses
putLifecycleEventHookExecutionStatusResponse_lifecycleEventHookExecutionId :: Lens' PutLifecycleEventHookExecutionStatusResponse (Maybe Text) Source #
The execution ID of the lifecycle event hook. A hook is specified in the
hooks
section of the deployment's AppSpec file.
putLifecycleEventHookExecutionStatusResponse_httpStatus :: Lens' PutLifecycleEventHookExecutionStatusResponse Int Source #
The response's http status code.