| 1 | import type * as shield from "@distilled.cloud/aws/shield"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `shield:DescribeDRTAccess`. |
| 7 | * |
| 8 | * Returns the IAM role and S3 log buckets the Shield Response Team (SRT) is |
| 9 | * currently authorized to use while assisting with attack mitigation — |
| 10 | * useful for security-posture audit handlers. Requires an active Shield |
| 11 | * Advanced subscription; without one the call fails with the typed |
| 12 | * `ResourceNotFoundException`. |
| 13 | * Provide the implementation with |
| 14 | * `Effect.provide(AWS.Shield.DescribeDRTAccessHttp)`. |
| 15 | * ### Shield Response Team Access |
| 16 | * **Example:** Audit SRT Access |
| 17 | * ```typescript |
| 18 | * // init — account-level binding, no resource argument |
| 19 | * const describeDRTAccess = yield* AWS.Shield.DescribeDRTAccess(); |
| 20 | * |
| 21 | * // runtime |
| 22 | * const { RoleArn, LogBucketList } = yield* describeDRTAccess(); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface DescribeDRTAccess extends Binding.Service< |
| 28 | DescribeDRTAccess, |
| 29 | "AWS.Shield.DescribeDRTAccess", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request?: shield.DescribeDRTAccessRequest, |
| 33 | ) => Effect.Effect< |
| 34 | shield.DescribeDRTAccessResponse, |
| 35 | shield.DescribeDRTAccessError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | export const DescribeDRTAccess = Binding.Service<DescribeDRTAccess>( |
| 40 | "AWS.Shield.DescribeDRTAccess", |
| 41 | ); |