alicloud.threatdetection.getLogShipper
Explore with Pulumi AI
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
orOff
. Default toOff
.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
orOff
. Default toOff
.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
orOff
. Default toOff
.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
orOff
. Default toOff
.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
orOff
. Default toOff
.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
orOff
. Default toOff
.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:
- Auth
Status string - Log Analysis Service authorization status.
- Buy
Status string - Cloud Security Center purchase status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Open
Status string - Log analysis shipping activation status.
- Sls
Project stringStatus - Log analysis project status.
- Sls
Service stringStatus - Log Analysis Service is activated.
- Status string
- The current service enable status.
- Enable string
- Auth
Status string - Log Analysis Service authorization status.
- Buy
Status string - Cloud Security Center purchase status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Open
Status string - Log analysis shipping activation status.
- Sls
Project stringStatus - Log analysis project status.
- Sls
Service stringStatus - Log Analysis Service is activated.
- Status string
- The current service enable status.
- Enable string
- auth
Status String - Log Analysis Service authorization status.
- buy
Status String - Cloud Security Center purchase status.
- id String
- The provider-assigned unique ID for this managed resource.
- open
Status String - Log analysis shipping activation status.
- sls
Project StringStatus - Log analysis project status.
- sls
Service StringStatus - Log Analysis Service is activated.
- status String
- The current service enable status.
- enable String
- auth
Status string - Log Analysis Service authorization status.
- buy
Status string - Cloud Security Center purchase status.
- id string
- The provider-assigned unique ID for this managed resource.
- open
Status string - Log analysis shipping activation status.
- sls
Project stringStatus - Log analysis project status.
- sls
Service stringStatus - 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_ strstatus - Log analysis project status.
- sls_
service_ strstatus - Log Analysis Service is activated.
- status str
- The current service enable status.
- enable str
- auth
Status String - Log Analysis Service authorization status.
- buy
Status String - Cloud Security Center purchase status.
- id String
- The provider-assigned unique ID for this managed resource.
- open
Status String - Log analysis shipping activation status.
- sls
Project StringStatus - Log analysis project status.
- sls
Service StringStatus - 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.