amazonka-resiliencehub-2.0: Amazon Resilience Hub SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ResilienceHub.UpdateApp

Description

Updates an application.

Synopsis

Creating a Request

data UpdateApp Source #

See: newUpdateApp smart constructor.

Constructors

UpdateApp' 

Fields

Instances

Instances details
ToJSON UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

ToHeaders UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

Methods

toHeaders :: UpdateApp -> [Header] #

ToPath UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

ToQuery UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

AWSRequest UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

Associated Types

type AWSResponse UpdateApp #

Generic UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

Associated Types

type Rep UpdateApp :: Type -> Type #

Read UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

Show UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

NFData UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

Methods

rnf :: UpdateApp -> () #

Eq UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

Hashable UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

type AWSResponse UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

type Rep UpdateApp Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

type Rep UpdateApp = D1 ('MetaData "UpdateApp" "Amazonka.ResilienceHub.UpdateApp" "amazonka-resiliencehub-2.0-EsKgNhAb0B96cCxrYtrBzG" 'False) (C1 ('MetaCons "UpdateApp'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "assessmentSchedule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AppAssessmentScheduleType)) :*: S1 ('MetaSel ('Just "clearResiliencyPolicyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "appArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdateApp Source #

Arguments

:: Text

UpdateApp

-> UpdateApp 

Create a value of UpdateApp 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:

UpdateApp, updateApp_assessmentSchedule - Assessment execution schedule with 'Daily' or 'Disabled' values.

$sel:clearResiliencyPolicyArn:UpdateApp', updateApp_clearResiliencyPolicyArn - Specifies if the resiliency policy ARN should be cleared.

UpdateApp, updateApp_description - The optional description for an app.

UpdateApp, updateApp_policyArn - The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

UpdateApp, updateApp_appArn - The Amazon Resource Name (ARN) of the application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

Request Lenses

updateApp_assessmentSchedule :: Lens' UpdateApp (Maybe AppAssessmentScheduleType) Source #

Assessment execution schedule with 'Daily' or 'Disabled' values.

updateApp_clearResiliencyPolicyArn :: Lens' UpdateApp (Maybe Bool) Source #

Specifies if the resiliency policy ARN should be cleared.

updateApp_description :: Lens' UpdateApp (Maybe Text) Source #

The optional description for an app.

updateApp_policyArn :: Lens' UpdateApp (Maybe Text) Source #

The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

updateApp_appArn :: Lens' UpdateApp Text Source #

The Amazon Resource Name (ARN) of the application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

Destructuring the Response

data UpdateAppResponse Source #

See: newUpdateAppResponse smart constructor.

Constructors

UpdateAppResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • app :: App

    The specified application, returned as an object with details including compliance status, creation time, description, resiliency score, and more.

Instances

Instances details
Generic UpdateAppResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

Associated Types

type Rep UpdateAppResponse :: Type -> Type #

Show UpdateAppResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

NFData UpdateAppResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

Methods

rnf :: UpdateAppResponse -> () #

Eq UpdateAppResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

type Rep UpdateAppResponse Source # 
Instance details

Defined in Amazonka.ResilienceHub.UpdateApp

type Rep UpdateAppResponse = D1 ('MetaData "UpdateAppResponse" "Amazonka.ResilienceHub.UpdateApp" "amazonka-resiliencehub-2.0-EsKgNhAb0B96cCxrYtrBzG" 'False) (C1 ('MetaCons "UpdateAppResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "app") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 App)))

newUpdateAppResponse Source #

Create a value of UpdateAppResponse 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:httpStatus:UpdateAppResponse', updateAppResponse_httpStatus - The response's http status code.

$sel:app:UpdateAppResponse', updateAppResponse_app - The specified application, returned as an object with details including compliance status, creation time, description, resiliency score, and more.

Response Lenses

updateAppResponse_httpStatus :: Lens' UpdateAppResponse Int Source #

The response's http status code.

updateAppResponse_app :: Lens' UpdateAppResponse App Source #

The specified application, returned as an object with details including compliance status, creation time, description, resiliency score, and more.