Try AWS Native preview for resources not in the classic version.
aws.devopsguru.EventSourcesConfig
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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",
}],
}]});
import pulumi
import pulumi_aws as aws
example = aws.devopsguru.EventSourcesConfig("example", event_sources=[{
"amazonCodeGuruProfilers": [{
"status": "ENABLED",
}],
}])
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
})
}
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",
},
},
},
},
});
});
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());
}
}
resources:
example:
type: aws:devopsguru:EventSourcesConfig
properties:
eventSources:
- amazonCodeGuruProfilers:
- status: ENABLED
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
},
},
},
},
});
example, err := devopsguru.NewEventSourcesConfig(ctx, "eventSourcesConfigResource", &devopsguru.EventSourcesConfigArgs{
EventSources: devopsguru.EventSourcesConfigEventSourceArray{
&devopsguru.EventSourcesConfigEventSourceArgs{
AmazonCodeGuruProfilers: devopsguru.EventSourcesConfigEventSourceAmazonCodeGuruProfilerArray{
&devopsguru.EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs{
Status: pulumi.String("string"),
},
},
},
},
})
var eventSourcesConfigResource = new EventSourcesConfig("eventSourcesConfigResource", EventSourcesConfigArgs.builder()
.eventSources(EventSourcesConfigEventSourceArgs.builder()
.amazonCodeGuruProfilers(EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs.builder()
.status("string")
.build())
.build())
.build());
event_sources_config_resource = aws.devopsguru.EventSourcesConfig("eventSourcesConfigResource", event_sources=[{
"amazonCodeGuruProfilers": [{
"status": "string",
}],
}])
const eventSourcesConfigResource = new aws.devopsguru.EventSourcesConfig("eventSourcesConfigResource", {eventSources: [{
amazonCodeGuruProfilers: [{
status: "string",
}],
}]});
type: aws:devopsguru:EventSourcesConfig
properties:
eventSources:
- amazonCodeGuruProfilers:
- status: string
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
The EventSourcesConfig resource accepts the following input properties:
- Event
Sources List<EventSources Config Event Source> - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- Event
Sources []EventSources Config Event Source Args - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- event
Sources List<EventSources Config Event Source> - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- event
Sources EventSources Config Event Source[] - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- event_
sources Sequence[EventSources Config Event Source Args] - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- event
Sources 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Event
Sources List<EventSources Config Event Source> - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- Event
Sources []EventSources Config Event Source Args - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- event
Sources List<EventSources Config Event Source> - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- event
Sources EventSources Config Event Source[] - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- event_
sources Sequence[EventSources Config Event Source Args] - Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See
event_sources
below.
- event
Sources 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
- Amazon
Code List<EventGuru Profilers Sources Config Event Source Amazon Code Guru Profiler> - Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See
amazon_code_guru_profiler
below.
- Amazon
Code []EventGuru Profilers Sources Config Event Source Amazon Code Guru Profiler - Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See
amazon_code_guru_profiler
below.
- amazon
Code List<EventGuru Profilers Sources Config Event Source Amazon Code Guru Profiler> - Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See
amazon_code_guru_profiler
below.
- amazon
Code EventGuru Profilers Sources Config Event Source Amazon Code Guru Profiler[] - Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See
amazon_code_guru_profiler
below.
- amazon_
code_ Sequence[Eventguru_ profilers Sources Config Event Source Amazon Code Guru Profiler] - Stores whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler. See
amazon_code_guru_profiler
below.
- amazon
Code List<Property Map>Guru Profilers - 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 string
- Status of the CodeGuru Profiler integration. Valid values are
ENABLED
andDISABLED
.
- Status string
- Status of the CodeGuru Profiler integration. Valid values are
ENABLED
andDISABLED
.
- status String
- Status of the CodeGuru Profiler integration. Valid values are
ENABLED
andDISABLED
.
- status string
- Status of the CodeGuru Profiler integration. Valid values are
ENABLED
andDISABLED
.
- status str
- Status of the CodeGuru Profiler integration. Valid values are
ENABLED
andDISABLED
.
- status String
- Status of the CodeGuru Profiler integration. Valid values are
ENABLED
andDISABLED
.
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
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.
Try AWS Native preview for resources not in the classic version.