AWS Classic
getEventSource
Use this data source to get information about an EventBridge Partner Event Source. This data source will only return one partner event source. An error will be returned if multiple sources match the same name prefix.
Note: EventBridge was formerly known as CloudWatch Events. The functionality is identical.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var examplepartner = Output.Create(Aws.CloudWatch.GetEventSource.InvokeAsync(new Aws.CloudWatch.GetEventSourceArgs
{
NamePrefix = "aws.partner/examplepartner.com",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/cloudwatch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudwatch.GetEventSource(ctx, &cloudwatch.GetEventSourceArgs{
NamePrefix: pulumi.StringRef("aws.partner/examplepartner.com"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var examplepartner = Output.of(CloudwatchFunctions.getEventSource(GetEventSourceArgs.builder()
.namePrefix("aws.partner/examplepartner.com")
.build()));
}
}
import pulumi
import pulumi_aws as aws
examplepartner = aws.cloudwatch.get_event_source(name_prefix="aws.partner/examplepartner.com")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const examplepartner = pulumi.output(aws.cloudwatch.getEventSource({
namePrefix: "aws.partner/examplepartner.com",
}));
variables:
examplepartner:
Fn::Invoke:
Function: aws:cloudwatch:getEventSource
Arguments:
namePrefix: aws.partner/examplepartner.com
Using getEventSource
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEventSource(args: GetEventSourceArgs, opts?: InvokeOptions): Promise<GetEventSourceResult>
function getEventSourceOutput(args: GetEventSourceOutputArgs, opts?: InvokeOptions): Output<GetEventSourceResult>
def get_event_source(name_prefix: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEventSourceResult
def get_event_source_output(name_prefix: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEventSourceResult]
func GetEventSource(ctx *Context, args *GetEventSourceArgs, opts ...InvokeOption) (*GetEventSourceResult, error)
func GetEventSourceOutput(ctx *Context, args *GetEventSourceOutputArgs, opts ...InvokeOption) GetEventSourceResultOutput
> Note: This function is named GetEventSource
in the Go SDK.
public static class GetEventSource
{
public static Task<GetEventSourceResult> InvokeAsync(GetEventSourceArgs args, InvokeOptions? opts = null)
public static Output<GetEventSourceResult> Invoke(GetEventSourceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEventSourceResult> getEventSource(GetEventSourceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: aws:cloudwatch/getEventSource:getEventSource
Arguments:
# Arguments dictionary
The following arguments are supported:
- Name
Prefix string Specifying this limits the results to only those partner event sources with names that start with the specified prefix
- Name
Prefix string Specifying this limits the results to only those partner event sources with names that start with the specified prefix
- name
Prefix String Specifying this limits the results to only those partner event sources with names that start with the specified prefix
- name
Prefix string Specifying this limits the results to only those partner event sources with names that start with the specified prefix
- name_
prefix str Specifying this limits the results to only those partner event sources with names that start with the specified prefix
- name
Prefix String Specifying this limits the results to only those partner event sources with names that start with the specified prefix
getEventSource Result
The following output properties are available:
- Arn string
The ARN of the partner event source
- Created
By string The name of the SaaS partner that created the event source
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The name of the event source
- State string
The state of the event source (
ACTIVE
orPENDING
)- Name
Prefix string
- Arn string
The ARN of the partner event source
- Created
By string The name of the SaaS partner that created the event source
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The name of the event source
- State string
The state of the event source (
ACTIVE
orPENDING
)- Name
Prefix string
- arn String
The ARN of the partner event source
- created
By String The name of the SaaS partner that created the event source
- id String
The provider-assigned unique ID for this managed resource.
- name String
The name of the event source
- state String
The state of the event source (
ACTIVE
orPENDING
)- name
Prefix String
- arn string
The ARN of the partner event source
- created
By string The name of the SaaS partner that created the event source
- id string
The provider-assigned unique ID for this managed resource.
- name string
The name of the event source
- state string
The state of the event source (
ACTIVE
orPENDING
)- name
Prefix string
- arn str
The ARN of the partner event source
- created_
by str The name of the SaaS partner that created the event source
- id str
The provider-assigned unique ID for this managed resource.
- name str
The name of the event source
- state str
The state of the event source (
ACTIVE
orPENDING
)- name_
prefix str
- arn String
The ARN of the partner event source
- created
By String The name of the SaaS partner that created the event source
- id String
The provider-assigned unique ID for this managed resource.
- name String
The name of the event source
- state String
The state of the event source (
ACTIVE
orPENDING
)- name
Prefix String
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.