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 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.
CreatePublishingDestination' | |
|
Instances
newCreatePublishingDestination Source #
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.
$sel:detectorId:CreatePublishingDestination'
, createPublishingDestination_detectorId
- The ID of the GuardDuty detector associated with the publishing
destination.
$sel:destinationType: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.
CreatePublishingDestinationResponse' | |
|
Instances
Eq CreatePublishingDestinationResponse Source # | |
Read CreatePublishingDestinationResponse Source # | |
Show CreatePublishingDestinationResponse Source # | |
Generic CreatePublishingDestinationResponse Source # | |
NFData CreatePublishingDestinationResponse Source # | |
Defined in Amazonka.GuardDuty.CreatePublishingDestination rnf :: CreatePublishingDestinationResponse -> () # | |
type Rep CreatePublishingDestinationResponse Source # | |
Defined in Amazonka.GuardDuty.CreatePublishingDestination type Rep CreatePublishingDestinationResponse = D1 ('MetaData "CreatePublishingDestinationResponse" "Amazonka.GuardDuty.CreatePublishingDestination" "libZSservicesZSamazonka-guarddutyZSamazonka-guardduty" 'False) (C1 ('MetaCons "CreatePublishingDestinationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "destinationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newCreatePublishingDestinationResponse Source #
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.
$sel:destinationId: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.