aws_sdk_cloudwatchlogs::config

Trait RuntimePlugin

Source
pub trait RuntimePlugin:
    Debug
    + Send
    + Sync {
    // Provided methods
    fn order(&self) -> Order { ... }
    fn config(&self) -> Option<FrozenLayer> { ... }
    fn runtime_components(
        &self,
        current_components: &RuntimeComponentsBuilder,
    ) -> Cow<'_, RuntimeComponentsBuilder> { ... }
}
Expand description

Runtime plugin trait

A RuntimePlugin is the unit of configuration for augmenting the client with new behavior.

Runtime plugins can register interceptors, set runtime components, and modify configuration.

Provided Methods§

Source

fn order(&self) -> Order

Runtime plugin ordering.

There are two runtime plugin “levels” that run in the following order:

  1. Service runtime plugins - runtime plugins that pertain to the entire service.
  2. Operation runtime plugins - runtime plugins relevant only to a single operation.

This function is used to determine runtime plugin order within those levels. So regardless of this Order value, service runtime plugins will still always execute before operation runtime plugins. However, Defaults service runtime plugins will run before Overrides service runtime plugins.

Source

fn config(&self) -> Option<FrozenLayer>

Optionally returns additional config that should be added to the ConfigBag.

As a best practice, a frozen layer should be stored on the runtime plugin instance as a member, and then cloned upon return since that clone is cheap. Constructing a new Layer and freezing it will require a lot of allocations.

Source

fn runtime_components( &self, current_components: &RuntimeComponentsBuilder, ) -> Cow<'_, RuntimeComponentsBuilder>

Returns a RuntimeComponentsBuilder to incorporate into the final runtime components.

The order of runtime plugins determines which runtime components “win”. Components set by later runtime plugins will override those set by earlier runtime plugins.

If no runtime component changes are desired, just return an empty builder.

This method returns a Cow for flexibility. Some implementers may want to store the components builder as a member and return a reference to it, while others may need to create the builder every call. If possible, returning a reference is preferred for performance.

Components configured by previous runtime plugins are in the current_components argument, and can be used to create nested/wrapped components, such as a connector calling into an inner (customer provided) connector.

Implementations on Foreign Types§

Source§

impl RuntimePlugin for NoAuthRuntimePlugin

Source§

impl RuntimePlugin for EnforceContentLengthRuntimePlugin

Source§

impl RuntimePlugin for CannedResponseDeserializer

Source§

impl RuntimePlugin for CannedRequestSerializer

Implementors§

Source§

impl RuntimePlugin for AssociateKmsKey

Source§

impl RuntimePlugin for CancelExportTask

Source§

impl RuntimePlugin for CreateDelivery

Source§

impl RuntimePlugin for CreateExportTask

Source§

impl RuntimePlugin for CreateLogAnomalyDetector

Source§

impl RuntimePlugin for CreateLogGroup

Source§

impl RuntimePlugin for CreateLogStream

Source§

impl RuntimePlugin for DeleteAccountPolicy

Source§

impl RuntimePlugin for DeleteDataProtectionPolicy

Source§

impl RuntimePlugin for DeleteDelivery

Source§

impl RuntimePlugin for DeleteDeliveryDestination

Source§

impl RuntimePlugin for DeleteDeliveryDestinationPolicy

Source§

impl RuntimePlugin for DeleteDeliverySource

Source§

impl RuntimePlugin for DeleteDestination

Source§

impl RuntimePlugin for DeleteIndexPolicy

Source§

impl RuntimePlugin for DeleteLogAnomalyDetector

Source§

impl RuntimePlugin for DeleteLogGroup

Source§

impl RuntimePlugin for DeleteLogStream

Source§

impl RuntimePlugin for DeleteMetricFilter

Source§

impl RuntimePlugin for DeleteQueryDefinition

Source§

impl RuntimePlugin for DeleteResourcePolicy

Source§

impl RuntimePlugin for DeleteRetentionPolicy

Source§

impl RuntimePlugin for DeleteSubscriptionFilter

Source§

impl RuntimePlugin for DeleteTransformer

Source§

impl RuntimePlugin for DescribeAccountPolicies

Source§

impl RuntimePlugin for DescribeConfigurationTemplates

Source§

impl RuntimePlugin for DescribeDeliveries

Source§

impl RuntimePlugin for DescribeDeliveryDestinations

Source§

impl RuntimePlugin for DescribeDeliverySources

Source§

impl RuntimePlugin for DescribeDestinations

Source§

impl RuntimePlugin for DescribeExportTasks

Source§

impl RuntimePlugin for DescribeFieldIndexes

Source§

impl RuntimePlugin for DescribeIndexPolicies

Source§

impl RuntimePlugin for DescribeLogGroups

Source§

impl RuntimePlugin for DescribeLogStreams

Source§

impl RuntimePlugin for DescribeMetricFilters

Source§

impl RuntimePlugin for DescribeQueries

Source§

impl RuntimePlugin for DescribeQueryDefinitions

Source§

impl RuntimePlugin for DescribeResourcePolicies

Source§

impl RuntimePlugin for DescribeSubscriptionFilters

Source§

impl RuntimePlugin for DisassociateKmsKey

Source§

impl RuntimePlugin for FilterLogEvents

Source§

impl RuntimePlugin for GetDataProtectionPolicy

Source§

impl RuntimePlugin for GetDelivery

Source§

impl RuntimePlugin for GetDeliveryDestination

Source§

impl RuntimePlugin for GetDeliveryDestinationPolicy

Source§

impl RuntimePlugin for GetDeliverySource

Source§

impl RuntimePlugin for GetLogAnomalyDetector

Source§

impl RuntimePlugin for GetLogEvents

Source§

impl RuntimePlugin for GetLogGroupFields

Source§

impl RuntimePlugin for GetLogRecord

Source§

impl RuntimePlugin for GetQueryResults

Source§

impl RuntimePlugin for GetTransformer

Source§

impl RuntimePlugin for ListAnomalies

Source§

impl RuntimePlugin for ListLogAnomalyDetectors

Source§

impl RuntimePlugin for ListLogGroupsForQuery

Source§

impl RuntimePlugin for ListTagsForResource

Source§

impl RuntimePlugin for ListTagsLogGroup

Source§

impl RuntimePlugin for PutAccountPolicy

Source§

impl RuntimePlugin for PutDataProtectionPolicy

Source§

impl RuntimePlugin for PutDeliveryDestination

Source§

impl RuntimePlugin for PutDeliveryDestinationPolicy

Source§

impl RuntimePlugin for PutDeliverySource

Source§

impl RuntimePlugin for PutDestination

Source§

impl RuntimePlugin for PutDestinationPolicy

Source§

impl RuntimePlugin for PutIndexPolicy

Source§

impl RuntimePlugin for PutLogEvents

Source§

impl RuntimePlugin for PutMetricFilter

Source§

impl RuntimePlugin for PutQueryDefinition

Source§

impl RuntimePlugin for PutResourcePolicy

Source§

impl RuntimePlugin for PutRetentionPolicy

Source§

impl RuntimePlugin for PutSubscriptionFilter

Source§

impl RuntimePlugin for PutTransformer

Source§

impl RuntimePlugin for StartQuery

Source§

impl RuntimePlugin for StopQuery

Source§

impl RuntimePlugin for TagLogGroup

Source§

impl RuntimePlugin for TagResource

Source§

impl RuntimePlugin for TestMetricFilter

Source§

impl RuntimePlugin for TestTransformer

Source§

impl RuntimePlugin for UntagLogGroup

Source§

impl RuntimePlugin for UntagResource

Source§

impl RuntimePlugin for UpdateAnomaly

Source§

impl RuntimePlugin for UpdateDeliveryConfiguration

Source§

impl RuntimePlugin for UpdateLogAnomalyDetector

Source§

impl RuntimePlugin for StaticRuntimePlugin

Source§

impl RuntimePlugin for SharedRuntimePlugin