UNPKG

@aws-cdk/aws-events

Version:

Amazon EventBridge Construct Library

348 lines (347 loc) 15.2 kB
function _aws_cdk_aws_events_RuleTargetInput(p) { } function _aws_cdk_aws_events_RuleTargetInputProperties(p) { } function _aws_cdk_aws_events_EventField(p) { } function _aws_cdk_aws_events_RuleProps(p) { if (p == null) return; visitedObjects.add(p); try { if (!visitedObjects.has(p.eventBus)) _aws_cdk_aws_events_IEventBus(p.eventBus); if (!visitedObjects.has(p.eventPattern)) _aws_cdk_aws_events_EventPattern(p.eventPattern); if (!visitedObjects.has(p.schedule)) _aws_cdk_aws_events_Schedule(p.schedule); if (p.targets != null) for (const o of p.targets) if (!visitedObjects.has(o)) _aws_cdk_aws_events_IRuleTarget(o); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_events_Rule(p) { } function _aws_cdk_aws_events_IRule(p) { } function _aws_cdk_aws_events_IRuleTarget(p) { } function _aws_cdk_aws_events_RuleTargetConfig(p) { if (p == null) return; visitedObjects.add(p); try { if (!visitedObjects.has(p.batchParameters)) _aws_cdk_aws_events_CfnRule_BatchParametersProperty(p.batchParameters); if (!visitedObjects.has(p.deadLetterConfig)) _aws_cdk_aws_events_CfnRule_DeadLetterConfigProperty(p.deadLetterConfig); if (!visitedObjects.has(p.ecsParameters)) _aws_cdk_aws_events_CfnRule_EcsParametersProperty(p.ecsParameters); if (!visitedObjects.has(p.httpParameters)) _aws_cdk_aws_events_CfnRule_HttpParametersProperty(p.httpParameters); if ("id" in p) print("@aws-cdk/aws-events.RuleTargetConfig#id", "no replacement. we will always use an autogenerated id."); if (!visitedObjects.has(p.input)) _aws_cdk_aws_events_RuleTargetInput(p.input); if (!visitedObjects.has(p.kinesisParameters)) _aws_cdk_aws_events_CfnRule_KinesisParametersProperty(p.kinesisParameters); if (!visitedObjects.has(p.retryPolicy)) _aws_cdk_aws_events_CfnRule_RetryPolicyProperty(p.retryPolicy); if (!visitedObjects.has(p.runCommandParameters)) _aws_cdk_aws_events_CfnRule_RunCommandParametersProperty(p.runCommandParameters); if (!visitedObjects.has(p.sqsParameters)) _aws_cdk_aws_events_CfnRule_SqsParametersProperty(p.sqsParameters); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_events_IEventBus(p) { } function _aws_cdk_aws_events_EventBusProps(p) { } function _aws_cdk_aws_events_EventBusAttributes(p) { } function _aws_cdk_aws_events_EventBus(p) { } function _aws_cdk_aws_events_EventPattern(p) { } function _aws_cdk_aws_events_Schedule(p) { } function _aws_cdk_aws_events_CronOptions(p) { } function _aws_cdk_aws_events_OnEventOptions(p) { if (p == null) return; visitedObjects.add(p); try { if (!visitedObjects.has(p.eventPattern)) _aws_cdk_aws_events_EventPattern(p.eventPattern); if (!visitedObjects.has(p.target)) _aws_cdk_aws_events_IRuleTarget(p.target); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_events_BaseArchiveProps(p) { if (p == null) return; visitedObjects.add(p); try { if (!visitedObjects.has(p.eventPattern)) _aws_cdk_aws_events_EventPattern(p.eventPattern); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_events_ArchiveProps(p) { if (p == null) return; visitedObjects.add(p); try { if (!visitedObjects.has(p.sourceEventBus)) _aws_cdk_aws_events_IEventBus(p.sourceEventBus); if (!visitedObjects.has(p.eventPattern)) _aws_cdk_aws_events_EventPattern(p.eventPattern); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_events_Archive(p) { } function _aws_cdk_aws_events_ConnectionProps(p) { if (p == null) return; visitedObjects.add(p); try { if (!visitedObjects.has(p.authorization)) _aws_cdk_aws_events_Authorization(p.authorization); if (p.bodyParameters != null) for (const o of Object.values(p.bodyParameters)) if (!visitedObjects.has(o)) _aws_cdk_aws_events_HttpParameter(o); if (p.headerParameters != null) for (const o of Object.values(p.headerParameters)) if (!visitedObjects.has(o)) _aws_cdk_aws_events_HttpParameter(o); if (p.queryStringParameters != null) for (const o of Object.values(p.queryStringParameters)) if (!visitedObjects.has(o)) _aws_cdk_aws_events_HttpParameter(o); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_events_Authorization(p) { } function _aws_cdk_aws_events_OAuthAuthorizationProps(p) { if (p == null) return; visitedObjects.add(p); try { if (!visitedObjects.has(p.httpMethod)) _aws_cdk_aws_events_HttpMethod(p.httpMethod); if (p.bodyParameters != null) for (const o of Object.values(p.bodyParameters)) if (!visitedObjects.has(o)) _aws_cdk_aws_events_HttpParameter(o); if (p.headerParameters != null) for (const o of Object.values(p.headerParameters)) if (!visitedObjects.has(o)) _aws_cdk_aws_events_HttpParameter(o); if (p.queryStringParameters != null) for (const o of Object.values(p.queryStringParameters)) if (!visitedObjects.has(o)) _aws_cdk_aws_events_HttpParameter(o); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_events_HttpParameter(p) { } function _aws_cdk_aws_events_IConnection(p) { } function _aws_cdk_aws_events_ConnectionAttributes(p) { } function _aws_cdk_aws_events_Connection(p) { } function _aws_cdk_aws_events_HttpMethod(p) { } function _aws_cdk_aws_events_ApiDestinationProps(p) { if (p == null) return; visitedObjects.add(p); try { if (!visitedObjects.has(p.connection)) _aws_cdk_aws_events_IConnection(p.connection); if (!visitedObjects.has(p.httpMethod)) _aws_cdk_aws_events_HttpMethod(p.httpMethod); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_events_IApiDestination(p) { } function _aws_cdk_aws_events_ApiDestination(p) { } function _aws_cdk_aws_events_CfnApiDestinationProps(p) { } function _aws_cdk_aws_events_CfnApiDestination(p) { } function _aws_cdk_aws_events_CfnArchiveProps(p) { } function _aws_cdk_aws_events_CfnArchive(p) { } function _aws_cdk_aws_events_CfnConnectionProps(p) { } function _aws_cdk_aws_events_CfnConnection(p) { } function _aws_cdk_aws_events_CfnConnection_ApiKeyAuthParametersProperty(p) { } function _aws_cdk_aws_events_CfnConnection_AuthParametersProperty(p) { } function _aws_cdk_aws_events_CfnConnection_BasicAuthParametersProperty(p) { } function _aws_cdk_aws_events_CfnConnection_ClientParametersProperty(p) { } function _aws_cdk_aws_events_CfnConnection_ConnectionHttpParametersProperty(p) { } function _aws_cdk_aws_events_CfnConnection_OAuthParametersProperty(p) { } function _aws_cdk_aws_events_CfnConnection_ParameterProperty(p) { } function _aws_cdk_aws_events_CfnEndpointProps(p) { } function _aws_cdk_aws_events_CfnEndpoint(p) { } function _aws_cdk_aws_events_CfnEndpoint_EndpointEventBusProperty(p) { } function _aws_cdk_aws_events_CfnEndpoint_FailoverConfigProperty(p) { } function _aws_cdk_aws_events_CfnEndpoint_PrimaryProperty(p) { } function _aws_cdk_aws_events_CfnEndpoint_ReplicationConfigProperty(p) { } function _aws_cdk_aws_events_CfnEndpoint_RoutingConfigProperty(p) { } function _aws_cdk_aws_events_CfnEndpoint_SecondaryProperty(p) { } function _aws_cdk_aws_events_CfnEventBusProps(p) { if (p == null) return; visitedObjects.add(p); try { if (p.tags != null) for (const o of p.tags) if (!visitedObjects.has(o)) _aws_cdk_aws_events_CfnEventBus_TagEntryProperty(o); } finally { visitedObjects.delete(p); } } function _aws_cdk_aws_events_CfnEventBus(p) { } function _aws_cdk_aws_events_CfnEventBus_TagEntryProperty(p) { } function _aws_cdk_aws_events_CfnEventBusPolicyProps(p) { } function _aws_cdk_aws_events_CfnEventBusPolicy(p) { } function _aws_cdk_aws_events_CfnEventBusPolicy_ConditionProperty(p) { } function _aws_cdk_aws_events_CfnRuleProps(p) { } function _aws_cdk_aws_events_CfnRule(p) { } function _aws_cdk_aws_events_CfnRule_AwsVpcConfigurationProperty(p) { } function _aws_cdk_aws_events_CfnRule_BatchArrayPropertiesProperty(p) { } function _aws_cdk_aws_events_CfnRule_BatchParametersProperty(p) { } function _aws_cdk_aws_events_CfnRule_BatchRetryStrategyProperty(p) { } function _aws_cdk_aws_events_CfnRule_CapacityProviderStrategyItemProperty(p) { } function _aws_cdk_aws_events_CfnRule_DeadLetterConfigProperty(p) { } function _aws_cdk_aws_events_CfnRule_EcsParametersProperty(p) { } function _aws_cdk_aws_events_CfnRule_HttpParametersProperty(p) { } function _aws_cdk_aws_events_CfnRule_InputTransformerProperty(p) { } function _aws_cdk_aws_events_CfnRule_KinesisParametersProperty(p) { } function _aws_cdk_aws_events_CfnRule_NetworkConfigurationProperty(p) { } function _aws_cdk_aws_events_CfnRule_PlacementConstraintProperty(p) { } function _aws_cdk_aws_events_CfnRule_PlacementStrategyProperty(p) { } function _aws_cdk_aws_events_CfnRule_RedshiftDataParametersProperty(p) { } function _aws_cdk_aws_events_CfnRule_RetryPolicyProperty(p) { } function _aws_cdk_aws_events_CfnRule_RunCommandParametersProperty(p) { } function _aws_cdk_aws_events_CfnRule_RunCommandTargetProperty(p) { } function _aws_cdk_aws_events_CfnRule_SageMakerPipelineParameterProperty(p) { } function _aws_cdk_aws_events_CfnRule_SageMakerPipelineParametersProperty(p) { } function _aws_cdk_aws_events_CfnRule_SqsParametersProperty(p) { } function _aws_cdk_aws_events_CfnRule_TagProperty(p) { } function _aws_cdk_aws_events_CfnRule_TargetProperty(p) { } function print(name, deprecationMessage) { const deprecated = process.env.JSII_DEPRECATED; const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn"; const message = `${name} is deprecated.\n ${deprecationMessage.trim()}\n This API will be removed in the next major release.`; switch (deprecationMode) { case "fail": throw new DeprecationError(message); case "warn": console.warn("[WARNING]", message); break; } } function getPropertyDescriptor(obj, prop) { const descriptor = Object.getOwnPropertyDescriptor(obj, prop); if (descriptor) { return descriptor; } const proto = Object.getPrototypeOf(obj); const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop); if (prototypeDescriptor) { return prototypeDescriptor; } return {}; } const visitedObjects = new Set(); class DeprecationError extends Error { constructor(...args) { super(...args); Object.defineProperty(this, "name", { configurable: false, enumerable: true, value: "DeprecationError", writable: false, }); } } module.exports = { print, getPropertyDescriptor, DeprecationError, _aws_cdk_aws_events_RuleTargetInput, _aws_cdk_aws_events_RuleTargetInputProperties, _aws_cdk_aws_events_EventField, _aws_cdk_aws_events_RuleProps, _aws_cdk_aws_events_Rule, _aws_cdk_aws_events_IRule, _aws_cdk_aws_events_IRuleTarget, _aws_cdk_aws_events_RuleTargetConfig, _aws_cdk_aws_events_IEventBus, _aws_cdk_aws_events_EventBusProps, _aws_cdk_aws_events_EventBusAttributes, _aws_cdk_aws_events_EventBus, _aws_cdk_aws_events_EventPattern, _aws_cdk_aws_events_Schedule, _aws_cdk_aws_events_CronOptions, _aws_cdk_aws_events_OnEventOptions, _aws_cdk_aws_events_BaseArchiveProps, _aws_cdk_aws_events_ArchiveProps, _aws_cdk_aws_events_Archive, _aws_cdk_aws_events_ConnectionProps, _aws_cdk_aws_events_Authorization, _aws_cdk_aws_events_OAuthAuthorizationProps, _aws_cdk_aws_events_HttpParameter, _aws_cdk_aws_events_IConnection, _aws_cdk_aws_events_ConnectionAttributes, _aws_cdk_aws_events_Connection, _aws_cdk_aws_events_HttpMethod, _aws_cdk_aws_events_ApiDestinationProps, _aws_cdk_aws_events_IApiDestination, _aws_cdk_aws_events_ApiDestination, _aws_cdk_aws_events_CfnApiDestinationProps, _aws_cdk_aws_events_CfnApiDestination, _aws_cdk_aws_events_CfnArchiveProps, _aws_cdk_aws_events_CfnArchive, _aws_cdk_aws_events_CfnConnectionProps, _aws_cdk_aws_events_CfnConnection, _aws_cdk_aws_events_CfnConnection_ApiKeyAuthParametersProperty, _aws_cdk_aws_events_CfnConnection_AuthParametersProperty, _aws_cdk_aws_events_CfnConnection_BasicAuthParametersProperty, _aws_cdk_aws_events_CfnConnection_ClientParametersProperty, _aws_cdk_aws_events_CfnConnection_ConnectionHttpParametersProperty, _aws_cdk_aws_events_CfnConnection_OAuthParametersProperty, _aws_cdk_aws_events_CfnConnection_ParameterProperty, _aws_cdk_aws_events_CfnEndpointProps, _aws_cdk_aws_events_CfnEndpoint, _aws_cdk_aws_events_CfnEndpoint_EndpointEventBusProperty, _aws_cdk_aws_events_CfnEndpoint_FailoverConfigProperty, _aws_cdk_aws_events_CfnEndpoint_PrimaryProperty, _aws_cdk_aws_events_CfnEndpoint_ReplicationConfigProperty, _aws_cdk_aws_events_CfnEndpoint_RoutingConfigProperty, _aws_cdk_aws_events_CfnEndpoint_SecondaryProperty, _aws_cdk_aws_events_CfnEventBusProps, _aws_cdk_aws_events_CfnEventBus, _aws_cdk_aws_events_CfnEventBus_TagEntryProperty, _aws_cdk_aws_events_CfnEventBusPolicyProps, _aws_cdk_aws_events_CfnEventBusPolicy, _aws_cdk_aws_events_CfnEventBusPolicy_ConditionProperty, _aws_cdk_aws_events_CfnRuleProps, _aws_cdk_aws_events_CfnRule, _aws_cdk_aws_events_CfnRule_AwsVpcConfigurationProperty, _aws_cdk_aws_events_CfnRule_BatchArrayPropertiesProperty, _aws_cdk_aws_events_CfnRule_BatchParametersProperty, _aws_cdk_aws_events_CfnRule_BatchRetryStrategyProperty, _aws_cdk_aws_events_CfnRule_CapacityProviderStrategyItemProperty, _aws_cdk_aws_events_CfnRule_DeadLetterConfigProperty, _aws_cdk_aws_events_CfnRule_EcsParametersProperty, _aws_cdk_aws_events_CfnRule_HttpParametersProperty, _aws_cdk_aws_events_CfnRule_InputTransformerProperty, _aws_cdk_aws_events_CfnRule_KinesisParametersProperty, _aws_cdk_aws_events_CfnRule_NetworkConfigurationProperty, _aws_cdk_aws_events_CfnRule_PlacementConstraintProperty, _aws_cdk_aws_events_CfnRule_PlacementStrategyProperty, _aws_cdk_aws_events_CfnRule_RedshiftDataParametersProperty, _aws_cdk_aws_events_CfnRule_RetryPolicyProperty, _aws_cdk_aws_events_CfnRule_RunCommandParametersProperty, _aws_cdk_aws_events_CfnRule_RunCommandTargetProperty, _aws_cdk_aws_events_CfnRule_SageMakerPipelineParameterProperty, _aws_cdk_aws_events_CfnRule_SageMakerPipelineParametersProperty, _aws_cdk_aws_events_CfnRule_SqsParametersProperty, _aws_cdk_aws_events_CfnRule_TagProperty, _aws_cdk_aws_events_CfnRule_TargetProperty };