1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. SasTrail
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

alicloud.threatdetection.SasTrail

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

    Provides a Threat Detection Sas Trail resource.

    For information about Threat Detection Sas Trail and how to use it, see What is Sas Trail.

    NOTE: Available since v1.212.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.threatdetection.SasTrail("default", {});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.threatdetection.SasTrail("default")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := threatdetection.NewSasTrail(ctx, "default", 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 config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.ThreatDetection.SasTrail("default");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.threatdetection.SasTrail;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new SasTrail("default");
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:threatdetection:SasTrail
    

    Create SasTrail Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SasTrail(name: string, args?: SasTrailArgs, opts?: CustomResourceOptions);
    @overload
    def SasTrail(resource_name: str,
                 args: Optional[SasTrailArgs] = None,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SasTrail(resource_name: str,
                 opts: Optional[ResourceOptions] = None)
    func NewSasTrail(ctx *Context, name string, args *SasTrailArgs, opts ...ResourceOption) (*SasTrail, error)
    public SasTrail(string name, SasTrailArgs? args = null, CustomResourceOptions? opts = null)
    public SasTrail(String name, SasTrailArgs args)
    public SasTrail(String name, SasTrailArgs args, CustomResourceOptions options)
    
    type: alicloud:threatdetection:SasTrail
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SasTrailArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SasTrailArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SasTrailArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SasTrailArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SasTrailArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var sasTrailResource = new AliCloud.ThreatDetection.SasTrail("sasTrailResource");
    
    example, err := threatdetection.NewSasTrail(ctx, "sasTrailResource", nil)
    
    var sasTrailResource = new SasTrail("sasTrailResource");
    
    sas_trail_resource = alicloud.threatdetection.SasTrail("sasTrailResource")
    
    const sasTrailResource = new alicloud.threatdetection.SasTrail("sasTrailResource", {});
    
    type: alicloud:threatdetection:SasTrail
    properties: {}
    

    SasTrail Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SasTrail resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SasTrail resource produces the following output properties:

    CreateTime int
    The service trace creation timestamp, in milliseconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceTrail Pulumi.AliCloud.ThreatDetection.Outputs.SasTrailServiceTrail
    Service trace configuration information.
    CreateTime int
    The service trace creation timestamp, in milliseconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceTrail SasTrailServiceTrail
    Service trace configuration information.
    createTime Integer
    The service trace creation timestamp, in milliseconds.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceTrail SasTrailServiceTrail
    Service trace configuration information.
    createTime number
    The service trace creation timestamp, in milliseconds.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceTrail SasTrailServiceTrail
    Service trace configuration information.
    create_time int
    The service trace creation timestamp, in milliseconds.
    id str
    The provider-assigned unique ID for this managed resource.
    service_trail SasTrailServiceTrail
    Service trace configuration information.
    createTime Number
    The service trace creation timestamp, in milliseconds.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceTrail Property Map
    Service trace configuration information.

    Look up Existing SasTrail Resource

    Get an existing SasTrail resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SasTrailState, opts?: CustomResourceOptions): SasTrail
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[int] = None,
            service_trail: Optional[SasTrailServiceTrailArgs] = None) -> SasTrail
    func GetSasTrail(ctx *Context, name string, id IDInput, state *SasTrailState, opts ...ResourceOption) (*SasTrail, error)
    public static SasTrail Get(string name, Input<string> id, SasTrailState? state, CustomResourceOptions? opts = null)
    public static SasTrail get(String name, Output<String> id, SasTrailState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreateTime int
    The service trace creation timestamp, in milliseconds.
    ServiceTrail Pulumi.AliCloud.ThreatDetection.Inputs.SasTrailServiceTrail
    Service trace configuration information.
    CreateTime int
    The service trace creation timestamp, in milliseconds.
    ServiceTrail SasTrailServiceTrailArgs
    Service trace configuration information.
    createTime Integer
    The service trace creation timestamp, in milliseconds.
    serviceTrail SasTrailServiceTrail
    Service trace configuration information.
    createTime number
    The service trace creation timestamp, in milliseconds.
    serviceTrail SasTrailServiceTrail
    Service trace configuration information.
    create_time int
    The service trace creation timestamp, in milliseconds.
    service_trail SasTrailServiceTrailArgs
    Service trace configuration information.
    createTime Number
    The service trace creation timestamp, in milliseconds.
    serviceTrail Property Map
    Service trace configuration information.

    Supporting Types

    SasTrailServiceTrail, SasTrailServiceTrailArgs

    Config string
    Service tracking on status. The value is:

    • on: Open
    • off: off.
    UpdateTime int
    The timestamp of the last service update. Unit: milliseconds.
    Config string
    Service tracking on status. The value is:

    • on: Open
    • off: off.
    UpdateTime int
    The timestamp of the last service update. Unit: milliseconds.
    config String
    Service tracking on status. The value is:

    • on: Open
    • off: off.
    updateTime Integer
    The timestamp of the last service update. Unit: milliseconds.
    config string
    Service tracking on status. The value is:

    • on: Open
    • off: off.
    updateTime number
    The timestamp of the last service update. Unit: milliseconds.
    config str
    Service tracking on status. The value is:

    • on: Open
    • off: off.
    update_time int
    The timestamp of the last service update. Unit: milliseconds.
    config String
    Service tracking on status. The value is:

    • on: Open
    • off: off.
    updateTime Number
    The timestamp of the last service update. Unit: milliseconds.

    Import

    Threat Detection Sas Trail can be imported using the id, e.g.

    $ pulumi import alicloud:threatdetection/sasTrail:SasTrail example
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.68.0 published on Monday, Dec 2, 2024 by Pulumi