get Event Source
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
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatch.CloudwatchFunctions;
import com.pulumi.aws.cloudwatch.inputs.GetEventSourceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var examplepartner = CloudwatchFunctions.getEventSource(GetEventSourceArgs.builder()
.namePrefix("aws.partner/examplepartner.com")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getEventSource.
Parameters
argument
A collection of arguments for invoking getEventSource.
Return
A collection of values returned by getEventSource.
Parameters
name Prefix
Specifying this limits the results to only those partner event sources with names that start with the specified prefix
See also
suspend fun getEventSource(argument: suspend GetEventSourcePlainArgsBuilder.() -> Unit): GetEventSourceResult
Return
A collection of values returned by getEventSource.
Parameters
argument
Builder for com.pulumi.aws.cloudwatch.kotlin.inputs.GetEventSourcePlainArgs.