create_publishing_destination
async
¶
create_publishing_destination(
detector_id: DetectorId,
*,
config_overrides: Optional[AsyncGuardDutyClientConfig] = None,
destination_type: Optional[DestinationType] = None,
destination_properties: Optional[DestinationProperties] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagMap] = None,
) -> CreatePublishingDestinationResponse
Creates a publishing destination where you can export your GuardDuty findings. Before you start exporting the findings, the destination resource must exist.
Parameters:
-
detector_id(DetectorId) –The ID of the GuardDuty detector associated with the publishing destination.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. -
destination_type(Optional[DestinationType], default:None) –The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.
-
destination_properties(Optional[DestinationProperties], default:None) –The properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.
-
client_token(Optional[ClientToken], default:None) –The idempotency token for the request.
-
tags(Optional[TagMap], default:None) –The tags to be added to a new publishing destination resource.
Raises:
-
BadRequestException–A bad request exception object.
-
InternalServerErrorException–An internal server error exception object.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_guardduty/_services/async_guard_duty.py
1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 | |