Class ServiceIntegration


  • public class ServiceIntegration
    extends com.pulumi.resources.CustomResource
    Resource 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
     
     package 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());
     
         }
     }
     
     
    ### Customer Managed KMS Key
     
     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());
     
         }
     }
     
     
    ## 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 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • 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.