RuntimePlugin

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 PayloadSigningOverrideRuntimePlugin

Source§

impl RuntimePlugin for NoAuthRuntimePlugin

Source§

impl RuntimePlugin for EnforceContentLengthRuntimePlugin

Source§

impl RuntimePlugin for MetricsRuntimePlugin

Source§

impl RuntimePlugin for CannedResponseDeserializer

Source§

impl RuntimePlugin for CannedRequestSerializer

Implementors§

Source§

impl RuntimePlugin for ActivateKeySigningKey

Source§

impl RuntimePlugin for AssociateVPCWithHostedZone

Source§

impl RuntimePlugin for ChangeCidrCollection

Source§

impl RuntimePlugin for ChangeResourceRecordSets

Source§

impl RuntimePlugin for ChangeTagsForResource

Source§

impl RuntimePlugin for CreateCidrCollection

Source§

impl RuntimePlugin for CreateHealthCheck

Source§

impl RuntimePlugin for CreateHostedZone

Source§

impl RuntimePlugin for CreateKeySigningKey

Source§

impl RuntimePlugin for CreateQueryLoggingConfig

Source§

impl RuntimePlugin for CreateReusableDelegationSet

Source§

impl RuntimePlugin for CreateTrafficPolicy

Source§

impl RuntimePlugin for CreateTrafficPolicyInstance

Source§

impl RuntimePlugin for CreateTrafficPolicyVersion

Source§

impl RuntimePlugin for CreateVPCAssociationAuthorization

Source§

impl RuntimePlugin for DeactivateKeySigningKey

Source§

impl RuntimePlugin for DeleteCidrCollection

Source§

impl RuntimePlugin for DeleteHealthCheck

Source§

impl RuntimePlugin for DeleteHostedZone

Source§

impl RuntimePlugin for DeleteKeySigningKey

Source§

impl RuntimePlugin for DeleteQueryLoggingConfig

Source§

impl RuntimePlugin for DeleteReusableDelegationSet

Source§

impl RuntimePlugin for DeleteTrafficPolicy

Source§

impl RuntimePlugin for DeleteTrafficPolicyInstance

Source§

impl RuntimePlugin for DeleteVPCAssociationAuthorization

Source§

impl RuntimePlugin for DisableHostedZoneDNSSEC

Source§

impl RuntimePlugin for DisassociateVPCFromHostedZone

Source§

impl RuntimePlugin for EnableHostedZoneDNSSEC

Source§

impl RuntimePlugin for GetAccountLimit

Source§

impl RuntimePlugin for GetChange

Source§

impl RuntimePlugin for GetCheckerIpRanges

Source§

impl RuntimePlugin for GetDNSSEC

Source§

impl RuntimePlugin for GetGeoLocation

Source§

impl RuntimePlugin for GetHealthCheck

Source§

impl RuntimePlugin for GetHealthCheckCount

Source§

impl RuntimePlugin for GetHealthCheckLastFailureReason

Source§

impl RuntimePlugin for GetHealthCheckStatus

Source§

impl RuntimePlugin for GetHostedZone

Source§

impl RuntimePlugin for GetHostedZoneCount

Source§

impl RuntimePlugin for GetHostedZoneLimit

Source§

impl RuntimePlugin for GetQueryLoggingConfig

Source§

impl RuntimePlugin for GetReusableDelegationSet

Source§

impl RuntimePlugin for GetReusableDelegationSetLimit

Source§

impl RuntimePlugin for GetTrafficPolicy

Source§

impl RuntimePlugin for GetTrafficPolicyInstance

Source§

impl RuntimePlugin for GetTrafficPolicyInstanceCount

Source§

impl RuntimePlugin for ListCidrBlocks

Source§

impl RuntimePlugin for ListCidrCollections

Source§

impl RuntimePlugin for ListCidrLocations

Source§

impl RuntimePlugin for ListGeoLocations

Source§

impl RuntimePlugin for ListHealthChecks

Source§

impl RuntimePlugin for ListHostedZones

Source§

impl RuntimePlugin for ListHostedZonesByName

Source§

impl RuntimePlugin for ListHostedZonesByVPC

Source§

impl RuntimePlugin for ListQueryLoggingConfigs

Source§

impl RuntimePlugin for ListResourceRecordSets

Source§

impl RuntimePlugin for ListReusableDelegationSets

Source§

impl RuntimePlugin for ListTagsForResource

Source§

impl RuntimePlugin for ListTagsForResources

Source§

impl RuntimePlugin for ListTrafficPolicies

Source§

impl RuntimePlugin for ListTrafficPolicyInstances

Source§

impl RuntimePlugin for ListTrafficPolicyInstancesByHostedZone

Source§

impl RuntimePlugin for ListTrafficPolicyInstancesByPolicy

Source§

impl RuntimePlugin for ListTrafficPolicyVersions

Source§

impl RuntimePlugin for ListVPCAssociationAuthorizations

Source§

impl RuntimePlugin for TestDNSAnswer

Source§

impl RuntimePlugin for UpdateHealthCheck

Source§

impl RuntimePlugin for UpdateHostedZoneComment

Source§

impl RuntimePlugin for UpdateTrafficPolicyComment

Source§

impl RuntimePlugin for UpdateTrafficPolicyInstance

Source§

impl RuntimePlugin for StaticRuntimePlugin

Source§

impl RuntimePlugin for SharedRuntimePlugin