com.pulumi.alicloud.alb.AScript Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.alb;
import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.alb.AScriptArgs;
import com.pulumi.alicloud.alb.inputs.AScriptState;
import com.pulumi.alicloud.alb.outputs.AScriptExtAttribute;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;
/**
* Provides a Alb Ascript resource.
*
* For information about Alb Ascript and how to use it, see [What is AScript](https://www.alibabacloud.com/help/en/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-createascripts).
*
* > **NOTE:** Available since v1.195.0.
*
* ## Import
*
* Alb AScript can be imported using the id, e.g.
*
* ```sh
* $ pulumi import alicloud:alb/aScript:AScript example <id>
* ```
*
*/
@ResourceType(type="alicloud:alb/aScript:AScript")
public class AScript extends com.pulumi.resources.CustomResource {
/**
* The name of AScript.
*
*/
@Export(name="ascriptName", refs={String.class}, tree="[0]")
private Output ascriptName;
/**
* @return The name of AScript.
*
*/
public Output ascriptName() {
return this.ascriptName;
}
/**
* Whether scripts are enabled.
*
*/
@Export(name="enabled", refs={Boolean.class}, tree="[0]")
private Output enabled;
/**
* @return Whether scripts are enabled.
*
*/
public Output enabled() {
return this.enabled;
}
/**
* Whether extension parameters are enabled.
*
*/
@Export(name="extAttributeEnabled", refs={Boolean.class}, tree="[0]")
private Output extAttributeEnabled;
/**
* @return Whether extension parameters are enabled.
*
*/
public Output extAttributeEnabled() {
return this.extAttributeEnabled;
}
/**
* Extended attribute list. See `ext_attributes` below for details.
*
*/
@Export(name="extAttributes", refs={List.class,AScriptExtAttribute.class}, tree="[0,1]")
private Output> extAttributes;
/**
* @return Extended attribute list. See `ext_attributes` below for details.
*
*/
public Output> extAttributes() {
return this.extAttributes;
}
/**
* Listener ID of script attribution
*
*/
@Export(name="listenerId", refs={String.class}, tree="[0]")
private Output listenerId;
/**
* @return Listener ID of script attribution
*
*/
public Output listenerId() {
return this.listenerId;
}
/**
* The ID of load balancer instance.
*
*/
@Export(name="loadBalancerId", refs={String.class}, tree="[0]")
private Output loadBalancerId;
/**
* @return The ID of load balancer instance.
*
*/
public Output loadBalancerId() {
return this.loadBalancerId;
}
/**
* Execution location of AScript.
*
*/
@Export(name="position", refs={String.class}, tree="[0]")
private Output position;
/**
* @return Execution location of AScript.
*
*/
public Output position() {
return this.position;
}
/**
* The content of AScript.
*
*/
@Export(name="scriptContent", refs={String.class}, tree="[0]")
private Output scriptContent;
/**
* @return The content of AScript.
*
*/
public Output scriptContent() {
return this.scriptContent;
}
/**
* The status of AScript.
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return The status of AScript.
*
*/
public Output status() {
return this.status;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public AScript(String name) {
this(name, AScriptArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public AScript(String name, AScriptArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public AScript(String name, AScriptArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:alb/aScript:AScript", name, args == null ? AScriptArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
}
private AScript(String name, Output id, @Nullable AScriptState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:alb/aScript:AScript", name, state, makeResourceOptions(options, id));
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static AScript get(String name, Output id, @Nullable AScriptState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new AScript(name, id, state, options);
}
}