| 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.GuardDuty.CreatePublishingDestination
Description
Creates a publishing destination to export findings to. The resource to export findings to must exist before you use this operation.
Synopsis
- data CreatePublishingDestination = CreatePublishingDestination' {}
- newCreatePublishingDestination :: Text -> DestinationType -> DestinationProperties -> CreatePublishingDestination
- createPublishingDestination_clientToken :: Lens' CreatePublishingDestination (Maybe Text)
- createPublishingDestination_detectorId :: Lens' CreatePublishingDestination Text
- createPublishingDestination_destinationType :: Lens' CreatePublishingDestination DestinationType
- createPublishingDestination_destinationProperties :: Lens' CreatePublishingDestination DestinationProperties
- data CreatePublishingDestinationResponse = CreatePublishingDestinationResponse' {
- httpStatus :: Int
- destinationId :: Text
- newCreatePublishingDestinationResponse :: Int -> Text -> CreatePublishingDestinationResponse
- createPublishingDestinationResponse_httpStatus :: Lens' CreatePublishingDestinationResponse Int
- createPublishingDestinationResponse_destinationId :: Lens' CreatePublishingDestinationResponse Text
Creating a Request
data CreatePublishingDestination Source #
See: newCreatePublishingDestination smart constructor.
Constructors
| CreatePublishingDestination' | |
Fields
| |
Instances
newCreatePublishingDestination Source #
Arguments
| :: Text | |
| -> DestinationType | |
| -> DestinationProperties | |
| -> CreatePublishingDestination |
Create a value of CreatePublishingDestination 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:clientToken:CreatePublishingDestination', createPublishingDestination_clientToken - The idempotency token for the request.
CreatePublishingDestination, createPublishingDestination_detectorId - The ID of the GuardDuty detector associated with the publishing
destination.
CreatePublishingDestination, createPublishingDestination_destinationType - The type of resource for the publishing destination. Currently only
Amazon S3 buckets are supported.
$sel:destinationProperties:CreatePublishingDestination', createPublishingDestination_destinationProperties - The properties of the publishing destination, including the ARNs for the
destination and the KMS key used for encryption.
Request Lenses
createPublishingDestination_clientToken :: Lens' CreatePublishingDestination (Maybe Text) Source #
The idempotency token for the request.
createPublishingDestination_detectorId :: Lens' CreatePublishingDestination Text Source #
The ID of the GuardDuty detector associated with the publishing destination.
createPublishingDestination_destinationType :: Lens' CreatePublishingDestination DestinationType Source #
The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.
createPublishingDestination_destinationProperties :: Lens' CreatePublishingDestination DestinationProperties Source #
The properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.
Destructuring the Response
data CreatePublishingDestinationResponse Source #
See: newCreatePublishingDestinationResponse smart constructor.
Constructors
| CreatePublishingDestinationResponse' | |
Fields
| |
Instances
newCreatePublishingDestinationResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> CreatePublishingDestinationResponse |
Create a value of CreatePublishingDestinationResponse 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:httpStatus:CreatePublishingDestinationResponse', createPublishingDestinationResponse_httpStatus - The response's http status code.
CreatePublishingDestinationResponse, createPublishingDestinationResponse_destinationId - The ID of the publishing destination that is created.
Response Lenses
createPublishingDestinationResponse_httpStatus :: Lens' CreatePublishingDestinationResponse Int Source #
The response's http status code.
createPublishingDestinationResponse_destinationId :: Lens' CreatePublishingDestinationResponse Text Source #
The ID of the publishing destination that is created.