1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. getLogShipper
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.threatdetection.getLogShipper

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Using this data source can open Threat Detection Log Shipper automatically. If the service has been enabled, it will return Opened.

    For information about Threat Detection Log Shipper and how to use it, see What is Log Shipper.

    NOTE: Available in v1.195.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const open = alicloud.threatdetection.getLogShipper({
        enable: "On",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    open = alicloud.threatdetection.get_log_shipper(enable="On")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := threatdetection.GetLogShipper(ctx, &threatdetection.GetLogShipperArgs{
    			Enable: pulumi.StringRef("On"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var open = AliCloud.ThreatDetection.GetLogShipper.Invoke(new()
        {
            Enable = "On",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
    import com.pulumi.alicloud.threatdetection.inputs.GetLogShipperArgs;
    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) {
            final var open = ThreatdetectionFunctions.getLogShipper(GetLogShipperArgs.builder()
                .enable("On")
                .build());
    
        }
    }
    
    variables:
      open:
        fn::invoke:
          Function: alicloud:threatdetection:getLogShipper
          Arguments:
            enable: On
    

    Using getLogShipper

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLogShipper(args: GetLogShipperArgs, opts?: InvokeOptions): Promise<GetLogShipperResult>
    function getLogShipperOutput(args: GetLogShipperOutputArgs, opts?: InvokeOptions): Output<GetLogShipperResult>
    def get_log_shipper(enable: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetLogShipperResult
    def get_log_shipper_output(enable: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetLogShipperResult]
    func GetLogShipper(ctx *Context, args *GetLogShipperArgs, opts ...InvokeOption) (*GetLogShipperResult, error)
    func GetLogShipperOutput(ctx *Context, args *GetLogShipperOutputArgs, opts ...InvokeOption) GetLogShipperResultOutput

    > Note: This function is named GetLogShipper in the Go SDK.

    public static class GetLogShipper 
    {
        public static Task<GetLogShipperResult> InvokeAsync(GetLogShipperArgs args, InvokeOptions? opts = null)
        public static Output<GetLogShipperResult> Invoke(GetLogShipperInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogShipperResult> getLogShipper(GetLogShipperArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:threatdetection/getLogShipper:getLogShipper
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Enable string

    Setting the value to On to enable the service. Valid values: On or Off. Default to Off.

    NOTE: Setting enable = "On" to open the Threat Detection Log Shipper that means you have read and agreed the Threat Detection Log Shipper Terms of Service. The service can not closed once it is opened.

    Enable string

    Setting the value to On to enable the service. Valid values: On or Off. Default to Off.

    NOTE: Setting enable = "On" to open the Threat Detection Log Shipper that means you have read and agreed the Threat Detection Log Shipper Terms of Service. The service can not closed once it is opened.

    enable String

    Setting the value to On to enable the service. Valid values: On or Off. Default to Off.

    NOTE: Setting enable = "On" to open the Threat Detection Log Shipper that means you have read and agreed the Threat Detection Log Shipper Terms of Service. The service can not closed once it is opened.

    enable string

    Setting the value to On to enable the service. Valid values: On or Off. Default to Off.

    NOTE: Setting enable = "On" to open the Threat Detection Log Shipper that means you have read and agreed the Threat Detection Log Shipper Terms of Service. The service can not closed once it is opened.

    enable str

    Setting the value to On to enable the service. Valid values: On or Off. Default to Off.

    NOTE: Setting enable = "On" to open the Threat Detection Log Shipper that means you have read and agreed the Threat Detection Log Shipper Terms of Service. The service can not closed once it is opened.

    enable String

    Setting the value to On to enable the service. Valid values: On or Off. Default to Off.

    NOTE: Setting enable = "On" to open the Threat Detection Log Shipper that means you have read and agreed the Threat Detection Log Shipper Terms of Service. The service can not closed once it is opened.

    getLogShipper Result

    The following output properties are available:

    AuthStatus string
    Log Analysis Service authorization status.
    BuyStatus string
    Cloud Security Center purchase status.
    Id string
    The provider-assigned unique ID for this managed resource.
    OpenStatus string
    Log analysis shipping activation status.
    SlsProjectStatus string
    Log analysis project status.
    SlsServiceStatus string
    Log Analysis Service is activated.
    Status string
    The current service enable status.
    Enable string
    AuthStatus string
    Log Analysis Service authorization status.
    BuyStatus string
    Cloud Security Center purchase status.
    Id string
    The provider-assigned unique ID for this managed resource.
    OpenStatus string
    Log analysis shipping activation status.
    SlsProjectStatus string
    Log analysis project status.
    SlsServiceStatus string
    Log Analysis Service is activated.
    Status string
    The current service enable status.
    Enable string
    authStatus String
    Log Analysis Service authorization status.
    buyStatus String
    Cloud Security Center purchase status.
    id String
    The provider-assigned unique ID for this managed resource.
    openStatus String
    Log analysis shipping activation status.
    slsProjectStatus String
    Log analysis project status.
    slsServiceStatus String
    Log Analysis Service is activated.
    status String
    The current service enable status.
    enable String
    authStatus string
    Log Analysis Service authorization status.
    buyStatus string
    Cloud Security Center purchase status.
    id string
    The provider-assigned unique ID for this managed resource.
    openStatus string
    Log analysis shipping activation status.
    slsProjectStatus string
    Log analysis project status.
    slsServiceStatus string
    Log Analysis Service is activated.
    status string
    The current service enable status.
    enable string
    auth_status str
    Log Analysis Service authorization status.
    buy_status str
    Cloud Security Center purchase status.
    id str
    The provider-assigned unique ID for this managed resource.
    open_status str
    Log analysis shipping activation status.
    sls_project_status str
    Log analysis project status.
    sls_service_status str
    Log Analysis Service is activated.
    status str
    The current service enable status.
    enable str
    authStatus String
    Log Analysis Service authorization status.
    buyStatus String
    Cloud Security Center purchase status.
    id String
    The provider-assigned unique ID for this managed resource.
    openStatus String
    Log analysis shipping activation status.
    slsProjectStatus String
    Log analysis project status.
    slsServiceStatus String
    Log Analysis Service is activated.
    status String
    The current service enable status.
    enable String

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi