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 BatchCreatePartition

Source§

impl RuntimePlugin for BatchDeleteConnection

Source§

impl RuntimePlugin for BatchDeletePartition

Source§

impl RuntimePlugin for BatchDeleteTable

Source§

impl RuntimePlugin for BatchDeleteTableVersion

Source§

impl RuntimePlugin for BatchGetBlueprints

Source§

impl RuntimePlugin for BatchGetCrawlers

Source§

impl RuntimePlugin for BatchGetCustomEntityTypes

Source§

impl RuntimePlugin for BatchGetDataQualityResult

Source§

impl RuntimePlugin for BatchGetDevEndpoints

Source§

impl RuntimePlugin for BatchGetJobs

Source§

impl RuntimePlugin for BatchGetPartition

Source§

impl RuntimePlugin for BatchGetTableOptimizer

Source§

impl RuntimePlugin for BatchGetTriggers

Source§

impl RuntimePlugin for BatchGetWorkflows

Source§

impl RuntimePlugin for BatchPutDataQualityStatisticAnnotation

Source§

impl RuntimePlugin for BatchStopJobRun

Source§

impl RuntimePlugin for BatchUpdatePartition

Source§

impl RuntimePlugin for CancelDataQualityRuleRecommendationRun

Source§

impl RuntimePlugin for CancelDataQualityRulesetEvaluationRun

Source§

impl RuntimePlugin for CancelMLTaskRun

Source§

impl RuntimePlugin for CancelStatement

Source§

impl RuntimePlugin for CheckSchemaVersionValidity

Source§

impl RuntimePlugin for CreateBlueprint

Source§

impl RuntimePlugin for CreateCatalog

Source§

impl RuntimePlugin for CreateClassifier

Source§

impl RuntimePlugin for CreateColumnStatisticsTaskSettings

Source§

impl RuntimePlugin for CreateConnection

Source§

impl RuntimePlugin for CreateCrawler

Source§

impl RuntimePlugin for CreateCustomEntityType

Source§

impl RuntimePlugin for CreateDataQualityRuleset

Source§

impl RuntimePlugin for CreateDatabase

Source§

impl RuntimePlugin for CreateDevEndpoint

Source§

impl RuntimePlugin for CreateIntegration

Source§

impl RuntimePlugin for CreateIntegrationResourceProperty

Source§

impl RuntimePlugin for CreateIntegrationTableProperties

Source§

impl RuntimePlugin for CreateJob

Source§

impl RuntimePlugin for CreateMLTransform

Source§

impl RuntimePlugin for CreatePartition

Source§

impl RuntimePlugin for CreatePartitionIndex

Source§

impl RuntimePlugin for CreateRegistry

Source§

impl RuntimePlugin for CreateSchema

Source§

impl RuntimePlugin for CreateScript

Source§

impl RuntimePlugin for CreateSecurityConfiguration

Source§

impl RuntimePlugin for CreateSession

Source§

impl RuntimePlugin for CreateTable

Source§

impl RuntimePlugin for CreateTableOptimizer

Source§

impl RuntimePlugin for CreateTrigger

Source§

impl RuntimePlugin for CreateUsageProfile

Source§

impl RuntimePlugin for CreateUserDefinedFunction

Source§

impl RuntimePlugin for CreateWorkflow

Source§

impl RuntimePlugin for DeleteBlueprint

Source§

impl RuntimePlugin for DeleteCatalog

Source§

impl RuntimePlugin for DeleteClassifier

Source§

impl RuntimePlugin for DeleteColumnStatisticsForPartition

Source§

impl RuntimePlugin for DeleteColumnStatisticsForTable

Source§

impl RuntimePlugin for DeleteColumnStatisticsTaskSettings

Source§

impl RuntimePlugin for DeleteConnection

Source§

impl RuntimePlugin for DeleteCrawler

Source§

impl RuntimePlugin for DeleteCustomEntityType

Source§

impl RuntimePlugin for DeleteDataQualityRuleset

Source§

impl RuntimePlugin for DeleteDatabase

Source§

impl RuntimePlugin for DeleteDevEndpoint

Source§

impl RuntimePlugin for DeleteIntegration

Source§

impl RuntimePlugin for DeleteIntegrationTableProperties

Source§

impl RuntimePlugin for DeleteJob

Source§

impl RuntimePlugin for DeleteMLTransform

Source§

impl RuntimePlugin for DeletePartition

Source§

impl RuntimePlugin for DeletePartitionIndex

Source§

impl RuntimePlugin for DeleteRegistry

Source§

impl RuntimePlugin for DeleteResourcePolicy

Source§

impl RuntimePlugin for DeleteSchema

Source§

impl RuntimePlugin for DeleteSchemaVersions

Source§

impl RuntimePlugin for DeleteSecurityConfiguration

Source§

impl RuntimePlugin for DeleteSession

Source§

impl RuntimePlugin for DeleteTable

Source§

impl RuntimePlugin for DeleteTableOptimizer

Source§

impl RuntimePlugin for DeleteTableVersion

Source§

impl RuntimePlugin for DeleteTrigger

Source§

impl RuntimePlugin for DeleteUsageProfile

Source§

impl RuntimePlugin for DeleteUserDefinedFunction

Source§

impl RuntimePlugin for DeleteWorkflow

Source§

impl RuntimePlugin for DescribeConnectionType

Source§

impl RuntimePlugin for DescribeEntity

Source§

impl RuntimePlugin for DescribeInboundIntegrations

Source§

impl RuntimePlugin for DescribeIntegrations

Source§

impl RuntimePlugin for GetBlueprint

Source§

impl RuntimePlugin for GetBlueprintRun

Source§

impl RuntimePlugin for GetBlueprintRuns

Source§

impl RuntimePlugin for GetCatalog

Source§

impl RuntimePlugin for GetCatalogImportStatus

Source§

impl RuntimePlugin for GetCatalogs

Source§

impl RuntimePlugin for GetClassifier

Source§

impl RuntimePlugin for GetClassifiers

Source§

impl RuntimePlugin for GetColumnStatisticsForPartition

Source§

impl RuntimePlugin for GetColumnStatisticsForTable

Source§

impl RuntimePlugin for GetColumnStatisticsTaskRun

Source§

impl RuntimePlugin for GetColumnStatisticsTaskRuns

Source§

impl RuntimePlugin for GetColumnStatisticsTaskSettings

Source§

impl RuntimePlugin for GetConnection

Source§

impl RuntimePlugin for GetConnections

Source§

impl RuntimePlugin for GetCrawler

Source§

impl RuntimePlugin for GetCrawlerMetrics

Source§

impl RuntimePlugin for GetCrawlers

Source§

impl RuntimePlugin for GetCustomEntityType

Source§

impl RuntimePlugin for GetDataCatalogEncryptionSettings

Source§

impl RuntimePlugin for GetDataQualityModel

Source§

impl RuntimePlugin for GetDataQualityModelResult

Source§

impl RuntimePlugin for GetDataQualityResult

Source§

impl RuntimePlugin for GetDataQualityRuleRecommendationRun

Source§

impl RuntimePlugin for GetDataQualityRuleset

Source§

impl RuntimePlugin for GetDataQualityRulesetEvaluationRun

Source§

impl RuntimePlugin for GetDatabase

Source§

impl RuntimePlugin for GetDatabases

Source§

impl RuntimePlugin for GetDataflowGraph

Source§

impl RuntimePlugin for GetDevEndpoint

Source§

impl RuntimePlugin for GetDevEndpoints

Source§

impl RuntimePlugin for GetEntityRecords

Source§

impl RuntimePlugin for GetIntegrationResourceProperty

Source§

impl RuntimePlugin for GetIntegrationTableProperties

Source§

impl RuntimePlugin for GetJob

Source§

impl RuntimePlugin for GetJobBookmark

Source§

impl RuntimePlugin for GetJobRun

Source§

impl RuntimePlugin for GetJobRuns

Source§

impl RuntimePlugin for GetJobs

Source§

impl RuntimePlugin for GetMapping

Source§

impl RuntimePlugin for GetMLTaskRun

Source§

impl RuntimePlugin for GetMLTaskRuns

Source§

impl RuntimePlugin for GetMLTransform

Source§

impl RuntimePlugin for GetMLTransforms

Source§

impl RuntimePlugin for GetPartition

Source§

impl RuntimePlugin for GetPartitionIndexes

Source§

impl RuntimePlugin for GetPartitions

Source§

impl RuntimePlugin for GetPlan

Source§

impl RuntimePlugin for GetRegistry

Source§

impl RuntimePlugin for GetResourcePolicies

Source§

impl RuntimePlugin for GetResourcePolicy

Source§

impl RuntimePlugin for GetSchema

Source§

impl RuntimePlugin for GetSchemaByDefinition

Source§

impl RuntimePlugin for GetSchemaVersion

Source§

impl RuntimePlugin for GetSchemaVersionsDiff

Source§

impl RuntimePlugin for GetSecurityConfiguration

Source§

impl RuntimePlugin for GetSecurityConfigurations

Source§

impl RuntimePlugin for GetSession

Source§

impl RuntimePlugin for GetStatement

Source§

impl RuntimePlugin for GetTable

Source§

impl RuntimePlugin for GetTableOptimizer

Source§

impl RuntimePlugin for GetTableVersion

Source§

impl RuntimePlugin for GetTableVersions

Source§

impl RuntimePlugin for GetTables

Source§

impl RuntimePlugin for GetTags

Source§

impl RuntimePlugin for GetTrigger

Source§

impl RuntimePlugin for GetTriggers

Source§

impl RuntimePlugin for GetUnfilteredPartitionMetadata

Source§

impl RuntimePlugin for GetUnfilteredPartitionsMetadata

Source§

impl RuntimePlugin for GetUnfilteredTableMetadata

Source§

impl RuntimePlugin for GetUsageProfile

Source§

impl RuntimePlugin for GetUserDefinedFunction

Source§

impl RuntimePlugin for GetUserDefinedFunctions

Source§

impl RuntimePlugin for GetWorkflow

Source§

impl RuntimePlugin for GetWorkflowRun

Source§

impl RuntimePlugin for GetWorkflowRunProperties

Source§

impl RuntimePlugin for GetWorkflowRuns

Source§

impl RuntimePlugin for ImportCatalogToGlue

Source§

impl RuntimePlugin for ListBlueprints

Source§

impl RuntimePlugin for ListColumnStatisticsTaskRuns

Source§

impl RuntimePlugin for ListConnectionTypes

Source§

impl RuntimePlugin for ListCrawlers

Source§

impl RuntimePlugin for ListCrawls

Source§

impl RuntimePlugin for ListCustomEntityTypes

Source§

impl RuntimePlugin for ListDataQualityResults

Source§

impl RuntimePlugin for ListDataQualityRuleRecommendationRuns

Source§

impl RuntimePlugin for ListDataQualityRulesetEvaluationRuns

Source§

impl RuntimePlugin for ListDataQualityRulesets

Source§

impl RuntimePlugin for ListDataQualityStatisticAnnotations

Source§

impl RuntimePlugin for ListDataQualityStatistics

Source§

impl RuntimePlugin for ListDevEndpoints

Source§

impl RuntimePlugin for ListEntities

Source§

impl RuntimePlugin for ListJobs

Source§

impl RuntimePlugin for ListMLTransforms

Source§

impl RuntimePlugin for ListRegistries

Source§

impl RuntimePlugin for ListSchemaVersions

Source§

impl RuntimePlugin for ListSchemas

Source§

impl RuntimePlugin for ListSessions

Source§

impl RuntimePlugin for ListStatements

Source§

impl RuntimePlugin for ListTableOptimizerRuns

Source§

impl RuntimePlugin for ListTriggers

Source§

impl RuntimePlugin for ListUsageProfiles

Source§

impl RuntimePlugin for ListWorkflows

Source§

impl RuntimePlugin for ModifyIntegration

Source§

impl RuntimePlugin for PutDataCatalogEncryptionSettings

Source§

impl RuntimePlugin for PutDataQualityProfileAnnotation

Source§

impl RuntimePlugin for PutResourcePolicy

Source§

impl RuntimePlugin for PutSchemaVersionMetadata

Source§

impl RuntimePlugin for PutWorkflowRunProperties

Source§

impl RuntimePlugin for QuerySchemaVersionMetadata

Source§

impl RuntimePlugin for RegisterSchemaVersion

Source§

impl RuntimePlugin for RemoveSchemaVersionMetadata

Source§

impl RuntimePlugin for ResetJobBookmark

Source§

impl RuntimePlugin for ResumeWorkflowRun

Source§

impl RuntimePlugin for RunStatement

Source§

impl RuntimePlugin for SearchTables

Source§

impl RuntimePlugin for StartBlueprintRun

Source§

impl RuntimePlugin for StartColumnStatisticsTaskRun

Source§

impl RuntimePlugin for StartColumnStatisticsTaskRunSchedule

Source§

impl RuntimePlugin for StartCrawler

Source§

impl RuntimePlugin for StartCrawlerSchedule

Source§

impl RuntimePlugin for StartDataQualityRuleRecommendationRun

Source§

impl RuntimePlugin for StartDataQualityRulesetEvaluationRun

Source§

impl RuntimePlugin for StartExportLabelsTaskRun

Source§

impl RuntimePlugin for StartImportLabelsTaskRun

Source§

impl RuntimePlugin for StartJobRun

Source§

impl RuntimePlugin for StartMLEvaluationTaskRun

Source§

impl RuntimePlugin for StartMLLabelingSetGenerationTaskRun

Source§

impl RuntimePlugin for StartTrigger

Source§

impl RuntimePlugin for StartWorkflowRun

Source§

impl RuntimePlugin for StopColumnStatisticsTaskRun

Source§

impl RuntimePlugin for StopColumnStatisticsTaskRunSchedule

Source§

impl RuntimePlugin for StopCrawler

Source§

impl RuntimePlugin for StopCrawlerSchedule

Source§

impl RuntimePlugin for StopSession

Source§

impl RuntimePlugin for StopTrigger

Source§

impl RuntimePlugin for StopWorkflowRun

Source§

impl RuntimePlugin for TagResource

Source§

impl RuntimePlugin for TestConnection

Source§

impl RuntimePlugin for UntagResource

Source§

impl RuntimePlugin for UpdateBlueprint

Source§

impl RuntimePlugin for UpdateCatalog

Source§

impl RuntimePlugin for UpdateClassifier

Source§

impl RuntimePlugin for UpdateColumnStatisticsForPartition

Source§

impl RuntimePlugin for UpdateColumnStatisticsForTable

Source§

impl RuntimePlugin for UpdateColumnStatisticsTaskSettings

Source§

impl RuntimePlugin for UpdateConnection

Source§

impl RuntimePlugin for UpdateCrawler

Source§

impl RuntimePlugin for UpdateCrawlerSchedule

Source§

impl RuntimePlugin for UpdateDataQualityRuleset

Source§

impl RuntimePlugin for UpdateDatabase

Source§

impl RuntimePlugin for UpdateDevEndpoint

Source§

impl RuntimePlugin for UpdateIntegrationResourceProperty

Source§

impl RuntimePlugin for UpdateIntegrationTableProperties

Source§

impl RuntimePlugin for UpdateJob

Source§

impl RuntimePlugin for UpdateJobFromSourceControl

Source§

impl RuntimePlugin for UpdateMLTransform

Source§

impl RuntimePlugin for UpdatePartition

Source§

impl RuntimePlugin for UpdateRegistry

Source§

impl RuntimePlugin for UpdateSchema

Source§

impl RuntimePlugin for UpdateSourceControlFromJob

Source§

impl RuntimePlugin for UpdateTable

Source§

impl RuntimePlugin for UpdateTableOptimizer

Source§

impl RuntimePlugin for UpdateTrigger

Source§

impl RuntimePlugin for UpdateUsageProfile

Source§

impl RuntimePlugin for UpdateUserDefinedFunction

Source§

impl RuntimePlugin for UpdateWorkflow

Source§

impl RuntimePlugin for StaticRuntimePlugin

Source§

impl RuntimePlugin for SharedRuntimePlugin