Skip to main content

cortexa_aws_cloudtrail_data/generated/
operations.rs

1//! codegen-checksum: 862534e120fbed4d
2//! Auto-generated official AWS cloudtrail-data Smithy 2.0 operation descriptors.
3//! Do not edit manually.
4
5#![allow(dead_code)]
6
7/// Service-level metadata extracted from the official Smithy 2.0 model.
8#[derive(Debug, Clone, Copy, PartialEq, Eq)]
9pub struct ServiceDescriptor {
10    /// AWS SDK identifier.
11    pub sdk_id: &'static str,
12    /// AWS API version.
13    pub api_version: &'static str,
14    /// Wire protocol.
15    pub protocol: &'static str,
16    /// SigV4 signing name.
17    pub signing_name: &'static str,
18    /// Endpoint host prefix.
19    pub endpoint_prefix: &'static str,
20    /// `X-Amz-Target` namespace prefix.
21    pub target_namespace: &'static str,
22}
23
24/// Extracted service descriptor.
25pub const SERVICE: ServiceDescriptor = ServiceDescriptor {
26    sdk_id: "CloudTrail Data",
27    api_version: "2021-08-11",
28    protocol: "restJson1",
29    signing_name: "cloudtrail-data",
30    endpoint_prefix: "cloudtrail-data",
31    target_namespace: "CloudTrailDataService",
32};
33
34/// Static wire descriptor for a single AWS Smithy 2.0 operation.
35#[derive(Debug, Clone, Copy, PartialEq, Eq)]
36pub struct OperationDescriptor {
37    /// Operation name.
38    pub name: &'static str,
39    /// HTTP method.
40    pub method: &'static str,
41    /// HTTP URI template.
42    pub uri: &'static str,
43    /// Expected HTTP success status code.
44    pub http_code: u16,
45    /// Optional input structure name.
46    pub input_shape: Option<&'static str>,
47    /// Optional output structure name.
48    pub output_shape: Option<&'static str>,
49    /// Optional pagination input token field.
50    pub input_token: Option<&'static str>,
51    /// Optional pagination output token field.
52    pub output_token: Option<&'static str>,
53    /// Optional pagination items field.
54    pub items_field: Option<&'static str>,
55    /// Whether the operation is marked idempotent.
56    pub idempotent: bool,
57    /// Whether the operation is marked readonly.
58    pub readonly: bool,
59}
60
61/// Operation descriptor for `PutAuditEvents`.
62pub const OP_PUT_AUDIT_EVENTS: OperationDescriptor = OperationDescriptor {
63    name: "PutAuditEvents",
64    method: "POST",
65    uri: "/PutAuditEvents",
66    http_code: 200,
67    input_shape: Some("PutAuditEventsRequest"),
68    output_shape: Some("PutAuditEventsResponse"),
69    input_token: None,
70    output_token: None,
71    items_field: None,
72    idempotent: false,
73    readonly: false,
74};
75
76/// All operations defined in the service model.
77pub const ALL_OPERATIONS: &[OperationDescriptor] = &[OP_PUT_AUDIT_EVENTS];