cortexa-aws-cloudtrail-data 0.1.0

AWS CLOUDTRAIL-DATA service client and resource abstractions for cortexa-rust-aws.
Documentation
//! codegen-checksum: 862534e120fbed4d
//! Auto-generated official AWS cloudtrail-data Smithy 2.0 operation descriptors.
//! Do not edit manually.

#![allow(dead_code)]

/// Service-level metadata extracted from the official Smithy 2.0 model.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct ServiceDescriptor {
    /// AWS SDK identifier.
    pub sdk_id: &'static str,
    /// AWS API version.
    pub api_version: &'static str,
    /// Wire protocol.
    pub protocol: &'static str,
    /// SigV4 signing name.
    pub signing_name: &'static str,
    /// Endpoint host prefix.
    pub endpoint_prefix: &'static str,
    /// `X-Amz-Target` namespace prefix.
    pub target_namespace: &'static str,
}

/// Extracted service descriptor.
pub const SERVICE: ServiceDescriptor = ServiceDescriptor {
    sdk_id: "CloudTrail Data",
    api_version: "2021-08-11",
    protocol: "restJson1",
    signing_name: "cloudtrail-data",
    endpoint_prefix: "cloudtrail-data",
    target_namespace: "CloudTrailDataService",
};

/// Static wire descriptor for a single AWS Smithy 2.0 operation.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct OperationDescriptor {
    /// Operation name.
    pub name: &'static str,
    /// HTTP method.
    pub method: &'static str,
    /// HTTP URI template.
    pub uri: &'static str,
    /// Expected HTTP success status code.
    pub http_code: u16,
    /// Optional input structure name.
    pub input_shape: Option<&'static str>,
    /// Optional output structure name.
    pub output_shape: Option<&'static str>,
    /// Optional pagination input token field.
    pub input_token: Option<&'static str>,
    /// Optional pagination output token field.
    pub output_token: Option<&'static str>,
    /// Optional pagination items field.
    pub items_field: Option<&'static str>,
    /// Whether the operation is marked idempotent.
    pub idempotent: bool,
    /// Whether the operation is marked readonly.
    pub readonly: bool,
}

/// Operation descriptor for `PutAuditEvents`.
pub const OP_PUT_AUDIT_EVENTS: OperationDescriptor = OperationDescriptor {
    name: "PutAuditEvents",
    method: "POST",
    uri: "/PutAuditEvents",
    http_code: 200,
    input_shape: Some("PutAuditEventsRequest"),
    output_shape: Some("PutAuditEventsResponse"),
    input_token: None,
    output_token: None,
    items_field: None,
    idempotent: false,
    readonly: false,
};

/// All operations defined in the service model.
pub const ALL_OPERATIONS: &[OperationDescriptor] = &[OP_PUT_AUDIT_EVENTS];