CfnEndpointProps
- class aws_cdk.aws_events.CfnEndpointProps(*, event_buses, routing_config, description=None, name=None, replication_config=None, role_arn=None)
Bases:
objectProperties for defining a
CfnEndpoint.- Parameters:
event_buses (
Union[IResolvable,Sequence[Union[IResolvable,EndpointEventBusProperty,Dict[str,Any]]]]) – The event buses being used by the endpoint. Exactly :2routing_config (
Union[IResolvable,RoutingConfigProperty,Dict[str,Any]]) – The routing configuration of the endpoint.description (
Optional[str]) – A description for the endpoint.name (
Optional[str]) – The name of the endpoint.replication_config (
Union[IResolvable,ReplicationConfigProperty,Dict[str,Any],None]) – Whether event replication was enabled or disabled for this endpoint. The default state isENABLEDwhich means you must supply aRoleArn. If you don’t have aRoleArnor you don’t want event replication enabled, set the state toDISABLED.role_arn (
Optional[str]) – The ARN of the role used by event replication for the endpoint.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-endpoint.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_events as events cfn_endpoint_props = events.CfnEndpointProps( event_buses=[events.CfnEndpoint.EndpointEventBusProperty( event_bus_arn="eventBusArn" )], routing_config=events.CfnEndpoint.RoutingConfigProperty( failover_config=events.CfnEndpoint.FailoverConfigProperty( primary=events.CfnEndpoint.PrimaryProperty( health_check="healthCheck" ), secondary=events.CfnEndpoint.SecondaryProperty( route="route" ) ) ), # the properties below are optional description="description", name="name", replication_config=events.CfnEndpoint.ReplicationConfigProperty( state="state" ), role_arn="roleArn" )
Attributes
- description
A description for the endpoint.
- event_buses
The event buses being used by the endpoint.
Exactly :
2
- name
The name of the endpoint.
- replication_config
Whether event replication was enabled or disabled for this endpoint.
The default state is
ENABLEDwhich means you must supply aRoleArn. If you don’t have aRoleArnor you don’t want event replication enabled, set the state toDISABLED.
- role_arn
The ARN of the role used by event replication for the endpoint.
- routing_config
The routing configuration of the endpoint.