Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Create a package for use with Amazon OpenSearch Service 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 the 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:
$sel:packageDescription:CreatePackage'
, createPackage_packageDescription
- Description of the package.
$sel:packageName:CreatePackage'
, createPackage_packageName
- Unique identifier for the package.
$sel:packageType:CreatePackage'
, createPackage_packageType
- Type of package. Currently supports only TXT-DICTIONARY.
$sel:packageSource:CreatePackage'
, createPackage_packageSource
- The Amazon S3 location from which to import 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 Amazon S3 location from which to import the package.
Destructuring the Response
data CreatePackageResponse Source #
Container for the response returned by the 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.
$sel:httpStatus:CreatePackageResponse'
, createPackageResponse_httpStatus
- The response's http status code.
Response Lenses
createPackageResponse_packageDetails :: Lens' CreatePackageResponse (Maybe PackageDetails) Source #
Information about the package.
createPackageResponse_httpStatus :: Lens' CreatePackageResponse Int Source #
The response's http status code.