1. Packages
  2. AWS
  3. API Docs
  4. devopsguru
  5. EventSourcesConfig
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.devopsguru.EventSourcesConfig

Explore with Pulumi AI

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.devopsguru.EventSourcesConfig("example", {eventSources: [{
    amazonCodeGuruProfilers: [{
        status: "ENABLED",
    }],
}]});
Copy
import pulumi
import pulumi_aws as aws

example = aws.devopsguru.EventSourcesConfig("example", event_sources=[{
    "amazon_code_guru_profilers": [{
        "status": "ENABLED",
    }],
}])
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/devopsguru"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devopsguru.NewEventSourcesConfig(ctx, "example", &devopsguru.EventSourcesConfigArgs{
			EventSources: devopsguru.EventSourcesConfigEventSourceArray{
				&devopsguru.EventSourcesConfigEventSourceArgs{
					AmazonCodeGuruProfilers: devopsguru.EventSourcesConfigEventSourceAmazonCodeGuruProfilerArray{
						&devopsguru.EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs{
							Status: pulumi.String("ENABLED"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.DevOpsGuru.EventSourcesConfig("example", new()
    {
        EventSources = new[]
        {
            new Aws.DevOpsGuru.Inputs.EventSourcesConfigEventSourceArgs
            {
                AmazonCodeGuruProfilers = new[]
                {
                    new Aws.DevOpsGuru.Inputs.EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs
                    {
                        Status = "ENABLED",
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.devopsguru.EventSourcesConfig;
import com.pulumi.aws.devopsguru.EventSourcesConfigArgs;
import com.pulumi.aws.devopsguru.inputs.EventSourcesConfigEventSourceArgs;
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) {
        var example = new EventSourcesConfig("example", EventSourcesConfigArgs.builder()
            .eventSources(EventSourcesConfigEventSourceArgs.builder()
                .amazonCodeGuruProfilers(EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs.builder()
                    .status("ENABLED")
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:devopsguru:EventSourcesConfig
    properties:
      eventSources:
        - amazonCodeGuruProfilers:
            - status: ENABLED
Copy

Create EventSourcesConfig Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new EventSourcesConfig(name: string, args?: EventSourcesConfigArgs, opts?: CustomResourceOptions);
@overload
def EventSourcesConfig(resource_name: str,
                       args: Optional[EventSourcesConfigArgs] = None,
                       opts: Optional[ResourceOptions] = None)

@overload
def EventSourcesConfig(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       event_sources: Optional[Sequence[EventSourcesConfigEventSourceArgs]] = None)
func NewEventSourcesConfig(ctx *Context, name string, args *EventSourcesConfigArgs, opts ...ResourceOption) (*EventSourcesConfig, error)
public EventSourcesConfig(string name, EventSourcesConfigArgs? args = null, CustomResourceOptions? opts = null)
public EventSourcesConfig(String name, EventSourcesConfigArgs args)
public EventSourcesConfig(String name, EventSourcesConfigArgs args, CustomResourceOptions options)
type: aws:devopsguru:EventSourcesConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args EventSourcesConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args EventSourcesConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args EventSourcesConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args EventSourcesConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EventSourcesConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var eventSourcesConfigResource = new Aws.DevOpsGuru.EventSourcesConfig("eventSourcesConfigResource", new()
{
    EventSources = new[]
    {
        new Aws.DevOpsGuru.Inputs.EventSourcesConfigEventSourceArgs
        {
            AmazonCodeGuruProfilers = new[]
            {
                new Aws.DevOpsGuru.Inputs.EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs
                {
                    Status = "string",
                },
            },
        },
    },
});
Copy
example, err := devopsguru.NewEventSourcesConfig(ctx, "eventSourcesConfigResource", &devopsguru.EventSourcesConfigArgs{
	EventSources: devopsguru.EventSourcesConfigEventSourceArray{
		&devopsguru.EventSourcesConfigEventSourceArgs{
			AmazonCodeGuruProfilers: devopsguru.EventSourcesConfigEventSourceAmazonCodeGuruProfilerArray{
				&devopsguru.EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs{
					Status: pulumi.String("string"),
				},
			},
		},
	},
})
Copy
var eventSourcesConfigResource = new EventSourcesConfig("eventSourcesConfigResource", EventSourcesConfigArgs.builder()
    .eventSources(EventSourcesConfigEventSourceArgs.builder()
        .amazonCodeGuruProfilers(EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs.builder()
            .status("string")
            .build())
        .build())
    .build());
Copy
event_sources_config_resource = aws.devopsguru.EventSourcesConfig("eventSourcesConfigResource", event_sources=[{
    "amazon_code_guru_profilers": [{
        "status": "string",
    }],
}])
Copy
const eventSourcesConfigResource = new aws.devopsguru.EventSourcesConfig("eventSourcesConfigResource", {eventSources: [{
    amazonCodeGuruProfilers: [{
        status: "string",
    }],
}]});
Copy
type: aws:devopsguru:EventSourcesConfig
properties:
    eventSources:
        - amazonCodeGuruProfilers:
            - status: string
Copy

EventSourcesConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The EventSourcesConfig resource accepts the following input properties:

EventSources List<EventSourcesConfigEventSource>
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
EventSources []EventSourcesConfigEventSourceArgs
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
eventSources List<EventSourcesConfigEventSource>
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
eventSources EventSourcesConfigEventSource[]
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
event_sources Sequence[EventSourcesConfigEventSourceArgs]
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
eventSources List<Property Map>
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.

Outputs

All input properties are implicitly available as output properties. Additionally, the EventSourcesConfig resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing EventSourcesConfig Resource

Get an existing EventSourcesConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: EventSourcesConfigState, opts?: CustomResourceOptions): EventSourcesConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        event_sources: Optional[Sequence[EventSourcesConfigEventSourceArgs]] = None) -> EventSourcesConfig
func GetEventSourcesConfig(ctx *Context, name string, id IDInput, state *EventSourcesConfigState, opts ...ResourceOption) (*EventSourcesConfig, error)
public static EventSourcesConfig Get(string name, Input<string> id, EventSourcesConfigState? state, CustomResourceOptions? opts = null)
public static EventSourcesConfig get(String name, Output<String> id, EventSourcesConfigState state, CustomResourceOptions options)
resources:  _:    type: aws:devopsguru:EventSourcesConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
EventSources List<EventSourcesConfigEventSource>
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
EventSources []EventSourcesConfigEventSourceArgs
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
eventSources List<EventSourcesConfigEventSource>
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
eventSources EventSourcesConfigEventSource[]
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
event_sources Sequence[EventSourcesConfigEventSourceArgs]
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.
eventSources List<Property Map>
Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See event_sources below.

Supporting Types

EventSourcesConfigEventSource
, EventSourcesConfigEventSourceArgs

AmazonCodeGuruProfilers List<EventSourcesConfigEventSourceAmazonCodeGuruProfiler>
Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See amazon_code_guru_profiler below.
AmazonCodeGuruProfilers []EventSourcesConfigEventSourceAmazonCodeGuruProfiler
Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See amazon_code_guru_profiler below.
amazonCodeGuruProfilers List<EventSourcesConfigEventSourceAmazonCodeGuruProfiler>
Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See amazon_code_guru_profiler below.
amazonCodeGuruProfilers EventSourcesConfigEventSourceAmazonCodeGuruProfiler[]
Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See amazon_code_guru_profiler below.
amazon_code_guru_profilers Sequence[EventSourcesConfigEventSourceAmazonCodeGuruProfiler]
Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See amazon_code_guru_profiler below.
amazonCodeGuruProfilers List<Property Map>
Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See amazon_code_guru_profiler below.

EventSourcesConfigEventSourceAmazonCodeGuruProfiler
, EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs

Status This property is required. string
Status of the CodeGuru Profiler integration. Valid values are ENABLED and DISABLED.
Status This property is required. string
Status of the CodeGuru Profiler integration. Valid values are ENABLED and DISABLED.
status This property is required. String
Status of the CodeGuru Profiler integration. Valid values are ENABLED and DISABLED.
status This property is required. string
Status of the CodeGuru Profiler integration. Valid values are ENABLED and DISABLED.
status This property is required. str
Status of the CodeGuru Profiler integration. Valid values are ENABLED and DISABLED.
status This property is required. String
Status of the CodeGuru Profiler integration. Valid values are ENABLED and DISABLED.

Import

Using pulumi import, import DevOps Guru Event Sources Config using the id. For example:

$ pulumi import aws:devopsguru/eventSourcesConfig:EventSourcesConfig example us-east-1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.