libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.GetOperationsForResource

Description

Gets operations for a specific resource (e.g., an instance or a static IP).

Synopsis

Creating a Request

data GetOperationsForResource Source #

See: newGetOperationsForResource smart constructor.

Constructors

GetOperationsForResource' 

Fields

  • pageToken :: Maybe Text

    The token to advance to the next page of results from your request.

    To get a page token, perform an initial GetOperationsForResource request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

  • resourceName :: Text

    The name of the resource for which you are requesting information.

Instances

Instances details
Eq GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

Read GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

Show GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

Generic GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

Associated Types

type Rep GetOperationsForResource :: Type -> Type #

NFData GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

Hashable GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

ToJSON GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

AWSRequest GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

ToHeaders GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

ToPath GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

ToQuery GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

type Rep GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

type Rep GetOperationsForResource = D1 ('MetaData "GetOperationsForResource" "Amazonka.Lightsail.GetOperationsForResource" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetOperationsForResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetOperationsForResource Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

newGetOperationsForResource Source #

Create a value of GetOperationsForResource 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:pageToken:GetOperationsForResource', getOperationsForResource_pageToken - The token to advance to the next page of results from your request.

To get a page token, perform an initial GetOperationsForResource request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

$sel:resourceName:GetOperationsForResource', getOperationsForResource_resourceName - The name of the resource for which you are requesting information.

Request Lenses

getOperationsForResource_pageToken :: Lens' GetOperationsForResource (Maybe Text) Source #

The token to advance to the next page of results from your request.

To get a page token, perform an initial GetOperationsForResource request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

getOperationsForResource_resourceName :: Lens' GetOperationsForResource Text Source #

The name of the resource for which you are requesting information.

Destructuring the Response

data GetOperationsForResourceResponse Source #

See: newGetOperationsForResourceResponse smart constructor.

Constructors

GetOperationsForResourceResponse' 

Fields

  • nextPageCount :: Maybe Text

    (Deprecated) Returns the number of pages of results that remain.

    In releases prior to June 12, 2017, this parameter returned null by the API. It is now deprecated, and the API returns the next page token parameter instead.

  • nextPageToken :: Maybe Text

    The token to advance to the next page of results from your request.

    A next page token is not returned if there are no more results to display.

    To get the next page of results, perform another GetOperationsForResource request and specify the next page token using the pageToken parameter.

  • operations :: Maybe [Operation]

    An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetOperationsForResourceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

Read GetOperationsForResourceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

Show GetOperationsForResourceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

Generic GetOperationsForResourceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

Associated Types

type Rep GetOperationsForResourceResponse :: Type -> Type #

NFData GetOperationsForResourceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

type Rep GetOperationsForResourceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetOperationsForResource

type Rep GetOperationsForResourceResponse = D1 ('MetaData "GetOperationsForResourceResponse" "Amazonka.Lightsail.GetOperationsForResource" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetOperationsForResourceResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextPageCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetOperationsForResourceResponse Source #

Create a value of GetOperationsForResourceResponse 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:nextPageCount:GetOperationsForResourceResponse', getOperationsForResourceResponse_nextPageCount - (Deprecated) Returns the number of pages of results that remain.

In releases prior to June 12, 2017, this parameter returned null by the API. It is now deprecated, and the API returns the next page token parameter instead.

$sel:nextPageToken:GetOperationsForResourceResponse', getOperationsForResourceResponse_nextPageToken - The token to advance to the next page of results from your request.

A next page token is not returned if there are no more results to display.

To get the next page of results, perform another GetOperationsForResource request and specify the next page token using the pageToken parameter.

$sel:operations:GetOperationsForResourceResponse', getOperationsForResourceResponse_operations - An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

$sel:httpStatus:GetOperationsForResourceResponse', getOperationsForResourceResponse_httpStatus - The response's http status code.

Response Lenses

getOperationsForResourceResponse_nextPageCount :: Lens' GetOperationsForResourceResponse (Maybe Text) Source #

(Deprecated) Returns the number of pages of results that remain.

In releases prior to June 12, 2017, this parameter returned null by the API. It is now deprecated, and the API returns the next page token parameter instead.

getOperationsForResourceResponse_nextPageToken :: Lens' GetOperationsForResourceResponse (Maybe Text) Source #

The token to advance to the next page of results from your request.

A next page token is not returned if there are no more results to display.

To get the next page of results, perform another GetOperationsForResource request and specify the next page token using the pageToken parameter.

getOperationsForResourceResponse_operations :: Lens' GetOperationsForResourceResponse (Maybe [Operation]) Source #

An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.