1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. alb
  5. LoadBalancerAccessLogConfigAttachment
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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.

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 This property is required. string
The unique name of the resource.
args This property is required. LoadBalancerAccessLogConfigAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. LoadBalancerAccessLogConfigAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LoadBalancerAccessLogConfigAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
example, err := alb.NewLoadBalancerAccessLogConfigAttachment(ctx, "loadBalancerAccessLogConfigAttachmentResource", &alb.LoadBalancerAccessLogConfigAttachmentArgs{
	LoadBalancerId: pulumi.String("string"),
	LogProject:     pulumi.String("string"),
	LogStore:       pulumi.String("string"),
})
Copy
var loadBalancerAccessLogConfigAttachmentResource = new LoadBalancerAccessLogConfigAttachment("loadBalancerAccessLogConfigAttachmentResource", LoadBalancerAccessLogConfigAttachmentArgs.builder()
    .loadBalancerId("string")
    .logProject("string")
    .logStore("string")
    .build());
Copy
load_balancer_access_log_config_attachment_resource = alicloud.alb.LoadBalancerAccessLogConfigAttachment("loadBalancerAccessLogConfigAttachmentResource",
    load_balancer_id="string",
    log_project="string",
    log_store="string")
Copy
const loadBalancerAccessLogConfigAttachmentResource = new alicloud.alb.LoadBalancerAccessLogConfigAttachment("loadBalancerAccessLogConfigAttachmentResource", {
    loadBalancerId: "string",
    logProject: "string",
    logStore: "string",
});
Copy
type: alicloud:alb:LoadBalancerAccessLogConfigAttachment
properties:
    loadBalancerId: string
    logProject: string
    logStore: string
Copy

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:

LoadBalancerId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the load balancing instance.
LogProject
This property is required.
Changes to this property will trigger replacement.
string
The log items shipped by the access log.
LogStore
This property is required.
Changes to this property will trigger replacement.
string
Logstore for log delivery.
LoadBalancerId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the load balancing instance.
LogProject
This property is required.
Changes to this property will trigger replacement.
string
The log items shipped by the access log.
LogStore
This property is required.
Changes to this property will trigger replacement.
string
Logstore for log delivery.
loadBalancerId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the load balancing instance.
logProject
This property is required.
Changes to this property will trigger replacement.
String
The log items shipped by the access log.
logStore
This property is required.
Changes to this property will trigger replacement.
String
Logstore for log delivery.
loadBalancerId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the load balancing instance.
logProject
This property is required.
Changes to this property will trigger replacement.
string
The log items shipped by the access log.
logStore
This property is required.
Changes to this property will trigger replacement.
string
Logstore for log delivery.
load_balancer_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the load balancing instance.
log_project
This property is required.
Changes to this property will trigger replacement.
str
The log items shipped by the access log.
log_store
This property is required.
Changes to this property will trigger replacement.
str
Logstore for log delivery.
loadBalancerId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the load balancing instance.
logProject
This property is required.
Changes to this property will trigger replacement.
String
The log items shipped by the access log.
logStore
This property is required.
Changes to this property will trigger replacement.
String
Logstore for log delivery.

Outputs

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

CreateTime string
The creation time of the resource
Id string
The provider-assigned unique ID for this managed resource.
CreateTime string
The creation time of the resource
Id string
The provider-assigned unique ID for this managed resource.
createTime String
The creation time of the resource
id String
The provider-assigned unique ID for this managed resource.
createTime 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.
createTime 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreateTime string
The creation time of the resource
LoadBalancerId Changes to this property will trigger replacement. string
The ID of the load balancing instance.
LogProject Changes to this property will trigger replacement. string
The log items shipped by the access log.
LogStore Changes to this property will trigger replacement. string
Logstore for log delivery.
CreateTime string
The creation time of the resource
LoadBalancerId Changes to this property will trigger replacement. string
The ID of the load balancing instance.
LogProject Changes to this property will trigger replacement. string
The log items shipped by the access log.
LogStore Changes to this property will trigger replacement. string
Logstore for log delivery.
createTime String
The creation time of the resource
loadBalancerId Changes to this property will trigger replacement. String
The ID of the load balancing instance.
logProject Changes to this property will trigger replacement. String
The log items shipped by the access log.
logStore Changes to this property will trigger replacement. String
Logstore for log delivery.
createTime string
The creation time of the resource
loadBalancerId Changes to this property will trigger replacement. string
The ID of the load balancing instance.
logProject Changes to this property will trigger replacement. string
The log items shipped by the access log.
logStore Changes to this property will trigger replacement. string
Logstore for log delivery.
create_time str
The creation time of the resource
load_balancer_id Changes to this property will trigger replacement. str
The ID of the load balancing instance.
log_project Changes to this property will trigger replacement. str
The log items shipped by the access log.
log_store Changes to this property will trigger replacement. str
Logstore for log delivery.
createTime String
The creation time of the resource
loadBalancerId Changes to this property will trigger replacement. String
The ID of the load balancing instance.
logProject Changes to this property will trigger replacement. String
The log items shipped by the access log.
logStore Changes to this property will trigger replacement. 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>
Copy

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.