Class IntegrationLog


  • public class IntegrationLog
    extends com.pulumi.resources.CustomResource
    This resource allows you to create and manage third party log integrations for a CloudAMQP instance. Once configured, the logs produced will be forward to corresponding integration. Only available for dedicated subscription plans. ## Argument Reference (cloudwatchlog) Cloudwatch argument reference and example. Create an IAM user with programmatic access and the following permissions: * CreateLogGroup * CreateLogStream * DescribeLogGroups * DescribeLogStreams * PutLogEvents ## Integration service reference Valid names for third party log integration. | Name | Description | |------------|---------------------------------------------------------------| | cloudwatchlog | Create a IAM with programmatic access. | | logentries | Create a Logentries token at https://logentries.com/app#/add-log/manual | | loggly | Create a Loggly token at https://your-company}.loggly.com/tokens | | papertrail | Create a Papertrail endpoint https://papertrailapp.com/systems/setup | | splunk | Create a HTTP Event Collector token at `https://<your-splunk>.cloud.splunk.com/en-US/manager/search/http-eventcollector` | | datadog | Create a Datadog API key at app.datadoghq.com | | stackdriver | Create a service account and add 'monitor metrics writer' role from your Google Cloud Account | | scalyr | Create a Log write token at https://app.scalyr.com/keys | ## Integration Type reference Valid arguments for third party log integrations. Required arguments for all integrations: name | Name | Type | Required arguments | | ---- | ---- | ---- | | CloudWatch | cloudwatchlog | access_key_id, secret_access_key, region | | Log Entries | logentries | token | | Loggly | loggly | token | | Papertrail | papertrail | url | | Splunk | splunk | token, host_port, sourcetype | | Data Dog | datadog | region, api_keys, tags | | Stackdriver | stackdriver | credentials | | Scalyr | scalyr | token, host | ***Note:*** Stackdriver (v1.20.2 or earlier versions) required arguments : project_id, private_key, client_email ## Dependency This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`. ## Import `cloudamqp_integration_log`can be imported using the resource identifier together with CloudAMQP instance identifier. The name and identifier are CSV separated, see example below. ```sh $ pulumi import cloudamqp:index/integrationLog:IntegrationLog <resource_name> <id>,<instance_id>` ```
    • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> accessKeyId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> apiKey()  
      com.pulumi.core.Output<java.lang.String> clientEmail()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> credentials()  
      static IntegrationLog get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, IntegrationLogState 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.util.Optional<java.lang.String>> host()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> hostPort()  
      com.pulumi.core.Output<java.lang.Integer> instanceId()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> privateKey()  
      com.pulumi.core.Output<java.lang.String> privateKeyId()  
      com.pulumi.core.Output<java.lang.String> projectId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> region()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> secretAccessKey()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> sourcetype()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> tags()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> token()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> url()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IntegrationLog

        public IntegrationLog​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • IntegrationLog

        public IntegrationLog​(java.lang.String name,
                              IntegrationLogArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • IntegrationLog

        public IntegrationLog​(java.lang.String name,
                              IntegrationLogArgs 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

      • accessKeyId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> accessKeyId()
        Returns:
        AWS access key identifier.
      • apiKey

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> apiKey()
        Returns:
        The API key.
      • clientEmail

        public com.pulumi.core.Output<java.lang.String> clientEmail()
        Returns:
        The client email registered for the integration service.
      • credentials

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> credentials()
        Returns:
        Google Service Account private key credentials.
      • host

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> host()
        Returns:
        The host for Scalyr integration. (app.scalyr.com, app.eu.scalyr.com)
      • hostPort

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> hostPort()
        Returns:
        Destination to send the logs.
      • instanceId

        public com.pulumi.core.Output<java.lang.Integer> instanceId()
        Returns:
        Instance identifier used to make proxy calls
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the third party log integration. See
      • privateKey

        public com.pulumi.core.Output<java.lang.String> privateKey()
        Returns:
        The private access key.
      • privateKeyId

        public com.pulumi.core.Output<java.lang.String> privateKeyId()
        Returns:
        Private key identifier. (Stackdriver)
      • projectId

        public com.pulumi.core.Output<java.lang.String> projectId()
        Returns:
        The project identifier.
      • region

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> region()
        Returns:
        Region hosting the integration service.
      • secretAccessKey

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> secretAccessKey()
        Returns:
        AWS secret access key.
      • sourcetype

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> sourcetype()
        Returns:
        Assign source type to the data exported, eg. generic_single_line. (Splunk) This is the full list of all arguments. Only a subset of arguments are used based on which type of integration used. See Integration Type reference table below for more information.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> tags()
        Returns:
        Tag the integration, e.g. env=prod, region=europe.
      • token

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> token()
        Returns:
        Token used for authentication.
      • url

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> url()
        Returns:
        Endpoint to log integration.
      • get

        public static IntegrationLog get​(java.lang.String name,
                                         com.pulumi.core.Output<java.lang.String> id,
                                         @Nullable
                                         IntegrationLogState 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.