We recommend new projects start with resources from the AWS provider.
aws-native.events.Endpoint
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Events::Endpoint.
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var sampleEndpoint = new AwsNative.Events.Endpoint("sampleEndpoint", new()
{
Name = "CreateExampleEndpoint",
RoutingConfig = new AwsNative.Events.Inputs.EndpointRoutingConfigArgs
{
FailoverConfig = new AwsNative.Events.Inputs.EndpointFailoverConfigArgs
{
Primary = new AwsNative.Events.Inputs.EndpointPrimaryArgs
{
HealthCheck = "arn:aws:route53:::healthcheck/0123456789abc",
},
Secondary = new AwsNative.Events.Inputs.EndpointSecondaryArgs
{
Route = "us-east-1",
},
},
},
ReplicationConfig = new AwsNative.Events.Inputs.EndpointReplicationConfigArgs
{
State = AwsNative.Events.EndpointReplicationState.Enabled,
},
RoleArn = "arn:aws:iam::123456789012:role/EndpointReplicationRole",
EventBuses = new[]
{
new AwsNative.Events.Inputs.EndpointEventBusArgs
{
EventBusArn = "arn:aws:events:us-west-2:123456789012:event-bus/ExampleEventBus",
},
new AwsNative.Events.Inputs.EndpointEventBusArgs
{
EventBusArn = "arn:aws:events:us-east-1:123456789012:event-bus/ExampleEventBus",
},
},
});
return new Dictionary<string, object?>
{
["sampleEndpointName"] = sampleEndpoint.Id,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/events"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
sampleEndpoint, err := events.NewEndpoint(ctx, "sampleEndpoint", &events.EndpointArgs{
Name: pulumi.String("CreateExampleEndpoint"),
RoutingConfig: &events.EndpointRoutingConfigArgs{
FailoverConfig: &events.EndpointFailoverConfigArgs{
Primary: &events.EndpointPrimaryArgs{
HealthCheck: pulumi.String("arn:aws:route53:::healthcheck/0123456789abc"),
},
Secondary: &events.EndpointSecondaryArgs{
Route: pulumi.String("us-east-1"),
},
},
},
ReplicationConfig: &events.EndpointReplicationConfigArgs{
State: events.EndpointReplicationStateEnabled,
},
RoleArn: pulumi.String("arn:aws:iam::123456789012:role/EndpointReplicationRole"),
EventBuses: events.EndpointEventBusArray{
&events.EndpointEventBusArgs{
EventBusArn: pulumi.String("arn:aws:events:us-west-2:123456789012:event-bus/ExampleEventBus"),
},
&events.EndpointEventBusArgs{
EventBusArn: pulumi.String("arn:aws:events:us-east-1:123456789012:event-bus/ExampleEventBus"),
},
},
})
if err != nil {
return err
}
ctx.Export("sampleEndpointName", sampleEndpoint.ID())
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
sample_endpoint = aws_native.events.Endpoint("sampleEndpoint",
name="CreateExampleEndpoint",
routing_config={
"failover_config": {
"primary": {
"health_check": "arn:aws:route53:::healthcheck/0123456789abc",
},
"secondary": {
"route": "us-east-1",
},
},
},
replication_config={
"state": aws_native.events.EndpointReplicationState.ENABLED,
},
role_arn="arn:aws:iam::123456789012:role/EndpointReplicationRole",
event_buses=[
{
"event_bus_arn": "arn:aws:events:us-west-2:123456789012:event-bus/ExampleEventBus",
},
{
"event_bus_arn": "arn:aws:events:us-east-1:123456789012:event-bus/ExampleEventBus",
},
])
pulumi.export("sampleEndpointName", sample_endpoint.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const sampleEndpoint = new aws_native.events.Endpoint("sampleEndpoint", {
name: "CreateExampleEndpoint",
routingConfig: {
failoverConfig: {
primary: {
healthCheck: "arn:aws:route53:::healthcheck/0123456789abc",
},
secondary: {
route: "us-east-1",
},
},
},
replicationConfig: {
state: aws_native.events.EndpointReplicationState.Enabled,
},
roleArn: "arn:aws:iam::123456789012:role/EndpointReplicationRole",
eventBuses: [
{
eventBusArn: "arn:aws:events:us-west-2:123456789012:event-bus/ExampleEventBus",
},
{
eventBusArn: "arn:aws:events:us-east-1:123456789012:event-bus/ExampleEventBus",
},
],
});
export const sampleEndpointName = sampleEndpoint.id;
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var sampleEndpoint = new AwsNative.Events.Endpoint("sampleEndpoint", new()
{
Name = "CreateExampleEndpoint",
RoutingConfig = new AwsNative.Events.Inputs.EndpointRoutingConfigArgs
{
FailoverConfig = new AwsNative.Events.Inputs.EndpointFailoverConfigArgs
{
Primary = new AwsNative.Events.Inputs.EndpointPrimaryArgs
{
HealthCheck = "arn:aws:route53:::healthcheck/0123456789abc",
},
Secondary = new AwsNative.Events.Inputs.EndpointSecondaryArgs
{
Route = "us-east-1",
},
},
},
ReplicationConfig = new AwsNative.Events.Inputs.EndpointReplicationConfigArgs
{
State = AwsNative.Events.EndpointReplicationState.Disabled,
},
EventBuses = new[]
{
new AwsNative.Events.Inputs.EndpointEventBusArgs
{
EventBusArn = "arn:aws:events:us-west-2:123456789012:event-bus/ExampleEventBus",
},
new AwsNative.Events.Inputs.EndpointEventBusArgs
{
EventBusArn = "arn:aws:events:us-east-1:123456789012:event-bus/ExampleEventBus",
},
},
});
return new Dictionary<string, object?>
{
["sampleEndpointName"] = sampleEndpoint.Id,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/events"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
sampleEndpoint, err := events.NewEndpoint(ctx, "sampleEndpoint", &events.EndpointArgs{
Name: pulumi.String("CreateExampleEndpoint"),
RoutingConfig: &events.EndpointRoutingConfigArgs{
FailoverConfig: &events.EndpointFailoverConfigArgs{
Primary: &events.EndpointPrimaryArgs{
HealthCheck: pulumi.String("arn:aws:route53:::healthcheck/0123456789abc"),
},
Secondary: &events.EndpointSecondaryArgs{
Route: pulumi.String("us-east-1"),
},
},
},
ReplicationConfig: &events.EndpointReplicationConfigArgs{
State: events.EndpointReplicationStateDisabled,
},
EventBuses: events.EndpointEventBusArray{
&events.EndpointEventBusArgs{
EventBusArn: pulumi.String("arn:aws:events:us-west-2:123456789012:event-bus/ExampleEventBus"),
},
&events.EndpointEventBusArgs{
EventBusArn: pulumi.String("arn:aws:events:us-east-1:123456789012:event-bus/ExampleEventBus"),
},
},
})
if err != nil {
return err
}
ctx.Export("sampleEndpointName", sampleEndpoint.ID())
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
sample_endpoint = aws_native.events.Endpoint("sampleEndpoint",
name="CreateExampleEndpoint",
routing_config={
"failover_config": {
"primary": {
"health_check": "arn:aws:route53:::healthcheck/0123456789abc",
},
"secondary": {
"route": "us-east-1",
},
},
},
replication_config={
"state": aws_native.events.EndpointReplicationState.DISABLED,
},
event_buses=[
{
"event_bus_arn": "arn:aws:events:us-west-2:123456789012:event-bus/ExampleEventBus",
},
{
"event_bus_arn": "arn:aws:events:us-east-1:123456789012:event-bus/ExampleEventBus",
},
])
pulumi.export("sampleEndpointName", sample_endpoint.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const sampleEndpoint = new aws_native.events.Endpoint("sampleEndpoint", {
name: "CreateExampleEndpoint",
routingConfig: {
failoverConfig: {
primary: {
healthCheck: "arn:aws:route53:::healthcheck/0123456789abc",
},
secondary: {
route: "us-east-1",
},
},
},
replicationConfig: {
state: aws_native.events.EndpointReplicationState.Disabled,
},
eventBuses: [
{
eventBusArn: "arn:aws:events:us-west-2:123456789012:event-bus/ExampleEventBus",
},
{
eventBusArn: "arn:aws:events:us-east-1:123456789012:event-bus/ExampleEventBus",
},
],
});
export const sampleEndpointName = sampleEndpoint.id;
Coming soon!
Create Endpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Endpoint(name: string, args: EndpointArgs, opts?: CustomResourceOptions);
@overload
def Endpoint(resource_name: str,
args: EndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Endpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_buses: Optional[Sequence[EndpointEventBusArgs]] = None,
routing_config: Optional[EndpointRoutingConfigArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
replication_config: Optional[EndpointReplicationConfigArgs] = None,
role_arn: Optional[str] = None)
func NewEndpoint(ctx *Context, name string, args EndpointArgs, opts ...ResourceOption) (*Endpoint, error)
public Endpoint(string name, EndpointArgs args, CustomResourceOptions? opts = null)
public Endpoint(String name, EndpointArgs args)
public Endpoint(String name, EndpointArgs args, CustomResourceOptions options)
type: aws-native:events:Endpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Endpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Endpoint resource accepts the following input properties:
- Event
Buses List<Pulumi.Aws Native. Events. Inputs. Endpoint Event Bus> The event buses being used by the endpoint.
Exactly :
2
- Routing
Config Pulumi.Aws Native. Events. Inputs. Endpoint Routing Config - The routing configuration of the endpoint.
- Description string
- A description for the endpoint.
- Name string
- The name of the endpoint.
- Replication
Config Pulumi.Aws Native. Events. Inputs. Endpoint Replication Config - Whether event replication was enabled or disabled for this endpoint. The default state is
ENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
. - Role
Arn string - The ARN of the role used by event replication for the endpoint.
- Event
Buses []EndpointEvent Bus Args The event buses being used by the endpoint.
Exactly :
2
- Routing
Config EndpointRouting Config Args - The routing configuration of the endpoint.
- Description string
- A description for the endpoint.
- Name string
- The name of the endpoint.
- Replication
Config EndpointReplication Config Args - Whether event replication was enabled or disabled for this endpoint. The default state is
ENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
. - Role
Arn string - The ARN of the role used by event replication for the endpoint.
- event
Buses List<EndpointEvent Bus> The event buses being used by the endpoint.
Exactly :
2
- routing
Config EndpointRouting Config - The routing configuration of the endpoint.
- description String
- A description for the endpoint.
- name String
- The name of the endpoint.
- replication
Config EndpointReplication Config - Whether event replication was enabled or disabled for this endpoint. The default state is
ENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
. - role
Arn String - The ARN of the role used by event replication for the endpoint.
- event
Buses EndpointEvent Bus[] The event buses being used by the endpoint.
Exactly :
2
- routing
Config EndpointRouting Config - The routing configuration of the endpoint.
- description string
- A description for the endpoint.
- name string
- The name of the endpoint.
- replication
Config EndpointReplication Config - Whether event replication was enabled or disabled for this endpoint. The default state is
ENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
. - role
Arn string - The ARN of the role used by event replication for the endpoint.
- event_
buses Sequence[EndpointEvent Bus Args] The event buses being used by the endpoint.
Exactly :
2
- routing_
config EndpointRouting Config Args - The routing configuration of the endpoint.
- description str
- A description for the endpoint.
- name str
- The name of the endpoint.
- replication_
config EndpointReplication Config Args - Whether event replication was enabled or disabled for this endpoint. The default state is
ENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
. - role_
arn str - The ARN of the role used by event replication for the endpoint.
- event
Buses List<Property Map> The event buses being used by the endpoint.
Exactly :
2
- routing
Config Property Map - The routing configuration of the endpoint.
- description String
- A description for the endpoint.
- name String
- The name of the endpoint.
- replication
Config Property Map - Whether event replication was enabled or disabled for this endpoint. The default state is
ENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
. - role
Arn String - The ARN of the role used by event replication for the endpoint.
Outputs
All input properties are implicitly available as output properties. Additionally, the Endpoint resource produces the following output properties:
- Arn string
- The ARN of the endpoint.
- Endpoint
Id string - The ID of the endpoint.
- Endpoint
Url string - The URL of the endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Pulumi.
Aws Native. Events. Endpoint State - The main Region of the endpoint.
- State
Reason string - The reason the endpoint is in its current state.
- Arn string
- The ARN of the endpoint.
- Endpoint
Id string - The ID of the endpoint.
- Endpoint
Url string - The URL of the endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Endpoint
State Enum - The main Region of the endpoint.
- State
Reason string - The reason the endpoint is in its current state.
- arn String
- The ARN of the endpoint.
- endpoint
Id String - The ID of the endpoint.
- endpoint
Url String - The URL of the endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- state
Endpoint
State - The main Region of the endpoint.
- state
Reason String - The reason the endpoint is in its current state.
- arn string
- The ARN of the endpoint.
- endpoint
Id string - The ID of the endpoint.
- endpoint
Url string - The URL of the endpoint.
- id string
- The provider-assigned unique ID for this managed resource.
- state
Endpoint
State - The main Region of the endpoint.
- state
Reason string - The reason the endpoint is in its current state.
- arn str
- The ARN of the endpoint.
- endpoint_
id str - The ID of the endpoint.
- endpoint_
url str - The URL of the endpoint.
- id str
- The provider-assigned unique ID for this managed resource.
- state
Endpoint
State - The main Region of the endpoint.
- state_
reason str - The reason the endpoint is in its current state.
- arn String
- The ARN of the endpoint.
- endpoint
Id String - The ID of the endpoint.
- endpoint
Url String - The URL of the endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- state "ACTIVE" | "CREATING" | "UPDATING" | "DELETING" | "CREATE_FAILED" | "UPDATE_FAILED"
- The main Region of the endpoint.
- state
Reason String - The reason the endpoint is in its current state.
Supporting Types
EndpointEventBus, EndpointEventBusArgs
- Event
Bus stringArn
- Event
Bus stringArn
- event
Bus StringArn
- event
Bus stringArn
- event_
bus_ strarn
- event
Bus StringArn
EndpointFailoverConfig, EndpointFailoverConfigArgs
- Primary
Pulumi.
Aws Native. Events. Inputs. Endpoint Primary - The main Region of the endpoint.
- Secondary
Pulumi.
Aws Native. Events. Inputs. Endpoint Secondary - The Region that events are routed to when failover is triggered or event replication is enabled.
- Primary
Endpoint
Primary - The main Region of the endpoint.
- Secondary
Endpoint
Secondary - The Region that events are routed to when failover is triggered or event replication is enabled.
- primary
Endpoint
Primary - The main Region of the endpoint.
- secondary
Endpoint
Secondary - The Region that events are routed to when failover is triggered or event replication is enabled.
- primary
Endpoint
Primary - The main Region of the endpoint.
- secondary
Endpoint
Secondary - The Region that events are routed to when failover is triggered or event replication is enabled.
- primary
Endpoint
Primary - The main Region of the endpoint.
- secondary
Endpoint
Secondary - The Region that events are routed to when failover is triggered or event replication is enabled.
- primary Property Map
- The main Region of the endpoint.
- secondary Property Map
- The Region that events are routed to when failover is triggered or event replication is enabled.
EndpointPrimary, EndpointPrimaryArgs
- Health
Check string - The ARN of the health check used by the endpoint to determine whether failover is triggered.
- Health
Check string - The ARN of the health check used by the endpoint to determine whether failover is triggered.
- health
Check String - The ARN of the health check used by the endpoint to determine whether failover is triggered.
- health
Check string - The ARN of the health check used by the endpoint to determine whether failover is triggered.
- health_
check str - The ARN of the health check used by the endpoint to determine whether failover is triggered.
- health
Check String - The ARN of the health check used by the endpoint to determine whether failover is triggered.
EndpointReplicationConfig, EndpointReplicationConfigArgs
- State
Pulumi.
Aws Native. Events. Endpoint Replication State - The state of event replication.
- State
Endpoint
Replication State - The state of event replication.
- state
Endpoint
Replication State - The state of event replication.
- state
Endpoint
Replication State - The state of event replication.
- state
Endpoint
Replication State - The state of event replication.
- state "ENABLED" | "DISABLED"
- The state of event replication.
EndpointReplicationState, EndpointReplicationStateArgs
- Enabled
- ENABLED
- Disabled
- DISABLED
- Endpoint
Replication State Enabled - ENABLED
- Endpoint
Replication State Disabled - DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- ENABLED
- ENABLED
- DISABLED
- DISABLED
- "ENABLED"
- ENABLED
- "DISABLED"
- DISABLED
EndpointRoutingConfig, EndpointRoutingConfigArgs
- Failover
Config Pulumi.Aws Native. Events. Inputs. Endpoint Failover Config - The failover configuration for an endpoint. This includes what triggers failover and what happens when it's triggered.
- Failover
Config EndpointFailover Config - The failover configuration for an endpoint. This includes what triggers failover and what happens when it's triggered.
- failover
Config EndpointFailover Config - The failover configuration for an endpoint. This includes what triggers failover and what happens when it's triggered.
- failover
Config EndpointFailover Config - The failover configuration for an endpoint. This includes what triggers failover and what happens when it's triggered.
- failover_
config EndpointFailover Config - The failover configuration for an endpoint. This includes what triggers failover and what happens when it's triggered.
- failover
Config Property Map - The failover configuration for an endpoint. This includes what triggers failover and what happens when it's triggered.
EndpointSecondary, EndpointSecondaryArgs
- Route string
- Defines the secondary Region.
- Route string
- Defines the secondary Region.
- route String
- Defines the secondary Region.
- route string
- Defines the secondary Region.
- route str
- Defines the secondary Region.
- route String
- Defines the secondary Region.
EndpointState, EndpointStateArgs
- Active
- ACTIVE
- Creating
- CREATING
- Updating
- UPDATING
- Deleting
- DELETING
- Create
Failed - CREATE_FAILED
- Update
Failed - UPDATE_FAILED
- Endpoint
State Active - ACTIVE
- Endpoint
State Creating - CREATING
- Endpoint
State Updating - UPDATING
- Endpoint
State Deleting - DELETING
- Endpoint
State Create Failed - CREATE_FAILED
- Endpoint
State Update Failed - UPDATE_FAILED
- Active
- ACTIVE
- Creating
- CREATING
- Updating
- UPDATING
- Deleting
- DELETING
- Create
Failed - CREATE_FAILED
- Update
Failed - UPDATE_FAILED
- Active
- ACTIVE
- Creating
- CREATING
- Updating
- UPDATING
- Deleting
- DELETING
- Create
Failed - CREATE_FAILED
- Update
Failed - UPDATE_FAILED
- ACTIVE
- ACTIVE
- CREATING
- CREATING
- UPDATING
- UPDATING
- DELETING
- DELETING
- CREATE_FAILED
- CREATE_FAILED
- UPDATE_FAILED
- UPDATE_FAILED
- "ACTIVE"
- ACTIVE
- "CREATING"
- CREATING
- "UPDATING"
- UPDATING
- "DELETING"
- DELETING
- "CREATE_FAILED"
- CREATE_FAILED
- "UPDATE_FAILED"
- UPDATE_FAILED
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.