Package com.pulumi.aws.devopsguru
Class EventSourcesConfig
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.devopsguru.EventSourcesConfig
-
public class EventSourcesConfig extends com.pulumi.resources.CustomResourceResource for managing an AWS DevOps Guru Event Sources Config. Currently the only service that can be integrated with DevOps Guru is Amazon CodeGuru Profiler, which can produce proactive recommendations which can be stored and viewed in DevOps Guru. > Destruction of this resource will set the CodeGuru profiler status to `DISABLED`. If you wish to preserve an `ENABLED` configuration while removing the Terraform resource, utilize a `removed` block (available in Terraform 1.7+). > Event sources are configured at the account level. To avoid persistent differences, this resource should be defined only once. ## Example Usage ### Basic Usage
## Import ### Identity Schema #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import DevOps Guru Event Sources Config using the region. For example: ```sh $ pulumi import aws:devopsguru/eventSourcesConfig:EventSourcesConfig example us-east-1 ```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 com.pulumi.aws.devopsguru.inputs.EventSourcesConfigEventSourceAmazonCodeGuruProfilerArgs; import java.util.ArrayList; import java.util.Arrays; 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()); } }
-
-
Constructor Summary
Constructors Constructor Description EventSourcesConfig(java.lang.String name)EventSourcesConfig(java.lang.String name, EventSourcesConfigArgs args)EventSourcesConfig(java.lang.String name, EventSourcesConfigArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.List<EventSourcesConfigEventSource>>eventSources()static EventSourcesConfigget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, EventSourcesConfigState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
EventSourcesConfig
public EventSourcesConfig(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
EventSourcesConfig
public EventSourcesConfig(java.lang.String name, EventSourcesConfigArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
EventSourcesConfig
public EventSourcesConfig(java.lang.String name, EventSourcesConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
eventSources
public com.pulumi.core.Output<java.util.List<EventSourcesConfigEventSource>> eventSources()
- Returns:
- Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. See `eventSources` below.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
get
public static EventSourcesConfig get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable EventSourcesConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-