Package com.pulumi.aws.devopsguru
Class ServiceIntegration
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.devopsguru.ServiceIntegration
-
public class ServiceIntegration extends com.pulumi.resources.CustomResourceResource for managing an AWS DevOps Guru Service Integration. > To prevent unintentional deletion of account wide settings, destruction of this resource will only remove it from the Terraform state. To disable any configured settings, explicitly set the opt-in value to `DISABLED` and apply again before destroying. ## Example Usage ### Basic Usage
### Customer Managed KMS Keypackage generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.devopsguru.ServiceIntegration; import com.pulumi.aws.devopsguru.ServiceIntegrationArgs; import com.pulumi.aws.devopsguru.inputs.ServiceIntegrationKmsServerSideEncryptionArgs; import com.pulumi.aws.devopsguru.inputs.ServiceIntegrationLogsAnomalyDetectionArgs; import com.pulumi.aws.devopsguru.inputs.ServiceIntegrationOpsCenterArgs; 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 ServiceIntegration("example", ServiceIntegrationArgs.builder() .kmsServerSideEncryption(ServiceIntegrationKmsServerSideEncryptionArgs.builder() .optInStatus("ENABLED") .type("AWS_OWNED_KMS_KEY") .build()) .logsAnomalyDetection(ServiceIntegrationLogsAnomalyDetectionArgs.builder() .optInStatus("ENABLED") .build()) .opsCenter(ServiceIntegrationOpsCenterArgs.builder() .optInStatus("ENABLED") .build()) .build()); } }
## 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 Service Integration using the region. For example: ```sh $ pulumi import aws:devopsguru/serviceIntegration:ServiceIntegration example us-east-1 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.kms.Key; import com.pulumi.aws.devopsguru.ServiceIntegration; import com.pulumi.aws.devopsguru.ServiceIntegrationArgs; import com.pulumi.aws.devopsguru.inputs.ServiceIntegrationKmsServerSideEncryptionArgs; import com.pulumi.aws.devopsguru.inputs.ServiceIntegrationLogsAnomalyDetectionArgs; import com.pulumi.aws.devopsguru.inputs.ServiceIntegrationOpsCenterArgs; 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 Key("example"); var exampleServiceIntegration = new ServiceIntegration("exampleServiceIntegration", ServiceIntegrationArgs.builder() .kmsServerSideEncryption(ServiceIntegrationKmsServerSideEncryptionArgs.builder() .kmsKeyId(test.arn()) .optInStatus("ENABLED") .type("CUSTOMER_MANAGED_KEY") .build()) .logsAnomalyDetection(ServiceIntegrationLogsAnomalyDetectionArgs.builder() .optInStatus("DISABLED") .build()) .opsCenter(ServiceIntegrationOpsCenterArgs.builder() .optInStatus("DISABLED") .build()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ServiceIntegration(java.lang.String name)ServiceIntegration(java.lang.String name, ServiceIntegrationArgs args)ServiceIntegration(java.lang.String name, ServiceIntegrationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceIntegrationget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ServiceIntegrationState 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<ServiceIntegrationKmsServerSideEncryption>kmsServerSideEncryption()com.pulumi.core.Output<ServiceIntegrationLogsAnomalyDetection>logsAnomalyDetection()com.pulumi.core.Output<ServiceIntegrationOpsCenter>opsCenter()com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
ServiceIntegration
public ServiceIntegration(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ServiceIntegration
public ServiceIntegration(java.lang.String name, ServiceIntegrationArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ServiceIntegration
public ServiceIntegration(java.lang.String name, ServiceIntegrationArgs 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
-
kmsServerSideEncryption
public com.pulumi.core.Output<ServiceIntegrationKmsServerSideEncryption> kmsServerSideEncryption()
- Returns:
- Information about whether DevOps Guru is configured to encrypt server-side data using KMS. See `kmsServerSideEncryption` below.
-
logsAnomalyDetection
public com.pulumi.core.Output<ServiceIntegrationLogsAnomalyDetection> logsAnomalyDetection()
- Returns:
- Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log groups. See `logsAnomalyDetection` below.
-
opsCenter
public com.pulumi.core.Output<ServiceIntegrationOpsCenter> opsCenter()
- Returns:
- Information about whether DevOps Guru is configured to create an OpsItem in AWS Systems Manager OpsCenter for each created insight. See `opsCenter` 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 ServiceIntegration get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ServiceIntegrationState 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.
-
-