alicloud.alb.LoadBalancerAccessLogConfigAttachment
Explore with Pulumi AI
Provides a Application Load Balancer (ALB) Load Balancer Access Log Config Attachment resource.
Attachment between ALB and AccessLog.
For information about Application Load Balancer (ALB) Load Balancer Access Log Config Attachment and how to use it, see What is Load Balancer Access Log Config Attachment.
NOTE: Available since v1.241.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
import * as std from "@pulumi/std";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new random.index.Integer("default", {
min: 100000,
max: 999999,
});
const albExampleTfVpc = new alicloud.vpc.Network("alb_example_tf_vpc", {
vpcName: name,
cidrBlock: "192.168.0.0/16",
});
const albExampleTfJ = new alicloud.vpc.Switch("alb_example_tf_j", {
vpcId: albExampleTfVpc.id,
zoneId: "cn-beijing-j",
cidrBlock: "192.168.1.0/24",
vswitchName: std.format({
input: "%s1",
args: [name],
}).then(invoke => invoke.result),
});
const albExampleTfK = new alicloud.vpc.Switch("alb_example_tf_k", {
vpcId: albExampleTfVpc.id,
zoneId: "cn-beijing-k",
cidrBlock: "192.168.2.0/24",
vswitchName: std.format({
input: "%s2",
args: [name],
}).then(invoke => invoke.result),
});
const defaultDSY0JJ = new alicloud.vpc.Switch("defaultDSY0JJ", {
vpcId: albExampleTfVpc.id,
zoneId: "cn-beijing-f",
cidrBlock: "192.168.3.0/24",
vswitchName: std.format({
input: "%s3",
args: [name],
}).then(invoke => invoke.result),
});
const defaultDYswYo = new alicloud.alb.LoadBalancer("defaultDYswYo", {
loadBalancerName: std.format({
input: "%s4",
args: [name],
}).then(invoke => invoke.result),
loadBalancerEdition: "Standard",
vpcId: albExampleTfVpc.id,
loadBalancerBillingConfig: {
payType: "PayAsYouGo",
},
addressType: "Intranet",
addressAllocatedMode: "Fixed",
zoneMappings: [
{
vswitchId: defaultDSY0JJ.id,
zoneId: defaultDSY0JJ.zoneId,
},
{
vswitchId: albExampleTfJ.id,
zoneId: albExampleTfJ.zoneId,
},
{
vswitchId: albExampleTfK.id,
zoneId: albExampleTfK.zoneId,
},
],
});
const defaultLoadBalancerAccessLogConfigAttachment = new alicloud.alb.LoadBalancerAccessLogConfigAttachment("default", {
logStore: `${name}-${_default.result}`,
loadBalancerId: defaultDYswYo.id,
logProject: `${name}-${_default.result}`,
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
import pulumi_std as std
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = random.index.Integer("default",
min=100000,
max=999999)
alb_example_tf_vpc = alicloud.vpc.Network("alb_example_tf_vpc",
vpc_name=name,
cidr_block="192.168.0.0/16")
alb_example_tf_j = alicloud.vpc.Switch("alb_example_tf_j",
vpc_id=alb_example_tf_vpc.id,
zone_id="cn-beijing-j",
cidr_block="192.168.1.0/24",
vswitch_name=std.format(input="%s1",
args=[name]).result)
alb_example_tf_k = alicloud.vpc.Switch("alb_example_tf_k",
vpc_id=alb_example_tf_vpc.id,
zone_id="cn-beijing-k",
cidr_block="192.168.2.0/24",
vswitch_name=std.format(input="%s2",
args=[name]).result)
default_dsy0_jj = alicloud.vpc.Switch("defaultDSY0JJ",
vpc_id=alb_example_tf_vpc.id,
zone_id="cn-beijing-f",
cidr_block="192.168.3.0/24",
vswitch_name=std.format(input="%s3",
args=[name]).result)
default_dysw_yo = alicloud.alb.LoadBalancer("defaultDYswYo",
load_balancer_name=std.format(input="%s4",
args=[name]).result,
load_balancer_edition="Standard",
vpc_id=alb_example_tf_vpc.id,
load_balancer_billing_config={
"pay_type": "PayAsYouGo",
},
address_type="Intranet",
address_allocated_mode="Fixed",
zone_mappings=[
{
"vswitch_id": default_dsy0_jj.id,
"zone_id": default_dsy0_jj.zone_id,
},
{
"vswitch_id": alb_example_tf_j.id,
"zone_id": alb_example_tf_j.zone_id,
},
{
"vswitch_id": alb_example_tf_k.id,
"zone_id": alb_example_tf_k.zone_id,
},
])
default_load_balancer_access_log_config_attachment = alicloud.alb.LoadBalancerAccessLogConfigAttachment("default",
log_store=f"{name}-{default['result']}",
load_balancer_id=default_dysw_yo.id,
log_project=f"{name}-{default['result']}")
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi-std/sdk/go/std"
"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
}
_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 100000,
Max: 999999,
})
if err != nil {
return err
}
albExampleTfVpc, err := vpc.NewNetwork(ctx, "alb_example_tf_vpc", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
invokeFormat, err := std.Format(ctx, &std.FormatArgs{
Input: "%s1",
Args: []string{
name,
},
}, nil)
if err != nil {
return err
}
albExampleTfJ, err := vpc.NewSwitch(ctx, "alb_example_tf_j", &vpc.SwitchArgs{
VpcId: albExampleTfVpc.ID(),
ZoneId: pulumi.String("cn-beijing-j"),
CidrBlock: pulumi.String("192.168.1.0/24"),
VswitchName: pulumi.String(invokeFormat.Result),
})
if err != nil {
return err
}
invokeFormat1, err := std.Format(ctx, &std.FormatArgs{
Input: "%s2",
Args: []string{
name,
},
}, nil)
if err != nil {
return err
}
albExampleTfK, err := vpc.NewSwitch(ctx, "alb_example_tf_k", &vpc.SwitchArgs{
VpcId: albExampleTfVpc.ID(),
ZoneId: pulumi.String("cn-beijing-k"),
CidrBlock: pulumi.String("192.168.2.0/24"),
VswitchName: pulumi.String(invokeFormat1.Result),
})
if err != nil {
return err
}
invokeFormat2, err := std.Format(ctx, &std.FormatArgs{
Input: "%s3",
Args: []string{
name,
},
}, nil)
if err != nil {
return err
}
defaultDSY0JJ, err := vpc.NewSwitch(ctx, "defaultDSY0JJ", &vpc.SwitchArgs{
VpcId: albExampleTfVpc.ID(),
ZoneId: pulumi.String("cn-beijing-f"),
CidrBlock: pulumi.String("192.168.3.0/24"),
VswitchName: pulumi.String(invokeFormat2.Result),
})
if err != nil {
return err
}
invokeFormat3, err := std.Format(ctx, &std.FormatArgs{
Input: "%s4",
Args: []string{
name,
},
}, nil)
if err != nil {
return err
}
defaultDYswYo, err := alb.NewLoadBalancer(ctx, "defaultDYswYo", &alb.LoadBalancerArgs{
LoadBalancerName: pulumi.String(invokeFormat3.Result),
LoadBalancerEdition: pulumi.String("Standard"),
VpcId: albExampleTfVpc.ID(),
LoadBalancerBillingConfig: &alb.LoadBalancerLoadBalancerBillingConfigArgs{
PayType: pulumi.String("PayAsYouGo"),
},
AddressType: pulumi.String("Intranet"),
AddressAllocatedMode: pulumi.String("Fixed"),
ZoneMappings: alb.LoadBalancerZoneMappingArray{
&alb.LoadBalancerZoneMappingArgs{
VswitchId: defaultDSY0JJ.ID(),
ZoneId: defaultDSY0JJ.ZoneId,
},
&alb.LoadBalancerZoneMappingArgs{
VswitchId: albExampleTfJ.ID(),
ZoneId: albExampleTfJ.ZoneId,
},
&alb.LoadBalancerZoneMappingArgs{
VswitchId: albExampleTfK.ID(),
ZoneId: albExampleTfK.ZoneId,
},
},
})
if err != nil {
return err
}
_, err = alb.NewLoadBalancerAccessLogConfigAttachment(ctx, "default", &alb.LoadBalancerAccessLogConfigAttachmentArgs{
LogStore: pulumi.Sprintf("%v-%v", name, _default.Result),
LoadBalancerId: defaultDYswYo.ID(),
LogProject: pulumi.Sprintf("%v-%v", name, _default.Result),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new Random.Index.Integer("default", new()
{
Min = 100000,
Max = 999999,
});
var albExampleTfVpc = new AliCloud.Vpc.Network("alb_example_tf_vpc", new()
{
VpcName = name,
CidrBlock = "192.168.0.0/16",
});
var albExampleTfJ = new AliCloud.Vpc.Switch("alb_example_tf_j", new()
{
VpcId = albExampleTfVpc.Id,
ZoneId = "cn-beijing-j",
CidrBlock = "192.168.1.0/24",
VswitchName = Std.Format.Invoke(new()
{
Input = "%s1",
Args = new[]
{
name,
},
}).Apply(invoke => invoke.Result),
});
var albExampleTfK = new AliCloud.Vpc.Switch("alb_example_tf_k", new()
{
VpcId = albExampleTfVpc.Id,
ZoneId = "cn-beijing-k",
CidrBlock = "192.168.2.0/24",
VswitchName = Std.Format.Invoke(new()
{
Input = "%s2",
Args = new[]
{
name,
},
}).Apply(invoke => invoke.Result),
});
var defaultDSY0JJ = new AliCloud.Vpc.Switch("defaultDSY0JJ", new()
{
VpcId = albExampleTfVpc.Id,
ZoneId = "cn-beijing-f",
CidrBlock = "192.168.3.0/24",
VswitchName = Std.Format.Invoke(new()
{
Input = "%s3",
Args = new[]
{
name,
},
}).Apply(invoke => invoke.Result),
});
var defaultDYswYo = new AliCloud.Alb.LoadBalancer("defaultDYswYo", new()
{
LoadBalancerName = Std.Format.Invoke(new()
{
Input = "%s4",
Args = new[]
{
name,
},
}).Apply(invoke => invoke.Result),
LoadBalancerEdition = "Standard",
VpcId = albExampleTfVpc.Id,
LoadBalancerBillingConfig = new AliCloud.Alb.Inputs.LoadBalancerLoadBalancerBillingConfigArgs
{
PayType = "PayAsYouGo",
},
AddressType = "Intranet",
AddressAllocatedMode = "Fixed",
ZoneMappings = new[]
{
new AliCloud.Alb.Inputs.LoadBalancerZoneMappingArgs
{
VswitchId = defaultDSY0JJ.Id,
ZoneId = defaultDSY0JJ.ZoneId,
},
new AliCloud.Alb.Inputs.LoadBalancerZoneMappingArgs
{
VswitchId = albExampleTfJ.Id,
ZoneId = albExampleTfJ.ZoneId,
},
new AliCloud.Alb.Inputs.LoadBalancerZoneMappingArgs
{
VswitchId = albExampleTfK.Id,
ZoneId = albExampleTfK.ZoneId,
},
},
});
var defaultLoadBalancerAccessLogConfigAttachment = new AliCloud.Alb.LoadBalancerAccessLogConfigAttachment("default", new()
{
LogStore = $"{name}-{@default.Result}",
LoadBalancerId = defaultDYswYo.Id,
LogProject = $"{name}-{@default.Result}",
});
});
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.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.FormatArgs;
import com.pulumi.alicloud.alb.LoadBalancer;
import com.pulumi.alicloud.alb.LoadBalancerArgs;
import com.pulumi.alicloud.alb.inputs.LoadBalancerLoadBalancerBillingConfigArgs;
import com.pulumi.alicloud.alb.inputs.LoadBalancerZoneMappingArgs;
import com.pulumi.alicloud.alb.LoadBalancerAccessLogConfigAttachment;
import com.pulumi.alicloud.alb.LoadBalancerAccessLogConfigAttachmentArgs;
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 Integer("default", IntegerArgs.builder()
.min(100000)
.max(999999)
.build());
var albExampleTfVpc = new Network("albExampleTfVpc", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("192.168.0.0/16")
.build());
var albExampleTfJ = new Switch("albExampleTfJ", SwitchArgs.builder()
.vpcId(albExampleTfVpc.id())
.zoneId("cn-beijing-j")
.cidrBlock("192.168.1.0/24")
.vswitchName(StdFunctions.format(FormatArgs.builder()
.input("%s1")
.args(name)
.build()).result())
.build());
var albExampleTfK = new Switch("albExampleTfK", SwitchArgs.builder()
.vpcId(albExampleTfVpc.id())
.zoneId("cn-beijing-k")
.cidrBlock("192.168.2.0/24")
.vswitchName(StdFunctions.format(FormatArgs.builder()
.input("%s2")
.args(name)
.build()).result())
.build());
var defaultDSY0JJ = new Switch("defaultDSY0JJ", SwitchArgs.builder()
.vpcId(albExampleTfVpc.id())
.zoneId("cn-beijing-f")
.cidrBlock("192.168.3.0/24")
.vswitchName(StdFunctions.format(FormatArgs.builder()
.input("%s3")
.args(name)
.build()).result())
.build());
var defaultDYswYo = new LoadBalancer("defaultDYswYo", LoadBalancerArgs.builder()
.loadBalancerName(StdFunctions.format(FormatArgs.builder()
.input("%s4")
.args(name)
.build()).result())
.loadBalancerEdition("Standard")
.vpcId(albExampleTfVpc.id())
.loadBalancerBillingConfig(LoadBalancerLoadBalancerBillingConfigArgs.builder()
.payType("PayAsYouGo")
.build())
.addressType("Intranet")
.addressAllocatedMode("Fixed")
.zoneMappings(
LoadBalancerZoneMappingArgs.builder()
.vswitchId(defaultDSY0JJ.id())
.zoneId(defaultDSY0JJ.zoneId())
.build(),
LoadBalancerZoneMappingArgs.builder()
.vswitchId(albExampleTfJ.id())
.zoneId(albExampleTfJ.zoneId())
.build(),
LoadBalancerZoneMappingArgs.builder()
.vswitchId(albExampleTfK.id())
.zoneId(albExampleTfK.zoneId())
.build())
.build());
var defaultLoadBalancerAccessLogConfigAttachment = new LoadBalancerAccessLogConfigAttachment("defaultLoadBalancerAccessLogConfigAttachment", LoadBalancerAccessLogConfigAttachmentArgs.builder()
.logStore(String.format("%s-%s", name,default_.result()))
.loadBalancerId(defaultDYswYo.id())
.logProject(String.format("%s-%s", name,default_.result()))
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: random:Integer
properties:
min: 100000
max: 999999
albExampleTfVpc:
type: alicloud:vpc:Network
name: alb_example_tf_vpc
properties:
vpcName: ${name}
cidrBlock: 192.168.0.0/16
albExampleTfJ:
type: alicloud:vpc:Switch
name: alb_example_tf_j
properties:
vpcId: ${albExampleTfVpc.id}
zoneId: cn-beijing-j
cidrBlock: 192.168.1.0/24
vswitchName:
fn::invoke:
function: std:format
arguments:
input: '%s1'
args:
- ${name}
return: result
albExampleTfK:
type: alicloud:vpc:Switch
name: alb_example_tf_k
properties:
vpcId: ${albExampleTfVpc.id}
zoneId: cn-beijing-k
cidrBlock: 192.168.2.0/24
vswitchName:
fn::invoke:
function: std:format
arguments:
input: '%s2'
args:
- ${name}
return: result
defaultDSY0JJ:
type: alicloud:vpc:Switch
properties:
vpcId: ${albExampleTfVpc.id}
zoneId: cn-beijing-f
cidrBlock: 192.168.3.0/24
vswitchName:
fn::invoke:
function: std:format
arguments:
input: '%s3'
args:
- ${name}
return: result
defaultDYswYo:
type: alicloud:alb:LoadBalancer
properties:
loadBalancerName:
fn::invoke:
function: std:format
arguments:
input: '%s4'
args:
- ${name}
return: result
loadBalancerEdition: Standard
vpcId: ${albExampleTfVpc.id}
loadBalancerBillingConfig:
payType: PayAsYouGo
addressType: Intranet
addressAllocatedMode: Fixed
zoneMappings:
- vswitchId: ${defaultDSY0JJ.id}
zoneId: ${defaultDSY0JJ.zoneId}
- vswitchId: ${albExampleTfJ.id}
zoneId: ${albExampleTfJ.zoneId}
- vswitchId: ${albExampleTfK.id}
zoneId: ${albExampleTfK.zoneId}
defaultLoadBalancerAccessLogConfigAttachment:
type: alicloud:alb:LoadBalancerAccessLogConfigAttachment
name: default
properties:
logStore: ${name}-${default.result}
loadBalancerId: ${defaultDYswYo.id}
logProject: ${name}-${default.result}
Create LoadBalancerAccessLogConfigAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadBalancerAccessLogConfigAttachment(name: string, args: LoadBalancerAccessLogConfigAttachmentArgs, opts?: CustomResourceOptions);
@overload
def LoadBalancerAccessLogConfigAttachment(resource_name: str,
args: LoadBalancerAccessLogConfigAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LoadBalancerAccessLogConfigAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
load_balancer_id: Optional[str] = None,
log_project: Optional[str] = None,
log_store: Optional[str] = None)
func NewLoadBalancerAccessLogConfigAttachment(ctx *Context, name string, args LoadBalancerAccessLogConfigAttachmentArgs, opts ...ResourceOption) (*LoadBalancerAccessLogConfigAttachment, error)
public LoadBalancerAccessLogConfigAttachment(string name, LoadBalancerAccessLogConfigAttachmentArgs args, CustomResourceOptions? opts = null)
public LoadBalancerAccessLogConfigAttachment(String name, LoadBalancerAccessLogConfigAttachmentArgs args)
public LoadBalancerAccessLogConfigAttachment(String name, LoadBalancerAccessLogConfigAttachmentArgs args, CustomResourceOptions options)
type: alicloud:alb:LoadBalancerAccessLogConfigAttachment
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 LoadBalancerAccessLogConfigAttachmentArgs
- 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 LoadBalancerAccessLogConfigAttachmentArgs
- 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 LoadBalancerAccessLogConfigAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerAccessLogConfigAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadBalancerAccessLogConfigAttachmentArgs
- 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 loadBalancerAccessLogConfigAttachmentResource = new AliCloud.Alb.LoadBalancerAccessLogConfigAttachment("loadBalancerAccessLogConfigAttachmentResource", new()
{
LoadBalancerId = "string",
LogProject = "string",
LogStore = "string",
});
example, err := alb.NewLoadBalancerAccessLogConfigAttachment(ctx, "loadBalancerAccessLogConfigAttachmentResource", &alb.LoadBalancerAccessLogConfigAttachmentArgs{
LoadBalancerId: pulumi.String("string"),
LogProject: pulumi.String("string"),
LogStore: pulumi.String("string"),
})
var loadBalancerAccessLogConfigAttachmentResource = new LoadBalancerAccessLogConfigAttachment("loadBalancerAccessLogConfigAttachmentResource", LoadBalancerAccessLogConfigAttachmentArgs.builder()
.loadBalancerId("string")
.logProject("string")
.logStore("string")
.build());
load_balancer_access_log_config_attachment_resource = alicloud.alb.LoadBalancerAccessLogConfigAttachment("loadBalancerAccessLogConfigAttachmentResource",
load_balancer_id="string",
log_project="string",
log_store="string")
const loadBalancerAccessLogConfigAttachmentResource = new alicloud.alb.LoadBalancerAccessLogConfigAttachment("loadBalancerAccessLogConfigAttachmentResource", {
loadBalancerId: "string",
logProject: "string",
logStore: "string",
});
type: alicloud:alb:LoadBalancerAccessLogConfigAttachment
properties:
loadBalancerId: string
logProject: string
logStore: string
LoadBalancerAccessLogConfigAttachment 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 LoadBalancerAccessLogConfigAttachment resource accepts the following input properties:
- Load
Balancer stringId - The ID of the load balancing instance.
- Log
Project string - The log items shipped by the access log.
- Log
Store string - Logstore for log delivery.
- Load
Balancer stringId - The ID of the load balancing instance.
- Log
Project string - The log items shipped by the access log.
- Log
Store string - Logstore for log delivery.
- load
Balancer StringId - The ID of the load balancing instance.
- log
Project String - The log items shipped by the access log.
- log
Store String - Logstore for log delivery.
- load
Balancer stringId - The ID of the load balancing instance.
- log
Project string - The log items shipped by the access log.
- log
Store string - Logstore for log delivery.
- load_
balancer_ strid - The ID of the load balancing instance.
- log_
project str - The log items shipped by the access log.
- log_
store str - Logstore for log delivery.
- load
Balancer StringId - The ID of the load balancing instance.
- log
Project String - The log items shipped by the access log.
- log
Store String - Logstore for log delivery.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancerAccessLogConfigAttachment resource produces the following output properties:
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The creation time of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The creation time of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LoadBalancerAccessLogConfigAttachment Resource
Get an existing LoadBalancerAccessLogConfigAttachment 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?: LoadBalancerAccessLogConfigAttachmentState, opts?: CustomResourceOptions): LoadBalancerAccessLogConfigAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
load_balancer_id: Optional[str] = None,
log_project: Optional[str] = None,
log_store: Optional[str] = None) -> LoadBalancerAccessLogConfigAttachment
func GetLoadBalancerAccessLogConfigAttachment(ctx *Context, name string, id IDInput, state *LoadBalancerAccessLogConfigAttachmentState, opts ...ResourceOption) (*LoadBalancerAccessLogConfigAttachment, error)
public static LoadBalancerAccessLogConfigAttachment Get(string name, Input<string> id, LoadBalancerAccessLogConfigAttachmentState? state, CustomResourceOptions? opts = null)
public static LoadBalancerAccessLogConfigAttachment get(String name, Output<String> id, LoadBalancerAccessLogConfigAttachmentState state, CustomResourceOptions options)
resources: _: type: alicloud:alb:LoadBalancerAccessLogConfigAttachment get: id: ${id}
- 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.
- Create
Time string - The creation time of the resource
- Load
Balancer stringId - The ID of the load balancing instance.
- Log
Project string - The log items shipped by the access log.
- Log
Store string - Logstore for log delivery.
- Create
Time string - The creation time of the resource
- Load
Balancer stringId - The ID of the load balancing instance.
- Log
Project string - The log items shipped by the access log.
- Log
Store string - Logstore for log delivery.
- create
Time String - The creation time of the resource
- load
Balancer StringId - The ID of the load balancing instance.
- log
Project String - The log items shipped by the access log.
- log
Store String - Logstore for log delivery.
- create
Time string - The creation time of the resource
- load
Balancer stringId - The ID of the load balancing instance.
- log
Project string - The log items shipped by the access log.
- log
Store string - Logstore for log delivery.
- create_
time str - The creation time of the resource
- load_
balancer_ strid - The ID of the load balancing instance.
- log_
project str - The log items shipped by the access log.
- log_
store str - Logstore for log delivery.
- create
Time String - The creation time of the resource
- load
Balancer StringId - The ID of the load balancing instance.
- log
Project String - The log items shipped by the access log.
- log
Store String - Logstore for log delivery.
Import
Application Load Balancer (ALB) Load Balancer Access Log Config Attachment can be imported using the id, e.g.
$ pulumi import alicloud:alb/loadBalancerAccessLogConfigAttachment:LoadBalancerAccessLogConfigAttachment example <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.