Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
List components with summary data. You can filter the result list by environment, service, or a single service instance.
For more information about components, see Proton components in the Proton User Guide.
This operation returns paginated results.
Synopsis
- data ListComponents = ListComponents' {}
- newListComponents :: ListComponents
- listComponents_environmentName :: Lens' ListComponents (Maybe Text)
- listComponents_maxResults :: Lens' ListComponents (Maybe Natural)
- listComponents_nextToken :: Lens' ListComponents (Maybe Text)
- listComponents_serviceInstanceName :: Lens' ListComponents (Maybe Text)
- listComponents_serviceName :: Lens' ListComponents (Maybe Text)
- data ListComponentsResponse = ListComponentsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- components :: [ComponentSummary]
- newListComponentsResponse :: Int -> ListComponentsResponse
- listComponentsResponse_nextToken :: Lens' ListComponentsResponse (Maybe Text)
- listComponentsResponse_httpStatus :: Lens' ListComponentsResponse Int
- listComponentsResponse_components :: Lens' ListComponentsResponse [ComponentSummary]
Creating a Request
data ListComponents Source #
See: newListComponents
smart constructor.
ListComponents' | |
|
Instances
newListComponents :: ListComponents Source #
Create a value of ListComponents
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:
ListComponents
, listComponents_environmentName
- The name of an environment for result list filtering. Proton returns
components associated with the environment or attached to service
instances running in it.
$sel:maxResults:ListComponents'
, listComponents_maxResults
- The maximum number of components to list.
ListComponents
, listComponents_nextToken
- A token that indicates the location of the next component in the array
of components, after the list of components that was previously
requested.
ListComponents
, listComponents_serviceInstanceName
- The name of a service instance for result list filtering. Proton returns
the component attached to the service instance, if any.
ListComponents
, listComponents_serviceName
- The name of a service for result list filtering. Proton returns
components attached to service instances of the service.
Request Lenses
listComponents_environmentName :: Lens' ListComponents (Maybe Text) Source #
The name of an environment for result list filtering. Proton returns components associated with the environment or attached to service instances running in it.
listComponents_maxResults :: Lens' ListComponents (Maybe Natural) Source #
The maximum number of components to list.
listComponents_nextToken :: Lens' ListComponents (Maybe Text) Source #
A token that indicates the location of the next component in the array of components, after the list of components that was previously requested.
listComponents_serviceInstanceName :: Lens' ListComponents (Maybe Text) Source #
The name of a service instance for result list filtering. Proton returns the component attached to the service instance, if any.
listComponents_serviceName :: Lens' ListComponents (Maybe Text) Source #
The name of a service for result list filtering. Proton returns components attached to service instances of the service.
Destructuring the Response
data ListComponentsResponse Source #
See: newListComponentsResponse
smart constructor.
ListComponentsResponse' | |
|
Instances
newListComponentsResponse Source #
Create a value of ListComponentsResponse
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:
ListComponents
, listComponentsResponse_nextToken
- A token that indicates the location of the next component in the array
of components, after the current requested list of components.
$sel:httpStatus:ListComponentsResponse'
, listComponentsResponse_httpStatus
- The response's http status code.
$sel:components:ListComponentsResponse'
, listComponentsResponse_components
- An array of components with summary data.
Response Lenses
listComponentsResponse_nextToken :: Lens' ListComponentsResponse (Maybe Text) Source #
A token that indicates the location of the next component in the array of components, after the current requested list of components.
listComponentsResponse_httpStatus :: Lens' ListComponentsResponse Int Source #
The response's http status code.
listComponentsResponse_components :: Lens' ListComponentsResponse [ComponentSummary] Source #
An array of components with summary data.