Class EventStream
Provides a Pinpoint Event Stream resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var app = new Aws.Pinpoint.App("app", new Aws.Pinpoint.AppArgs
{
});
var testStream = new Aws.Kinesis.Stream("testStream", new Aws.Kinesis.StreamArgs
{
ShardCount = 1,
});
var testRole = new Aws.Iam.Role("testRole", new Aws.Iam.RoleArgs
{
AssumeRolePolicy = @"{
""Version"": ""2012-10-17"",
""Statement"": [
{
""Action"": ""sts:AssumeRole"",
""Principal"": {
""Service"": ""pinpoint.us-east-1.amazonaws.com""
},
""Effect"": ""Allow"",
""Sid"": """"
}
]
}
",
});
var stream = new Aws.Pinpoint.EventStream("stream", new Aws.Pinpoint.EventStreamArgs
{
ApplicationId = app.ApplicationId,
DestinationStreamArn = testStream.Arn,
RoleArn = testRole.Arn,
});
var testRolePolicy = new Aws.Iam.RolePolicy("testRolePolicy", new Aws.Iam.RolePolicyArgs
{
Policy = @"{
""Version"": ""2012-10-17"",
""Statement"": {
""Action"": [
""kinesis:PutRecords"",
""kinesis:DescribeStream""
],
""Effect"": ""Allow"",
""Resource"": [
""arn:aws:kinesis:us-east-1:*:*/*""
]
}
}
",
Role = testRole.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Pinpoint
Assembly: Pulumi.Aws.dll
Syntax
public class EventStream : CustomResource
Constructors
View SourceEventStream(String, EventStreamArgs, CustomResourceOptions)
Create a EventStream resource with the given unique name, arguments, and options.
Declaration
public EventStream(string name, EventStreamArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| EventStreamArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceApplicationId
The application ID.
Declaration
public Output<string> ApplicationId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DestinationStreamArn
The Amazon Resource Name (ARN) of the Amazon Kinesis stream or Firehose delivery stream to which you want to publish events.
Declaration
public Output<string> DestinationStreamArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RoleArn
The IAM role that authorizes Amazon Pinpoint to publish events to the stream in your account.
Declaration
public Output<string> RoleArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, EventStreamState, CustomResourceOptions)
Get an existing EventStream resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static EventStream Get(string name, Input<string> id, EventStreamState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| EventStreamState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| EventStream |