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 |
Associates a package with an Amazon OpenSearch Service domain.
Synopsis
- data AssociatePackage = AssociatePackage' {
- packageID :: Text
- domainName :: Text
- newAssociatePackage :: Text -> Text -> AssociatePackage
- associatePackage_packageID :: Lens' AssociatePackage Text
- associatePackage_domainName :: Lens' AssociatePackage Text
- data AssociatePackageResponse = AssociatePackageResponse' {}
- newAssociatePackageResponse :: Int -> AssociatePackageResponse
- associatePackageResponse_domainPackageDetails :: Lens' AssociatePackageResponse (Maybe DomainPackageDetails)
- associatePackageResponse_httpStatus :: Lens' AssociatePackageResponse Int
Creating a Request
data AssociatePackage Source #
Container for the request parameters to the AssociatePackage
operation.
See: newAssociatePackage
smart constructor.
AssociatePackage' | |
|
Instances
Create a value of AssociatePackage
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:packageID:AssociatePackage'
, associatePackage_packageID
- Internal ID of the package to associate with a domain. Use
DescribePackages
to find this value.
$sel:domainName:AssociatePackage'
, associatePackage_domainName
- The name of the domain to associate the package with.
Request Lenses
associatePackage_packageID :: Lens' AssociatePackage Text Source #
Internal ID of the package to associate with a domain. Use
DescribePackages
to find this value.
associatePackage_domainName :: Lens' AssociatePackage Text Source #
The name of the domain to associate the package with.
Destructuring the Response
data AssociatePackageResponse Source #
Container for the response returned by AssociatePackage
operation.
See: newAssociatePackageResponse
smart constructor.
AssociatePackageResponse' | |
|
Instances
newAssociatePackageResponse Source #
Create a value of AssociatePackageResponse
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:domainPackageDetails:AssociatePackageResponse'
, associatePackageResponse_domainPackageDetails
- DomainPackageDetails
$sel:httpStatus:AssociatePackageResponse'
, associatePackageResponse_httpStatus
- The response's http status code.
Response Lenses
associatePackageResponse_domainPackageDetails :: Lens' AssociatePackageResponse (Maybe DomainPackageDetails) Source #
DomainPackageDetails
associatePackageResponse_httpStatus :: Lens' AssociatePackageResponse Int Source #
The response's http status code.