1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. AccessLog
Alibaba Cloud v3.45.0 published on Monday, Nov 27, 2023 by Pulumi

alicloud.ga.AccessLog

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.45.0 published on Monday, Nov 27, 2023 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

    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 defaultRandomInteger = new Random.RandomInteger("defaultRandomInteger", new()
        {
            Max = 99999,
            Min = 10000,
        });
    
        var defaultProject = new AliCloud.Log.Project("defaultProject");
    
        var defaultStore = new AliCloud.Log.Store("defaultStore", new()
        {
            Project = defaultProject.Name,
        });
    
        var defaultAccelerator = new AliCloud.Ga.Accelerator("defaultAccelerator", new()
        {
            Duration = 1,
            AutoUseCoupon = true,
            Spec = "2",
        });
    
        var defaultBandwidthPackage = new AliCloud.Ga.BandwidthPackage("defaultBandwidthPackage", new()
        {
            Bandwidth = 100,
            Type = "Basic",
            BandwidthType = "Basic",
            PaymentType = "PayAsYouGo",
            BillingType = "PayBy95",
            Ratio = 30,
        });
    
        var defaultBandwidthPackageAttachment = new AliCloud.Ga.BandwidthPackageAttachment("defaultBandwidthPackageAttachment", new()
        {
            AcceleratorId = defaultAccelerator.Id,
            BandwidthPackageId = defaultBandwidthPackage.Id,
        });
    
        var defaultListener = new AliCloud.Ga.Listener("defaultListener", new()
        {
            AcceleratorId = defaultBandwidthPackageAttachment.AcceleratorId,
            ClientAffinity = "SOURCE_IP",
            Protocol = "HTTP",
            PortRanges = new[]
            {
                new AliCloud.Ga.Inputs.ListenerPortRangeArgs
                {
                    FromPort = 70,
                    ToPort = 70,
                },
            },
        });
    
        var defaultEipAddress = new AliCloud.Ecs.EipAddress("defaultEipAddress", new()
        {
            Bandwidth = "10",
            InternetChargeType = "PayByBandwidth",
            AddressName = "terraform-example",
        });
    
        var defaultEndpointGroup = new AliCloud.Ga.EndpointGroup("defaultEndpointGroup", 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("defaultAccessLog", new()
        {
            AcceleratorId = defaultAccelerator.Id,
            ListenerId = defaultListener.Id,
            EndpointGroupId = defaultEndpointGroup.Id,
            SlsProjectName = defaultProject.Name,
            SlsLogStoreName = defaultStore.Name,
            SlsRegionId = region,
        });
    
    });
    
    package main
    
    import (
    	"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.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{
    			Max: pulumi.Int(99999),
    			Min: pulumi.Int(10000),
    		})
    		if err != nil {
    			return err
    		}
    		defaultProject, err := log.NewProject(ctx, "defaultProject", nil)
    		if err != nil {
    			return err
    		}
    		defaultStore, err := log.NewStore(ctx, "defaultStore", &log.StoreArgs{
    			Project: defaultProject.Name,
    		})
    		if err != nil {
    			return err
    		}
    		defaultAccelerator, err := ga.NewAccelerator(ctx, "defaultAccelerator", &ga.AcceleratorArgs{
    			Duration:      pulumi.Int(1),
    			AutoUseCoupon: pulumi.Bool(true),
    			Spec:          pulumi.String("2"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultBandwidthPackage, err := ga.NewBandwidthPackage(ctx, "defaultBandwidthPackage", &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, "defaultBandwidthPackageAttachment", &ga.BandwidthPackageAttachmentArgs{
    			AcceleratorId:      defaultAccelerator.ID(),
    			BandwidthPackageId: defaultBandwidthPackage.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultListener, err := ga.NewListener(ctx, "defaultListener", &ga.ListenerArgs{
    			AcceleratorId:  defaultBandwidthPackageAttachment.AcceleratorId,
    			ClientAffinity: pulumi.String("SOURCE_IP"),
    			Protocol:       pulumi.String("HTTP"),
    			PortRanges: ga.ListenerPortRangeArray{
    				&ga.ListenerPortRangeArgs{
    					FromPort: pulumi.Int(70),
    					ToPort:   pulumi.Int(70),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultEipAddress, err := ecs.NewEipAddress(ctx, "defaultEipAddress", &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, "defaultEndpointGroup", &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, "defaultAccessLog", &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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.RandomInteger;
    import com.pulumi.random.RandomIntegerArgs;
    import com.pulumi.alicloud.log.Project;
    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 defaultRandomInteger = new RandomInteger("defaultRandomInteger", RandomIntegerArgs.builder()        
                .max(99999)
                .min(10000)
                .build());
    
            var defaultProject = new Project("defaultProject");
    
            var defaultStore = new Store("defaultStore", StoreArgs.builder()        
                .project(defaultProject.name())
                .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")
                .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());
    
        }
    }
    
    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_integer = random.RandomInteger("defaultRandomInteger",
        max=99999,
        min=10000)
    default_project = alicloud.log.Project("defaultProject")
    default_store = alicloud.log.Store("defaultStore", project=default_project.name)
    default_accelerator = alicloud.ga.Accelerator("defaultAccelerator",
        duration=1,
        auto_use_coupon=True,
        spec="2")
    default_bandwidth_package = alicloud.ga.BandwidthPackage("defaultBandwidthPackage",
        bandwidth=100,
        type="Basic",
        bandwidth_type="Basic",
        payment_type="PayAsYouGo",
        billing_type="PayBy95",
        ratio=30)
    default_bandwidth_package_attachment = alicloud.ga.BandwidthPackageAttachment("defaultBandwidthPackageAttachment",
        accelerator_id=default_accelerator.id,
        bandwidth_package_id=default_bandwidth_package.id)
    default_listener = alicloud.ga.Listener("defaultListener",
        accelerator_id=default_bandwidth_package_attachment.accelerator_id,
        client_affinity="SOURCE_IP",
        protocol="HTTP",
        port_ranges=[alicloud.ga.ListenerPortRangeArgs(
            from_port=70,
            to_port=70,
        )])
    default_eip_address = alicloud.ecs.EipAddress("defaultEipAddress",
        bandwidth="10",
        internet_charge_type="PayByBandwidth",
        address_name="terraform-example")
    default_endpoint_group = alicloud.ga.EndpointGroup("defaultEndpointGroup",
        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("defaultAccessLog",
        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)
    
    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 defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
        max: 99999,
        min: 10000,
    });
    const defaultProject = new alicloud.log.Project("defaultProject", {});
    const defaultStore = new alicloud.log.Store("defaultStore", {project: defaultProject.name});
    const defaultAccelerator = new alicloud.ga.Accelerator("defaultAccelerator", {
        duration: 1,
        autoUseCoupon: true,
        spec: "2",
    });
    const defaultBandwidthPackage = new alicloud.ga.BandwidthPackage("defaultBandwidthPackage", {
        bandwidth: 100,
        type: "Basic",
        bandwidthType: "Basic",
        paymentType: "PayAsYouGo",
        billingType: "PayBy95",
        ratio: 30,
    });
    const defaultBandwidthPackageAttachment = new alicloud.ga.BandwidthPackageAttachment("defaultBandwidthPackageAttachment", {
        acceleratorId: defaultAccelerator.id,
        bandwidthPackageId: defaultBandwidthPackage.id,
    });
    const defaultListener = new alicloud.ga.Listener("defaultListener", {
        acceleratorId: defaultBandwidthPackageAttachment.acceleratorId,
        clientAffinity: "SOURCE_IP",
        protocol: "HTTP",
        portRanges: [{
            fromPort: 70,
            toPort: 70,
        }],
    });
    const defaultEipAddress = new alicloud.ecs.EipAddress("defaultEipAddress", {
        bandwidth: "10",
        internetChargeType: "PayByBandwidth",
        addressName: "terraform-example",
    });
    const defaultEndpointGroup = new alicloud.ga.EndpointGroup("defaultEndpointGroup", {
        acceleratorId: defaultListener.acceleratorId,
        endpointConfigurations: [{
            endpoint: defaultEipAddress.ipAddress,
            type: "PublicIp",
            weight: 20,
        }],
        endpointGroupRegion: region,
        listenerId: defaultListener.id,
    });
    const defaultAccessLog = new alicloud.ga.AccessLog("defaultAccessLog", {
        acceleratorId: defaultAccelerator.id,
        listenerId: defaultListener.id,
        endpointGroupId: defaultEndpointGroup.id,
        slsProjectName: defaultProject.name,
        slsLogStoreName: defaultStore.name,
        slsRegionId: region,
    });
    
    configuration:
      region:
        type: string
        default: cn-hangzhou
    resources:
      defaultRandomInteger:
        type: random:RandomInteger
        properties:
          max: 99999
          min: 10000
      defaultProject:
        type: alicloud:log:Project
      defaultStore:
        type: alicloud:log:Store
        properties:
          project: ${defaultProject.name}
      defaultAccelerator:
        type: alicloud:ga:Accelerator
        properties:
          duration: 1
          autoUseCoupon: true
          spec: '2'
      defaultBandwidthPackage:
        type: alicloud:ga:BandwidthPackage
        properties:
          bandwidth: 100
          type: Basic
          bandwidthType: Basic
          paymentType: PayAsYouGo
          billingType: PayBy95
          ratio: 30
      defaultBandwidthPackageAttachment:
        type: alicloud:ga:BandwidthPackageAttachment
        properties:
          acceleratorId: ${defaultAccelerator.id}
          bandwidthPackageId: ${defaultBandwidthPackage.id}
      defaultListener:
        type: alicloud:ga:Listener
        properties:
          acceleratorId: ${defaultBandwidthPackageAttachment.acceleratorId}
          clientAffinity: SOURCE_IP
          protocol: HTTP
          portRanges:
            - fromPort: 70
              toPort: 70
      defaultEipAddress:
        type: alicloud:ecs:EipAddress
        properties:
          bandwidth: '10'
          internetChargeType: PayByBandwidth
          addressName: terraform-example
      defaultEndpointGroup:
        type: alicloud:ga:EndpointGroup
        properties:
          acceleratorId: ${defaultListener.acceleratorId}
          endpointConfigurations:
            - endpoint: ${defaultEipAddress.ipAddress}
              type: PublicIp
              weight: 20
          endpointGroupRegion: ${region}
          listenerId: ${defaultListener.id}
      defaultAccessLog:
        type: alicloud:ga:AccessLog
        properties:
          acceleratorId: ${defaultAccelerator.id}
          listenerId: ${defaultListener.id}
          endpointGroupId: ${defaultEndpointGroup.id}
          slsProjectName: ${defaultProject.name}
          slsLogStoreName: ${defaultStore.name}
          slsRegionId: ${region}
    

    Create AccessLog Resource

    new AccessLog(name: string, args: AccessLogArgs, opts?: CustomResourceOptions);
    @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)
    @overload
    def AccessLog(resource_name: str,
                  args: AccessLogArgs,
                  opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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>
    

    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.45.0 published on Monday, Nov 27, 2023 by Pulumi