1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. alb
  5. AScript
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.alb.AScript

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a Alb Ascript resource.

    For information about Alb Ascript and how to use it, see What is AScript.

    NOTE: Available since v1.195.0.

    Create AScript Resource

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

    Constructor syntax

    new AScript(name: string, args: AScriptArgs, opts?: CustomResourceOptions);
    @overload
    def AScript(resource_name: str,
                args: AScriptArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def AScript(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                ascript_name: Optional[str] = None,
                enabled: Optional[bool] = None,
                listener_id: Optional[str] = None,
                position: Optional[str] = None,
                script_content: Optional[str] = None,
                ext_attribute_enabled: Optional[bool] = None,
                ext_attributes: Optional[Sequence[AScriptExtAttributeArgs]] = None)
    func NewAScript(ctx *Context, name string, args AScriptArgs, opts ...ResourceOption) (*AScript, error)
    public AScript(string name, AScriptArgs args, CustomResourceOptions? opts = null)
    public AScript(String name, AScriptArgs args)
    public AScript(String name, AScriptArgs args, CustomResourceOptions options)
    
    type: alicloud:alb:AScript
    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 AScriptArgs
    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 AScriptArgs
    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 AScriptArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AScriptArgs
    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 ascriptResource = new AliCloud.Alb.AScript("ascriptResource", new()
    {
        AscriptName = "string",
        Enabled = false,
        ListenerId = "string",
        Position = "string",
        ScriptContent = "string",
        ExtAttributeEnabled = false,
        ExtAttributes = new[]
        {
            new AliCloud.Alb.Inputs.AScriptExtAttributeArgs
            {
                AttributeKey = "string",
                AttributeValue = "string",
            },
        },
    });
    
    example, err := alb.NewAScript(ctx, "ascriptResource", &alb.AScriptArgs{
    	AscriptName:         pulumi.String("string"),
    	Enabled:             pulumi.Bool(false),
    	ListenerId:          pulumi.String("string"),
    	Position:            pulumi.String("string"),
    	ScriptContent:       pulumi.String("string"),
    	ExtAttributeEnabled: pulumi.Bool(false),
    	ExtAttributes: alb.AScriptExtAttributeArray{
    		&alb.AScriptExtAttributeArgs{
    			AttributeKey:   pulumi.String("string"),
    			AttributeValue: pulumi.String("string"),
    		},
    	},
    })
    
    var ascriptResource = new AScript("ascriptResource", AScriptArgs.builder()
        .ascriptName("string")
        .enabled(false)
        .listenerId("string")
        .position("string")
        .scriptContent("string")
        .extAttributeEnabled(false)
        .extAttributes(AScriptExtAttributeArgs.builder()
            .attributeKey("string")
            .attributeValue("string")
            .build())
        .build());
    
    ascript_resource = alicloud.alb.AScript("ascriptResource",
        ascript_name="string",
        enabled=False,
        listener_id="string",
        position="string",
        script_content="string",
        ext_attribute_enabled=False,
        ext_attributes=[{
            "attribute_key": "string",
            "attribute_value": "string",
        }])
    
    const ascriptResource = new alicloud.alb.AScript("ascriptResource", {
        ascriptName: "string",
        enabled: false,
        listenerId: "string",
        position: "string",
        scriptContent: "string",
        extAttributeEnabled: false,
        extAttributes: [{
            attributeKey: "string",
            attributeValue: "string",
        }],
    });
    
    type: alicloud:alb:AScript
    properties:
        ascriptName: string
        enabled: false
        extAttributeEnabled: false
        extAttributes:
            - attributeKey: string
              attributeValue: string
        listenerId: string
        position: string
        scriptContent: string
    

    AScript 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 AScript resource accepts the following input properties:

    AscriptName string
    The name of AScript.
    Enabled bool
    Whether scripts are enabled.
    ListenerId string
    Listener ID of script attribution
    Position string
    Execution location of AScript.
    ScriptContent string
    The content of AScript.
    ExtAttributeEnabled bool
    Whether extension parameters are enabled.
    ExtAttributes List<Pulumi.AliCloud.Alb.Inputs.AScriptExtAttribute>
    Extended attribute list. See ext_attributes below for details.
    AscriptName string
    The name of AScript.
    Enabled bool
    Whether scripts are enabled.
    ListenerId string
    Listener ID of script attribution
    Position string
    Execution location of AScript.
    ScriptContent string
    The content of AScript.
    ExtAttributeEnabled bool
    Whether extension parameters are enabled.
    ExtAttributes []AScriptExtAttributeArgs
    Extended attribute list. See ext_attributes below for details.
    ascriptName String
    The name of AScript.
    enabled Boolean
    Whether scripts are enabled.
    listenerId String
    Listener ID of script attribution
    position String
    Execution location of AScript.
    scriptContent String
    The content of AScript.
    extAttributeEnabled Boolean
    Whether extension parameters are enabled.
    extAttributes List<AScriptExtAttribute>
    Extended attribute list. See ext_attributes below for details.
    ascriptName string
    The name of AScript.
    enabled boolean
    Whether scripts are enabled.
    listenerId string
    Listener ID of script attribution
    position string
    Execution location of AScript.
    scriptContent string
    The content of AScript.
    extAttributeEnabled boolean
    Whether extension parameters are enabled.
    extAttributes AScriptExtAttribute[]
    Extended attribute list. See ext_attributes below for details.
    ascript_name str
    The name of AScript.
    enabled bool
    Whether scripts are enabled.
    listener_id str
    Listener ID of script attribution
    position str
    Execution location of AScript.
    script_content str
    The content of AScript.
    ext_attribute_enabled bool
    Whether extension parameters are enabled.
    ext_attributes Sequence[AScriptExtAttributeArgs]
    Extended attribute list. See ext_attributes below for details.
    ascriptName String
    The name of AScript.
    enabled Boolean
    Whether scripts are enabled.
    listenerId String
    Listener ID of script attribution
    position String
    Execution location of AScript.
    scriptContent String
    The content of AScript.
    extAttributeEnabled Boolean
    Whether extension parameters are enabled.
    extAttributes List<Property Map>
    Extended attribute list. See ext_attributes below for details.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LoadBalancerId string
    The ID of load balancer instance.
    Status string
    The status of AScript.
    Id string
    The provider-assigned unique ID for this managed resource.
    LoadBalancerId string
    The ID of load balancer instance.
    Status string
    The status of AScript.
    id String
    The provider-assigned unique ID for this managed resource.
    loadBalancerId String
    The ID of load balancer instance.
    status String
    The status of AScript.
    id string
    The provider-assigned unique ID for this managed resource.
    loadBalancerId string
    The ID of load balancer instance.
    status string
    The status of AScript.
    id str
    The provider-assigned unique ID for this managed resource.
    load_balancer_id str
    The ID of load balancer instance.
    status str
    The status of AScript.
    id String
    The provider-assigned unique ID for this managed resource.
    loadBalancerId String
    The ID of load balancer instance.
    status String
    The status of AScript.

    Look up Existing AScript Resource

    Get an existing AScript 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?: AScriptState, opts?: CustomResourceOptions): AScript
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ascript_name: Optional[str] = None,
            enabled: Optional[bool] = None,
            ext_attribute_enabled: Optional[bool] = None,
            ext_attributes: Optional[Sequence[AScriptExtAttributeArgs]] = None,
            listener_id: Optional[str] = None,
            load_balancer_id: Optional[str] = None,
            position: Optional[str] = None,
            script_content: Optional[str] = None,
            status: Optional[str] = None) -> AScript
    func GetAScript(ctx *Context, name string, id IDInput, state *AScriptState, opts ...ResourceOption) (*AScript, error)
    public static AScript Get(string name, Input<string> id, AScriptState? state, CustomResourceOptions? opts = null)
    public static AScript get(String name, Output<String> id, AScriptState 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:
    AscriptName string
    The name of AScript.
    Enabled bool
    Whether scripts are enabled.
    ExtAttributeEnabled bool
    Whether extension parameters are enabled.
    ExtAttributes List<Pulumi.AliCloud.Alb.Inputs.AScriptExtAttribute>
    Extended attribute list. See ext_attributes below for details.
    ListenerId string
    Listener ID of script attribution
    LoadBalancerId string
    The ID of load balancer instance.
    Position string
    Execution location of AScript.
    ScriptContent string
    The content of AScript.
    Status string
    The status of AScript.
    AscriptName string
    The name of AScript.
    Enabled bool
    Whether scripts are enabled.
    ExtAttributeEnabled bool
    Whether extension parameters are enabled.
    ExtAttributes []AScriptExtAttributeArgs
    Extended attribute list. See ext_attributes below for details.
    ListenerId string
    Listener ID of script attribution
    LoadBalancerId string
    The ID of load balancer instance.
    Position string
    Execution location of AScript.
    ScriptContent string
    The content of AScript.
    Status string
    The status of AScript.
    ascriptName String
    The name of AScript.
    enabled Boolean
    Whether scripts are enabled.
    extAttributeEnabled Boolean
    Whether extension parameters are enabled.
    extAttributes List<AScriptExtAttribute>
    Extended attribute list. See ext_attributes below for details.
    listenerId String
    Listener ID of script attribution
    loadBalancerId String
    The ID of load balancer instance.
    position String
    Execution location of AScript.
    scriptContent String
    The content of AScript.
    status String
    The status of AScript.
    ascriptName string
    The name of AScript.
    enabled boolean
    Whether scripts are enabled.
    extAttributeEnabled boolean
    Whether extension parameters are enabled.
    extAttributes AScriptExtAttribute[]
    Extended attribute list. See ext_attributes below for details.
    listenerId string
    Listener ID of script attribution
    loadBalancerId string
    The ID of load balancer instance.
    position string
    Execution location of AScript.
    scriptContent string
    The content of AScript.
    status string
    The status of AScript.
    ascript_name str
    The name of AScript.
    enabled bool
    Whether scripts are enabled.
    ext_attribute_enabled bool
    Whether extension parameters are enabled.
    ext_attributes Sequence[AScriptExtAttributeArgs]
    Extended attribute list. See ext_attributes below for details.
    listener_id str
    Listener ID of script attribution
    load_balancer_id str
    The ID of load balancer instance.
    position str
    Execution location of AScript.
    script_content str
    The content of AScript.
    status str
    The status of AScript.
    ascriptName String
    The name of AScript.
    enabled Boolean
    Whether scripts are enabled.
    extAttributeEnabled Boolean
    Whether extension parameters are enabled.
    extAttributes List<Property Map>
    Extended attribute list. See ext_attributes below for details.
    listenerId String
    Listener ID of script attribution
    loadBalancerId String
    The ID of load balancer instance.
    position String
    Execution location of AScript.
    scriptContent String
    The content of AScript.
    status String
    The status of AScript.

    Supporting Types

    AScriptExtAttribute, AScriptExtAttributeArgs

    AttributeKey string
    The key of the extended attribute.
    AttributeValue string
    The value of the extended attribute.
    AttributeKey string
    The key of the extended attribute.
    AttributeValue string
    The value of the extended attribute.
    attributeKey String
    The key of the extended attribute.
    attributeValue String
    The value of the extended attribute.
    attributeKey string
    The key of the extended attribute.
    attributeValue string
    The value of the extended attribute.
    attribute_key str
    The key of the extended attribute.
    attribute_value str
    The value of the extended attribute.
    attributeKey String
    The key of the extended attribute.
    attributeValue String
    The value of the extended attribute.

    Import

    Alb AScript can be imported using the id, e.g.

    $ pulumi import alicloud:alb/aScript:AScript 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi