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 |
Create a package for use with Amazon ES domains.
Synopsis
- data CreatePackage = CreatePackage' {}
- newCreatePackage :: Text -> PackageType -> PackageSource -> CreatePackage
- createPackage_packageDescription :: Lens' CreatePackage (Maybe Text)
- createPackage_packageName :: Lens' CreatePackage Text
- createPackage_packageType :: Lens' CreatePackage PackageType
- createPackage_packageSource :: Lens' CreatePackage PackageSource
- data CreatePackageResponse = CreatePackageResponse' {}
- newCreatePackageResponse :: Int -> CreatePackageResponse
- createPackageResponse_packageDetails :: Lens' CreatePackageResponse (Maybe PackageDetails)
- createPackageResponse_httpStatus :: Lens' CreatePackageResponse Int
Creating a Request
data CreatePackage Source #
Container for request parameters to
CreatePackage
operation.
See: newCreatePackage
smart constructor.
CreatePackage' | |
|
Instances
:: Text | |
-> PackageType | |
-> PackageSource | |
-> CreatePackage |
Create a value of CreatePackage
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:
CreatePackage
, createPackage_packageDescription
- Description of the package.
CreatePackage
, createPackage_packageName
- Unique identifier for the package.
CreatePackage
, createPackage_packageType
- Type of package. Currently supports only TXT-DICTIONARY.
$sel:packageSource:CreatePackage'
, createPackage_packageSource
- The customer S3 location PackageSource
for importing the package.
Request Lenses
createPackage_packageDescription :: Lens' CreatePackage (Maybe Text) Source #
Description of the package.
createPackage_packageName :: Lens' CreatePackage Text Source #
Unique identifier for the package.
createPackage_packageType :: Lens' CreatePackage PackageType Source #
Type of package. Currently supports only TXT-DICTIONARY.
createPackage_packageSource :: Lens' CreatePackage PackageSource Source #
The customer S3 location PackageSource
for importing the package.
Destructuring the Response
data CreatePackageResponse Source #
Container for response returned by
CreatePackage
operation.
See: newCreatePackageResponse
smart constructor.
CreatePackageResponse' | |
|
Instances
newCreatePackageResponse Source #
Create a value of CreatePackageResponse
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:packageDetails:CreatePackageResponse'
, createPackageResponse_packageDetails
- Information about the package PackageDetails
.
$sel:httpStatus:CreatePackageResponse'
, createPackageResponse_httpStatus
- The response's http status code.
Response Lenses
createPackageResponse_packageDetails :: Lens' CreatePackageResponse (Maybe PackageDetails) Source #
Information about the package PackageDetails
.
createPackageResponse_httpStatus :: Lens' CreatePackageResponse Int Source #
The response's http status code.