libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway
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.StorageGateway.ListFileShares

Description

Gets a list of the file shares for a specific S3 File Gateway, or the list of file shares that belong to the calling user account. This operation is only supported for S3 File Gateways.

This operation returns paginated results.

Synopsis

Creating a Request

data ListFileShares Source #

ListFileShareInput

See: newListFileShares smart constructor.

Constructors

ListFileShares' 

Fields

  • gatewayARN :: Maybe Text

    The Amazon Resource Name (ARN) of the gateway whose file shares you want to list. If this field is not present, all file shares under your account are listed.

  • marker :: Maybe Text

    Opaque pagination token returned from a previous ListFileShares operation. If present, Marker specifies where to continue the list from after a previous call to ListFileShares. Optional.

  • limit :: Maybe Natural

    The maximum number of file shares to return in the response. The value must be an integer with a value greater than zero. Optional.

Instances

Instances details
Eq ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Read ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Show ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Generic ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Associated Types

type Rep ListFileShares :: Type -> Type #

NFData ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Methods

rnf :: ListFileShares -> () #

Hashable ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

ToJSON ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

AWSPager ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

AWSRequest ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Associated Types

type AWSResponse ListFileShares #

ToHeaders ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

ToPath ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

ToQuery ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

type Rep ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

type Rep ListFileShares = D1 ('MetaData "ListFileShares" "Amazonka.StorageGateway.ListFileShares" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "ListFileShares'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListFileShares Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

newListFileShares :: ListFileShares Source #

Create a value of ListFileShares 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:gatewayARN:ListFileShares', listFileShares_gatewayARN - The Amazon Resource Name (ARN) of the gateway whose file shares you want to list. If this field is not present, all file shares under your account are listed.

$sel:marker:ListFileShares', listFileShares_marker - Opaque pagination token returned from a previous ListFileShares operation. If present, Marker specifies where to continue the list from after a previous call to ListFileShares. Optional.

$sel:limit:ListFileShares', listFileShares_limit - The maximum number of file shares to return in the response. The value must be an integer with a value greater than zero. Optional.

Request Lenses

listFileShares_gatewayARN :: Lens' ListFileShares (Maybe Text) Source #

The Amazon Resource Name (ARN) of the gateway whose file shares you want to list. If this field is not present, all file shares under your account are listed.

listFileShares_marker :: Lens' ListFileShares (Maybe Text) Source #

Opaque pagination token returned from a previous ListFileShares operation. If present, Marker specifies where to continue the list from after a previous call to ListFileShares. Optional.

listFileShares_limit :: Lens' ListFileShares (Maybe Natural) Source #

The maximum number of file shares to return in the response. The value must be an integer with a value greater than zero. Optional.

Destructuring the Response

data ListFileSharesResponse Source #

ListFileShareOutput

See: newListFileSharesResponse smart constructor.

Constructors

ListFileSharesResponse' 

Fields

  • fileShareInfoList :: Maybe [FileShareInfo]

    An array of information about the S3 File Gateway's file shares.

  • marker :: Maybe Text

    If the request includes Marker, the response returns that value in this field.

  • nextMarker :: Maybe Text

    If a value is present, there are more file shares to return. In a subsequent request, use NextMarker as the value for Marker to retrieve the next set of file shares.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListFileSharesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Read ListFileSharesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Show ListFileSharesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Generic ListFileSharesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Associated Types

type Rep ListFileSharesResponse :: Type -> Type #

NFData ListFileSharesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

Methods

rnf :: ListFileSharesResponse -> () #

type Rep ListFileSharesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListFileShares

type Rep ListFileSharesResponse = D1 ('MetaData "ListFileSharesResponse" "Amazonka.StorageGateway.ListFileShares" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "ListFileSharesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fileShareInfoList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FileShareInfo])) :*: S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextMarker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListFileSharesResponse Source #

Create a value of ListFileSharesResponse 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:fileShareInfoList:ListFileSharesResponse', listFileSharesResponse_fileShareInfoList - An array of information about the S3 File Gateway's file shares.

$sel:marker:ListFileShares', listFileSharesResponse_marker - If the request includes Marker, the response returns that value in this field.

$sel:nextMarker:ListFileSharesResponse', listFileSharesResponse_nextMarker - If a value is present, there are more file shares to return. In a subsequent request, use NextMarker as the value for Marker to retrieve the next set of file shares.

$sel:httpStatus:ListFileSharesResponse', listFileSharesResponse_httpStatus - The response's http status code.

Response Lenses

listFileSharesResponse_fileShareInfoList :: Lens' ListFileSharesResponse (Maybe [FileShareInfo]) Source #

An array of information about the S3 File Gateway's file shares.

listFileSharesResponse_marker :: Lens' ListFileSharesResponse (Maybe Text) Source #

If the request includes Marker, the response returns that value in this field.

listFileSharesResponse_nextMarker :: Lens' ListFileSharesResponse (Maybe Text) Source #

If a value is present, there are more file shares to return. In a subsequent request, use NextMarker as the value for Marker to retrieve the next set of file shares.