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 |
Creates a package and storage location in an Amazon S3 access point.
Synopsis
- data CreatePackage = CreatePackage' {}
- newCreatePackage :: Text -> CreatePackage
- createPackage_tags :: Lens' CreatePackage (Maybe (HashMap Text Text))
- createPackage_packageName :: Lens' CreatePackage Text
- data CreatePackageResponse = CreatePackageResponse' {}
- newCreatePackageResponse :: Int -> StorageLocation -> CreatePackageResponse
- createPackageResponse_packageId :: Lens' CreatePackageResponse (Maybe Text)
- createPackageResponse_arn :: Lens' CreatePackageResponse (Maybe Text)
- createPackageResponse_httpStatus :: Lens' CreatePackageResponse Int
- createPackageResponse_storageLocation :: Lens' CreatePackageResponse StorageLocation
Creating a Request
data CreatePackage Source #
See: newCreatePackage
smart constructor.
Instances
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:tags:CreatePackage'
, createPackage_tags
- Tags for the package.
$sel:packageName:CreatePackage'
, createPackage_packageName
- A name for the package.
Request Lenses
createPackage_tags :: Lens' CreatePackage (Maybe (HashMap Text Text)) Source #
Tags for the package.
createPackage_packageName :: Lens' CreatePackage Text Source #
A name for the package.
Destructuring the Response
data CreatePackageResponse Source #
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:packageId:CreatePackageResponse'
, createPackageResponse_packageId
- The package's ID.
$sel:arn:CreatePackageResponse'
, createPackageResponse_arn
- The package's ARN.
$sel:httpStatus:CreatePackageResponse'
, createPackageResponse_httpStatus
- The response's http status code.
$sel:storageLocation:CreatePackageResponse'
, createPackageResponse_storageLocation
- The package's storage location.
Response Lenses
createPackageResponse_packageId :: Lens' CreatePackageResponse (Maybe Text) Source #
The package's ID.
createPackageResponse_arn :: Lens' CreatePackageResponse (Maybe Text) Source #
The package's ARN.
createPackageResponse_httpStatus :: Lens' CreatePackageResponse Int Source #
The response's http status code.
createPackageResponse_storageLocation :: Lens' CreatePackageResponse StorageLocation Source #
The package's storage location.