1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. AccessLog
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.ga.AccessLog

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Provides a Global Accelerator (GA) Access Log resource.

    For information about Global Accelerator (GA) Access Log and how to use it, see What is Access Log.

    NOTE: Available since v1.187.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const region = config.get("region") || "cn-hangzhou";
    const _default = new random.index.Integer("default", {
        max: 99999,
        min: 10000,
    });
    const defaultProject = new alicloud.log.Project("default", {name: `terraform-example-${_default.result}`});
    const defaultStore = new alicloud.log.Store("default", {
        project: defaultProject.name,
        name: "terraform-example",
    });
    const defaultAccelerator = new alicloud.ga.Accelerator("default", {
        duration: 1,
        autoUseCoupon: true,
        spec: "2",
    });
    const defaultBandwidthPackage = new alicloud.ga.BandwidthPackage("default", {
        bandwidth: 100,
        type: "Basic",
        bandwidthType: "Basic",
        paymentType: "PayAsYouGo",
        billingType: "PayBy95",
        ratio: 30,
    });
    const defaultBandwidthPackageAttachment = new alicloud.ga.BandwidthPackageAttachment("default", {
        acceleratorId: defaultAccelerator.id,
        bandwidthPackageId: defaultBandwidthPackage.id,
    });
    const defaultListener = new alicloud.ga.Listener("default", {
        acceleratorId: defaultBandwidthPackageAttachment.acceleratorId,
        clientAffinity: "SOURCE_IP",
        protocol: "HTTP",
        name: "terraform-example",
        portRanges: [{
            fromPort: 70,
            toPort: 70,
        }],
    });
    const defaultEipAddress = new alicloud.ecs.EipAddress("default", {
        bandwidth: "10",
        internetChargeType: "PayByBandwidth",
        addressName: "terraform-example",
    });
    const defaultEndpointGroup = new alicloud.ga.EndpointGroup("default", {
        acceleratorId: defaultListener.acceleratorId,
        endpointConfigurations: [{
            endpoint: defaultEipAddress.ipAddress,
            type: "PublicIp",
            weight: 20,
        }],
        endpointGroupRegion: region,
        listenerId: defaultListener.id,
    });
    const defaultAccessLog = new alicloud.ga.AccessLog("default", {
        acceleratorId: defaultAccelerator.id,
        listenerId: defaultListener.id,
        endpointGroupId: defaultEndpointGroup.id,
        slsProjectName: defaultProject.name,
        slsLogStoreName: defaultStore.name,
        slsRegionId: region,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    region = config.get("region")
    if region is None:
        region = "cn-hangzhou"
    default = random.index.Integer("default",
        max=99999,
        min=10000)
    default_project = alicloud.log.Project("default", name=f"terraform-example-{default['result']}")
    default_store = alicloud.log.Store("default",
        project=default_project.name,
        name="terraform-example")
    default_accelerator = alicloud.ga.Accelerator("default",
        duration=1,
        auto_use_coupon=True,
        spec="2")
    default_bandwidth_package = alicloud.ga.BandwidthPackage("default",
        bandwidth=100,
        type="Basic",
        bandwidth_type="Basic",
        payment_type="PayAsYouGo",
        billing_type="PayBy95",
        ratio=30)
    default_bandwidth_package_attachment = alicloud.ga.BandwidthPackageAttachment("default",
        accelerator_id=default_accelerator.id,
        bandwidth_package_id=default_bandwidth_package.id)
    default_listener = alicloud.ga.Listener("default",
        accelerator_id=default_bandwidth_package_attachment.accelerator_id,
        client_affinity="SOURCE_IP",
        protocol="HTTP",
        name="terraform-example",
        port_ranges=[alicloud.ga.ListenerPortRangeArgs(
            from_port=70,
            to_port=70,
        )])
    default_eip_address = alicloud.ecs.EipAddress("default",
        bandwidth="10",
        internet_charge_type="PayByBandwidth",
        address_name="terraform-example")
    default_endpoint_group = alicloud.ga.EndpointGroup("default",
        accelerator_id=default_listener.accelerator_id,
        endpoint_configurations=[alicloud.ga.EndpointGroupEndpointConfigurationArgs(
            endpoint=default_eip_address.ip_address,
            type="PublicIp",
            weight=20,
        )],
        endpoint_group_region=region,
        listener_id=default_listener.id)
    default_access_log = alicloud.ga.AccessLog("default",
        accelerator_id=default_accelerator.id,
        listener_id=default_listener.id,
        endpoint_group_id=default_endpoint_group.id,
        sls_project_name=default_project.name,
        sls_log_store_name=default_store.name,
        sls_region_id=region)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"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, "")
    		region := "cn-hangzhou"
    		if param := cfg.Get("region"); param != "" {
    			region = param
    		}
    		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Max: 99999,
    			Min: 10000,
    		})
    		if err != nil {
    			return err
    		}
    		defaultProject, err := log.NewProject(ctx, "default", &log.ProjectArgs{
    			Name: pulumi.String(fmt.Sprintf("terraform-example-%v", _default.Result)),
    		})
    		if err != nil {
    			return err
    		}
    		defaultStore, err := log.NewStore(ctx, "default", &log.StoreArgs{
    			Project: defaultProject.Name,
    			Name:    pulumi.String("terraform-example"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultAccelerator, err := ga.NewAccelerator(ctx, "default", &ga.AcceleratorArgs{
    			Duration:      pulumi.Int(1),
    			AutoUseCoupon: pulumi.Bool(true),
    			Spec:          pulumi.String("2"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultBandwidthPackage, err := ga.NewBandwidthPackage(ctx, "default", &ga.BandwidthPackageArgs{
    			Bandwidth:     pulumi.Int(100),
    			Type:          pulumi.String("Basic"),
    			BandwidthType: pulumi.String("Basic"),
    			PaymentType:   pulumi.String("PayAsYouGo"),
    			BillingType:   pulumi.String("PayBy95"),
    			Ratio:         pulumi.Int(30),
    		})
    		if err != nil {
    			return err
    		}
    		defaultBandwidthPackageAttachment, err := ga.NewBandwidthPackageAttachment(ctx, "default", &ga.BandwidthPackageAttachmentArgs{
    			AcceleratorId:      defaultAccelerator.ID(),
    			BandwidthPackageId: defaultBandwidthPackage.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultListener, err := ga.NewListener(ctx, "default", &ga.ListenerArgs{
    			AcceleratorId:  defaultBandwidthPackageAttachment.AcceleratorId,
    			ClientAffinity: pulumi.String("SOURCE_IP"),
    			Protocol:       pulumi.String("HTTP"),
    			Name:           pulumi.String("terraform-example"),
    			PortRanges: ga.ListenerPortRangeArray{
    				&ga.ListenerPortRangeArgs{
    					FromPort: pulumi.Int(70),
    					ToPort:   pulumi.Int(70),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultEipAddress, err := ecs.NewEipAddress(ctx, "default", &ecs.EipAddressArgs{
    			Bandwidth:          pulumi.String("10"),
    			InternetChargeType: pulumi.String("PayByBandwidth"),
    			AddressName:        pulumi.String("terraform-example"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultEndpointGroup, err := ga.NewEndpointGroup(ctx, "default", &ga.EndpointGroupArgs{
    			AcceleratorId: defaultListener.AcceleratorId,
    			EndpointConfigurations: ga.EndpointGroupEndpointConfigurationArray{
    				&ga.EndpointGroupEndpointConfigurationArgs{
    					Endpoint: defaultEipAddress.IpAddress,
    					Type:     pulumi.String("PublicIp"),
    					Weight:   pulumi.Int(20),
    				},
    			},
    			EndpointGroupRegion: pulumi.String(region),
    			ListenerId:          defaultListener.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ga.NewAccessLog(ctx, "default", &ga.AccessLogArgs{
    			AcceleratorId:   defaultAccelerator.ID(),
    			ListenerId:      defaultListener.ID(),
    			EndpointGroupId: defaultEndpointGroup.ID(),
    			SlsProjectName:  defaultProject.Name,
    			SlsLogStoreName: defaultStore.Name,
    			SlsRegionId:     pulumi.String(region),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var region = config.Get("region") ?? "cn-hangzhou";
        var @default = new Random.Index.Integer("default", new()
        {
            Max = 99999,
            Min = 10000,
        });
    
        var defaultProject = new AliCloud.Log.Project("default", new()
        {
            Name = $"terraform-example-{@default.Result}",
        });
    
        var defaultStore = new AliCloud.Log.Store("default", new()
        {
            Project = defaultProject.Name,
            Name = "terraform-example",
        });
    
        var defaultAccelerator = new AliCloud.Ga.Accelerator("default", new()
        {
            Duration = 1,
            AutoUseCoupon = true,
            Spec = "2",
        });
    
        var defaultBandwidthPackage = new AliCloud.Ga.BandwidthPackage("default", new()
        {
            Bandwidth = 100,
            Type = "Basic",
            BandwidthType = "Basic",
            PaymentType = "PayAsYouGo",
            BillingType = "PayBy95",
            Ratio = 30,
        });
    
        var defaultBandwidthPackageAttachment = new AliCloud.Ga.BandwidthPackageAttachment("default", new()
        {
            AcceleratorId = defaultAccelerator.Id,
            BandwidthPackageId = defaultBandwidthPackage.Id,
        });
    
        var defaultListener = new AliCloud.Ga.Listener("default", new()
        {
            AcceleratorId = defaultBandwidthPackageAttachment.AcceleratorId,
            ClientAffinity = "SOURCE_IP",
            Protocol = "HTTP",
            Name = "terraform-example",
            PortRanges = new[]
            {
                new AliCloud.Ga.Inputs.ListenerPortRangeArgs
                {
                    FromPort = 70,
                    ToPort = 70,
                },
            },
        });
    
        var defaultEipAddress = new AliCloud.Ecs.EipAddress("default", new()
        {
            Bandwidth = "10",
            InternetChargeType = "PayByBandwidth",
            AddressName = "terraform-example",
        });
    
        var defaultEndpointGroup = new AliCloud.Ga.EndpointGroup("default", new()
        {
            AcceleratorId = defaultListener.AcceleratorId,
            EndpointConfigurations = new[]
            {
                new AliCloud.Ga.Inputs.EndpointGroupEndpointConfigurationArgs
                {
                    Endpoint = defaultEipAddress.IpAddress,
                    Type = "PublicIp",
                    Weight = 20,
                },
            },
            EndpointGroupRegion = region,
            ListenerId = defaultListener.Id,
        });
    
        var defaultAccessLog = new AliCloud.Ga.AccessLog("default", new()
        {
            AcceleratorId = defaultAccelerator.Id,
            ListenerId = defaultListener.Id,
            EndpointGroupId = defaultEndpointGroup.Id,
            SlsProjectName = defaultProject.Name,
            SlsLogStoreName = defaultStore.Name,
            SlsRegionId = region,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.log.Project;
    import com.pulumi.alicloud.log.ProjectArgs;
    import com.pulumi.alicloud.log.Store;
    import com.pulumi.alicloud.log.StoreArgs;
    import com.pulumi.alicloud.ga.Accelerator;
    import com.pulumi.alicloud.ga.AcceleratorArgs;
    import com.pulumi.alicloud.ga.BandwidthPackage;
    import com.pulumi.alicloud.ga.BandwidthPackageArgs;
    import com.pulumi.alicloud.ga.BandwidthPackageAttachment;
    import com.pulumi.alicloud.ga.BandwidthPackageAttachmentArgs;
    import com.pulumi.alicloud.ga.Listener;
    import com.pulumi.alicloud.ga.ListenerArgs;
    import com.pulumi.alicloud.ga.inputs.ListenerPortRangeArgs;
    import com.pulumi.alicloud.ecs.EipAddress;
    import com.pulumi.alicloud.ecs.EipAddressArgs;
    import com.pulumi.alicloud.ga.EndpointGroup;
    import com.pulumi.alicloud.ga.EndpointGroupArgs;
    import com.pulumi.alicloud.ga.inputs.EndpointGroupEndpointConfigurationArgs;
    import com.pulumi.alicloud.ga.AccessLog;
    import com.pulumi.alicloud.ga.AccessLogArgs;
    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 region = config.get("region").orElse("cn-hangzhou");
            var default_ = new Integer("default", IntegerArgs.builder()        
                .max(99999)
                .min(10000)
                .build());
    
            var defaultProject = new Project("defaultProject", ProjectArgs.builder()        
                .name(String.format("terraform-example-%s", default_.result()))
                .build());
    
            var defaultStore = new Store("defaultStore", StoreArgs.builder()        
                .project(defaultProject.name())
                .name("terraform-example")
                .build());
    
            var defaultAccelerator = new Accelerator("defaultAccelerator", AcceleratorArgs.builder()        
                .duration(1)
                .autoUseCoupon(true)
                .spec("2")
                .build());
    
            var defaultBandwidthPackage = new BandwidthPackage("defaultBandwidthPackage", BandwidthPackageArgs.builder()        
                .bandwidth(100)
                .type("Basic")
                .bandwidthType("Basic")
                .paymentType("PayAsYouGo")
                .billingType("PayBy95")
                .ratio(30)
                .build());
    
            var defaultBandwidthPackageAttachment = new BandwidthPackageAttachment("defaultBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()        
                .acceleratorId(defaultAccelerator.id())
                .bandwidthPackageId(defaultBandwidthPackage.id())
                .build());
    
            var defaultListener = new Listener("defaultListener", ListenerArgs.builder()        
                .acceleratorId(defaultBandwidthPackageAttachment.acceleratorId())
                .clientAffinity("SOURCE_IP")
                .protocol("HTTP")
                .name("terraform-example")
                .portRanges(ListenerPortRangeArgs.builder()
                    .fromPort(70)
                    .toPort(70)
                    .build())
                .build());
    
            var defaultEipAddress = new EipAddress("defaultEipAddress", EipAddressArgs.builder()        
                .bandwidth("10")
                .internetChargeType("PayByBandwidth")
                .addressName("terraform-example")
                .build());
    
            var defaultEndpointGroup = new EndpointGroup("defaultEndpointGroup", EndpointGroupArgs.builder()        
                .acceleratorId(defaultListener.acceleratorId())
                .endpointConfigurations(EndpointGroupEndpointConfigurationArgs.builder()
                    .endpoint(defaultEipAddress.ipAddress())
                    .type("PublicIp")
                    .weight(20)
                    .build())
                .endpointGroupRegion(region)
                .listenerId(defaultListener.id())
                .build());
    
            var defaultAccessLog = new AccessLog("defaultAccessLog", AccessLogArgs.builder()        
                .acceleratorId(defaultAccelerator.id())
                .listenerId(defaultListener.id())
                .endpointGroupId(defaultEndpointGroup.id())
                .slsProjectName(defaultProject.name())
                .slsLogStoreName(defaultStore.name())
                .slsRegionId(region)
                .build());
    
        }
    }
    
    configuration:
      region:
        type: string
        default: cn-hangzhou
    resources:
      default:
        type: random:integer
        properties:
          max: 99999
          min: 10000
      defaultProject:
        type: alicloud:log:Project
        name: default
        properties:
          name: terraform-example-${default.result}
      defaultStore:
        type: alicloud:log:Store
        name: default
        properties:
          project: ${defaultProject.name}
          name: terraform-example
      defaultAccelerator:
        type: alicloud:ga:Accelerator
        name: default
        properties:
          duration: 1
          autoUseCoupon: true
          spec: '2'
      defaultBandwidthPackage:
        type: alicloud:ga:BandwidthPackage
        name: default
        properties:
          bandwidth: 100
          type: Basic
          bandwidthType: Basic
          paymentType: PayAsYouGo
          billingType: PayBy95
          ratio: 30
      defaultBandwidthPackageAttachment:
        type: alicloud:ga:BandwidthPackageAttachment
        name: default
        properties:
          acceleratorId: ${defaultAccelerator.id}
          bandwidthPackageId: ${defaultBandwidthPackage.id}
      defaultListener:
        type: alicloud:ga:Listener
        name: default
        properties:
          acceleratorId: ${defaultBandwidthPackageAttachment.acceleratorId}
          clientAffinity: SOURCE_IP
          protocol: HTTP
          name: terraform-example
          portRanges:
            - fromPort: 70
              toPort: 70
      defaultEipAddress:
        type: alicloud:ecs:EipAddress
        name: default
        properties:
          bandwidth: '10'
          internetChargeType: PayByBandwidth
          addressName: terraform-example
      defaultEndpointGroup:
        type: alicloud:ga:EndpointGroup
        name: default
        properties:
          acceleratorId: ${defaultListener.acceleratorId}
          endpointConfigurations:
            - endpoint: ${defaultEipAddress.ipAddress}
              type: PublicIp
              weight: 20
          endpointGroupRegion: ${region}
          listenerId: ${defaultListener.id}
      defaultAccessLog:
        type: alicloud:ga:AccessLog
        name: default
        properties:
          acceleratorId: ${defaultAccelerator.id}
          listenerId: ${defaultListener.id}
          endpointGroupId: ${defaultEndpointGroup.id}
          slsProjectName: ${defaultProject.name}
          slsLogStoreName: ${defaultStore.name}
          slsRegionId: ${region}
    

    Create AccessLog Resource

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

    Constructor syntax

    new AccessLog(name: string, args: AccessLogArgs, opts?: CustomResourceOptions);
    @overload
    def AccessLog(resource_name: str,
                  args: AccessLogArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccessLog(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  accelerator_id: Optional[str] = None,
                  endpoint_group_id: Optional[str] = None,
                  listener_id: Optional[str] = None,
                  sls_log_store_name: Optional[str] = None,
                  sls_project_name: Optional[str] = None,
                  sls_region_id: Optional[str] = None)
    func NewAccessLog(ctx *Context, name string, args AccessLogArgs, opts ...ResourceOption) (*AccessLog, error)
    public AccessLog(string name, AccessLogArgs args, CustomResourceOptions? opts = null)
    public AccessLog(String name, AccessLogArgs args)
    public AccessLog(String name, AccessLogArgs args, CustomResourceOptions options)
    
    type: alicloud:ga:AccessLog
    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 AccessLogArgs
    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 AccessLogArgs
    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 AccessLogArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessLogArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccessLogArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var accessLogResource = new AliCloud.Ga.AccessLog("accessLogResource", new()
    {
        AcceleratorId = "string",
        EndpointGroupId = "string",
        ListenerId = "string",
        SlsLogStoreName = "string",
        SlsProjectName = "string",
        SlsRegionId = "string",
    });
    
    example, err := ga.NewAccessLog(ctx, "accessLogResource", &ga.AccessLogArgs{
    	AcceleratorId:   pulumi.String("string"),
    	EndpointGroupId: pulumi.String("string"),
    	ListenerId:      pulumi.String("string"),
    	SlsLogStoreName: pulumi.String("string"),
    	SlsProjectName:  pulumi.String("string"),
    	SlsRegionId:     pulumi.String("string"),
    })
    
    var accessLogResource = new AccessLog("accessLogResource", AccessLogArgs.builder()        
        .acceleratorId("string")
        .endpointGroupId("string")
        .listenerId("string")
        .slsLogStoreName("string")
        .slsProjectName("string")
        .slsRegionId("string")
        .build());
    
    access_log_resource = alicloud.ga.AccessLog("accessLogResource",
        accelerator_id="string",
        endpoint_group_id="string",
        listener_id="string",
        sls_log_store_name="string",
        sls_project_name="string",
        sls_region_id="string")
    
    const accessLogResource = new alicloud.ga.AccessLog("accessLogResource", {
        acceleratorId: "string",
        endpointGroupId: "string",
        listenerId: "string",
        slsLogStoreName: "string",
        slsProjectName: "string",
        slsRegionId: "string",
    });
    
    type: alicloud:ga:AccessLog
    properties:
        acceleratorId: string
        endpointGroupId: string
        listenerId: string
        slsLogStoreName: string
        slsProjectName: string
        slsRegionId: string
    

    AccessLog Resource Properties

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

    Inputs

    The AccessLog resource accepts the following input properties:

    AcceleratorId string
    The ID of the global acceleration instance.
    EndpointGroupId string
    The ID of the endpoint group instance.
    ListenerId string
    The ID of the listener.
    SlsLogStoreName string
    The name of the Log Store.
    SlsProjectName string
    The name of the Log Service project.
    SlsRegionId string
    The region ID of the Log Service project.
    AcceleratorId string
    The ID of the global acceleration instance.
    EndpointGroupId string
    The ID of the endpoint group instance.
    ListenerId string
    The ID of the listener.
    SlsLogStoreName string
    The name of the Log Store.
    SlsProjectName string
    The name of the Log Service project.
    SlsRegionId string
    The region ID of the Log Service project.
    acceleratorId String
    The ID of the global acceleration instance.
    endpointGroupId String
    The ID of the endpoint group instance.
    listenerId String
    The ID of the listener.
    slsLogStoreName String
    The name of the Log Store.
    slsProjectName String
    The name of the Log Service project.
    slsRegionId String
    The region ID of the Log Service project.
    acceleratorId string
    The ID of the global acceleration instance.
    endpointGroupId string
    The ID of the endpoint group instance.
    listenerId string
    The ID of the listener.
    slsLogStoreName string
    The name of the Log Store.
    slsProjectName string
    The name of the Log Service project.
    slsRegionId string
    The region ID of the Log Service project.
    accelerator_id str
    The ID of the global acceleration instance.
    endpoint_group_id str
    The ID of the endpoint group instance.
    listener_id str
    The ID of the listener.
    sls_log_store_name str
    The name of the Log Store.
    sls_project_name str
    The name of the Log Service project.
    sls_region_id str
    The region ID of the Log Service project.
    acceleratorId String
    The ID of the global acceleration instance.
    endpointGroupId String
    The ID of the endpoint group instance.
    listenerId String
    The ID of the listener.
    slsLogStoreName String
    The name of the Log Store.
    slsProjectName String
    The name of the Log Service project.
    slsRegionId String
    The region ID of the Log Service project.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Whether access log is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Whether access log is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Whether access log is enabled.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Whether access log is enabled.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Whether access log is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Whether access log is enabled.

    Look up Existing AccessLog Resource

    Get an existing AccessLog 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?: AccessLogState, opts?: CustomResourceOptions): AccessLog
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accelerator_id: Optional[str] = None,
            endpoint_group_id: Optional[str] = None,
            listener_id: Optional[str] = None,
            sls_log_store_name: Optional[str] = None,
            sls_project_name: Optional[str] = None,
            sls_region_id: Optional[str] = None,
            status: Optional[str] = None) -> AccessLog
    func GetAccessLog(ctx *Context, name string, id IDInput, state *AccessLogState, opts ...ResourceOption) (*AccessLog, error)
    public static AccessLog Get(string name, Input<string> id, AccessLogState? state, CustomResourceOptions? opts = null)
    public static AccessLog get(String name, Output<String> id, AccessLogState 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:
    AcceleratorId string
    The ID of the global acceleration instance.
    EndpointGroupId string
    The ID of the endpoint group instance.
    ListenerId string
    The ID of the listener.
    SlsLogStoreName string
    The name of the Log Store.
    SlsProjectName string
    The name of the Log Service project.
    SlsRegionId string
    The region ID of the Log Service project.
    Status string
    Whether access log is enabled.
    AcceleratorId string
    The ID of the global acceleration instance.
    EndpointGroupId string
    The ID of the endpoint group instance.
    ListenerId string
    The ID of the listener.
    SlsLogStoreName string
    The name of the Log Store.
    SlsProjectName string
    The name of the Log Service project.
    SlsRegionId string
    The region ID of the Log Service project.
    Status string
    Whether access log is enabled.
    acceleratorId String
    The ID of the global acceleration instance.
    endpointGroupId String
    The ID of the endpoint group instance.
    listenerId String
    The ID of the listener.
    slsLogStoreName String
    The name of the Log Store.
    slsProjectName String
    The name of the Log Service project.
    slsRegionId String
    The region ID of the Log Service project.
    status String
    Whether access log is enabled.
    acceleratorId string
    The ID of the global acceleration instance.
    endpointGroupId string
    The ID of the endpoint group instance.
    listenerId string
    The ID of the listener.
    slsLogStoreName string
    The name of the Log Store.
    slsProjectName string
    The name of the Log Service project.
    slsRegionId string
    The region ID of the Log Service project.
    status string
    Whether access log is enabled.
    accelerator_id str
    The ID of the global acceleration instance.
    endpoint_group_id str
    The ID of the endpoint group instance.
    listener_id str
    The ID of the listener.
    sls_log_store_name str
    The name of the Log Store.
    sls_project_name str
    The name of the Log Service project.
    sls_region_id str
    The region ID of the Log Service project.
    status str
    Whether access log is enabled.
    acceleratorId String
    The ID of the global acceleration instance.
    endpointGroupId String
    The ID of the endpoint group instance.
    listenerId String
    The ID of the listener.
    slsLogStoreName String
    The name of the Log Store.
    slsProjectName String
    The name of the Log Service project.
    slsRegionId String
    The region ID of the Log Service project.
    status String
    Whether access log is enabled.

    Import

    Global Accelerator (GA) Access Log can be imported using the id, e.g.

    $ pulumi import alicloud:ga/accessLog:AccessLog example <accelerator_id>:<listener_id>:<endpoint_group_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.54.0 published on Wednesday, Apr 24, 2024 by Pulumi