| 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 |
Amazonka.Panorama.CreatePackage
Description
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_arn :: Lens' CreatePackageResponse (Maybe Text)
- createPackageResponse_packageId :: Lens' CreatePackageResponse (Maybe Text)
- createPackageResponse_httpStatus :: Lens' CreatePackageResponse Int
- createPackageResponse_storageLocation :: Lens' CreatePackageResponse StorageLocation
Creating a Request
data CreatePackage Source #
See: newCreatePackage smart constructor.
Constructors
| CreatePackage' | |
Instances
Arguments
| :: Text | |
| -> 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_tags - Tags for the package.
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.
Constructors
| CreatePackageResponse' | |
Fields
| |
Instances
newCreatePackageResponse Source #
Arguments
| :: Int | |
| -> StorageLocation | |
| -> CreatePackageResponse |
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:
CreatePackageResponse, createPackageResponse_arn - The package's ARN.
CreatePackageResponse, createPackageResponse_packageId - The package's ID.
$sel:httpStatus:CreatePackageResponse', createPackageResponse_httpStatus - The response's http status code.
$sel:storageLocation:CreatePackageResponse', createPackageResponse_storageLocation - The package's storage location.
Response Lenses
createPackageResponse_arn :: Lens' CreatePackageResponse (Maybe Text) Source #
The package's ARN.
createPackageResponse_packageId :: Lens' CreatePackageResponse (Maybe Text) Source #
The package's ID.
createPackageResponse_httpStatus :: Lens' CreatePackageResponse Int Source #
The response's http status code.
createPackageResponse_storageLocation :: Lens' CreatePackageResponse StorageLocation Source #
The package's storage location.