2019/11/15 - Amazon GuardDuty - 5 new api methods
Changes Update guardduty client to latest version
Returns a list of publishing destinations associated with the specified dectectorId.
See also: AWS API Documentation
Request Syntax
client.list_publishing_destinations( DetectorId='string', MaxResults=123, NextToken='string' )
string
[REQUIRED]
The ID of the detector to retrieve publishing destinations for.
integer
The maximum number of results to return in the response.
string
A token to use for paginating results returned in the repsonse. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.
dict
Response Syntax
{ 'Destinations': [ { 'DestinationId': 'string', 'DestinationType': 'S3', 'Status': 'PENDING_VERIFICATION'|'PUBLISHING'|'UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY'|'STOPPED' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
Destinations (list) --
A Destinations obect that includes information about each publishing destination returned.
(dict) --
Contains information about a publishing destination, including the ID, type, and status.
DestinationId (string) --
The unique ID of the publishing destination.
DestinationType (string) --
The type of resource used for the publishing destination. Currently, only S3 is supported.
Status (string) --
The status of the publishing destination.
NextToken (string) --
A token to use for paginating results returned in the repsonse. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.
Updates information about the publishing destination specified by the destinationId.
See also: AWS API Documentation
Request Syntax
client.update_publishing_destination( DetectorId='string', DestinationId='string', DestinationProperties={ 'DestinationArn': 'string', 'KmsKeyArn': 'string' } )
string
[REQUIRED]
The ID of the
string
[REQUIRED]
The ID of the detector associated with the publishing destinations to update.
dict
A DestinationProperties object that includes the DestinationArn and KmsKeyArn of the publishing destination.
DestinationArn (string) --
The ARN of the resource to publish to.
KmsKeyArn (string) --
The ARN of the KMS key to use for encryption.
dict
Response Syntax
{}
Response Structure
(dict) --
Creates a publishing destination to send findings to. The resource to send findings to must exist before you use this operation.
See also: AWS API Documentation
Request Syntax
client.create_publishing_destination( DetectorId='string', DestinationType='S3', DestinationProperties={ 'DestinationArn': 'string', 'KmsKeyArn': 'string' }, ClientToken='string' )
string
[REQUIRED]
The ID of the GuardDuty detector associated with the publishing destination.
string
[REQUIRED]
The type of resource for the publishing destination. Currently only S3 is supported.
dict
[REQUIRED]
Properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.
DestinationArn (string) --
The ARN of the resource to publish to.
KmsKeyArn (string) --
The ARN of the KMS key to use for encryption.
string
The idempotency token for the request.
This field is autopopulated if not provided.
dict
Response Syntax
{ 'DestinationId': 'string' }
Response Structure
(dict) --
DestinationId (string) --
The ID of the publishing destination created.
Deletes the publishing definition with the specified destinationId.
See also: AWS API Documentation
Request Syntax
client.delete_publishing_destination( DetectorId='string', DestinationId='string' )
string
[REQUIRED]
The unique ID of the detector associated with the publishing destination to delete.
string
[REQUIRED]
The ID of the publishing destination to delete.
dict
Response Syntax
{}
Response Structure
(dict) --
Returns information about the publishing destination specified by the provided destinationId.
See also: AWS API Documentation
Request Syntax
client.describe_publishing_destination( DetectorId='string', DestinationId='string' )
string
[REQUIRED]
The unique ID of the detector associated with the publishing destination to retrieve.
string
[REQUIRED]
The ID of the publishing destination to retrieve.
dict
Response Syntax
{ 'DestinationId': 'string', 'DestinationType': 'S3', 'Status': 'PENDING_VERIFICATION'|'PUBLISHING'|'UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY'|'STOPPED', 'PublishingFailureStartTimestamp': 123, 'DestinationProperties': { 'DestinationArn': 'string', 'KmsKeyArn': 'string' } }
Response Structure
(dict) --
DestinationId (string) --
The ID of the publishing destination.
DestinationType (string) --
The type of the publishing destination. Currently, only S3 is supported.
Status (string) --
The status of the publishing destination.
PublishingFailureStartTimestamp (integer) --
The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the destination.
DestinationProperties (dict) --
A DestinationProperties object that includes the DestinationArn and KmsKeyArn of the publishing destination.
DestinationArn (string) --
The ARN of the resource to publish to.
KmsKeyArn (string) --
The ARN of the KMS key to use for encryption.