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

alicloud.cloudstoragegateway.GatewayLogging

Explore with Pulumi AI

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

    Provides a Cloud Storage Gateway Gateway Logging resource.

    For information about Cloud Storage Gateway Gateway Logging and how to use it, see What is Gateway Logging.

    NOTE: Available since v1.144.0.

    Create GatewayLogging Resource

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

    Constructor syntax

    new GatewayLogging(name: string, args: GatewayLoggingArgs, opts?: CustomResourceOptions);
    @overload
    def GatewayLogging(resource_name: str,
                       args: GatewayLoggingArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def GatewayLogging(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       gateway_id: Optional[str] = None,
                       sls_logstore: Optional[str] = None,
                       sls_project: Optional[str] = None,
                       status: Optional[str] = None)
    func NewGatewayLogging(ctx *Context, name string, args GatewayLoggingArgs, opts ...ResourceOption) (*GatewayLogging, error)
    public GatewayLogging(string name, GatewayLoggingArgs args, CustomResourceOptions? opts = null)
    public GatewayLogging(String name, GatewayLoggingArgs args)
    public GatewayLogging(String name, GatewayLoggingArgs args, CustomResourceOptions options)
    
    type: alicloud:cloudstoragegateway:GatewayLogging
    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 GatewayLoggingArgs
    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 GatewayLoggingArgs
    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 GatewayLoggingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GatewayLoggingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GatewayLoggingArgs
    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 gatewayLoggingResource = new AliCloud.CloudStorageGateway.GatewayLogging("gatewayLoggingResource", new()
    {
        GatewayId = "string",
        SlsLogstore = "string",
        SlsProject = "string",
        Status = "string",
    });
    
    example, err := cloudstoragegateway.NewGatewayLogging(ctx, "gatewayLoggingResource", &cloudstoragegateway.GatewayLoggingArgs{
    	GatewayId:   pulumi.String("string"),
    	SlsLogstore: pulumi.String("string"),
    	SlsProject:  pulumi.String("string"),
    	Status:      pulumi.String("string"),
    })
    
    var gatewayLoggingResource = new GatewayLogging("gatewayLoggingResource", GatewayLoggingArgs.builder()
        .gatewayId("string")
        .slsLogstore("string")
        .slsProject("string")
        .status("string")
        .build());
    
    gateway_logging_resource = alicloud.cloudstoragegateway.GatewayLogging("gatewayLoggingResource",
        gateway_id="string",
        sls_logstore="string",
        sls_project="string",
        status="string")
    
    const gatewayLoggingResource = new alicloud.cloudstoragegateway.GatewayLogging("gatewayLoggingResource", {
        gatewayId: "string",
        slsLogstore: "string",
        slsProject: "string",
        status: "string",
    });
    
    type: alicloud:cloudstoragegateway:GatewayLogging
    properties:
        gatewayId: string
        slsLogstore: string
        slsProject: string
        status: string
    

    GatewayLogging 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 GatewayLogging resource accepts the following input properties:

    GatewayId string
    The ID of the Gateway.
    SlsLogstore string
    The name of the Log Store.
    SlsProject string
    The name of the Project.
    Status string
    The status of the resource. Valid values: Enabled, Disable.
    GatewayId string
    The ID of the Gateway.
    SlsLogstore string
    The name of the Log Store.
    SlsProject string
    The name of the Project.
    Status string
    The status of the resource. Valid values: Enabled, Disable.
    gatewayId String
    The ID of the Gateway.
    slsLogstore String
    The name of the Log Store.
    slsProject String
    The name of the Project.
    status String
    The status of the resource. Valid values: Enabled, Disable.
    gatewayId string
    The ID of the Gateway.
    slsLogstore string
    The name of the Log Store.
    slsProject string
    The name of the Project.
    status string
    The status of the resource. Valid values: Enabled, Disable.
    gateway_id str
    The ID of the Gateway.
    sls_logstore str
    The name of the Log Store.
    sls_project str
    The name of the Project.
    status str
    The status of the resource. Valid values: Enabled, Disable.
    gatewayId String
    The ID of the Gateway.
    slsLogstore String
    The name of the Log Store.
    slsProject String
    The name of the Project.
    status String
    The status of the resource. Valid values: Enabled, Disable.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GatewayLogging Resource

    Get an existing GatewayLogging 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?: GatewayLoggingState, opts?: CustomResourceOptions): GatewayLogging
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            gateway_id: Optional[str] = None,
            sls_logstore: Optional[str] = None,
            sls_project: Optional[str] = None,
            status: Optional[str] = None) -> GatewayLogging
    func GetGatewayLogging(ctx *Context, name string, id IDInput, state *GatewayLoggingState, opts ...ResourceOption) (*GatewayLogging, error)
    public static GatewayLogging Get(string name, Input<string> id, GatewayLoggingState? state, CustomResourceOptions? opts = null)
    public static GatewayLogging get(String name, Output<String> id, GatewayLoggingState 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:
    GatewayId string
    The ID of the Gateway.
    SlsLogstore string
    The name of the Log Store.
    SlsProject string
    The name of the Project.
    Status string
    The status of the resource. Valid values: Enabled, Disable.
    GatewayId string
    The ID of the Gateway.
    SlsLogstore string
    The name of the Log Store.
    SlsProject string
    The name of the Project.
    Status string
    The status of the resource. Valid values: Enabled, Disable.
    gatewayId String
    The ID of the Gateway.
    slsLogstore String
    The name of the Log Store.
    slsProject String
    The name of the Project.
    status String
    The status of the resource. Valid values: Enabled, Disable.
    gatewayId string
    The ID of the Gateway.
    slsLogstore string
    The name of the Log Store.
    slsProject string
    The name of the Project.
    status string
    The status of the resource. Valid values: Enabled, Disable.
    gateway_id str
    The ID of the Gateway.
    sls_logstore str
    The name of the Log Store.
    sls_project str
    The name of the Project.
    status str
    The status of the resource. Valid values: Enabled, Disable.
    gatewayId String
    The ID of the Gateway.
    slsLogstore String
    The name of the Log Store.
    slsProject String
    The name of the Project.
    status String
    The status of the resource. Valid values: Enabled, Disable.

    Import

    Cloud Storage Gateway Gateway Logging can be imported using the id, e.g.

    $ pulumi import alicloud:cloudstoragegateway/gatewayLogging:GatewayLogging example <gateway_id>
    

    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.66.0 published on Friday, Nov 15, 2024 by Pulumi