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

alicloud.ecs.EcsSessionManagerStatus

Explore with Pulumi AI

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

    Provides a ECS Session Manager Status resource.

    For information about ECS Session Manager Status and how to use it, see What is Session Manager Status.

    NOTE: Available in v1.148.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.ecs.EcsSessionManagerStatus("default", {
        sessionManagerStatusName: "sessionManagerStatus",
        status: "Disabled",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.ecs.EcsSessionManagerStatus("default",
        session_manager_status_name="sessionManagerStatus",
        status="Disabled")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ecs.NewEcsSessionManagerStatus(ctx, "default", &ecs.EcsSessionManagerStatusArgs{
    			SessionManagerStatusName: pulumi.String("sessionManagerStatus"),
    			Status:                   pulumi.String("Disabled"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.Ecs.EcsSessionManagerStatus("default", new()
        {
            SessionManagerStatusName = "sessionManagerStatus",
            Status = "Disabled",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ecs.EcsSessionManagerStatus;
    import com.pulumi.alicloud.ecs.EcsSessionManagerStatusArgs;
    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) {
            var default_ = new EcsSessionManagerStatus("default", EcsSessionManagerStatusArgs.builder()
                .sessionManagerStatusName("sessionManagerStatus")
                .status("Disabled")
                .build());
    
        }
    }
    
    resources:
      default:
        type: alicloud:ecs:EcsSessionManagerStatus
        properties:
          sessionManagerStatusName: sessionManagerStatus
          status: Disabled
    

    Create EcsSessionManagerStatus Resource

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

    Constructor syntax

    new EcsSessionManagerStatus(name: string, args: EcsSessionManagerStatusArgs, opts?: CustomResourceOptions);
    @overload
    def EcsSessionManagerStatus(resource_name: str,
                                args: EcsSessionManagerStatusArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def EcsSessionManagerStatus(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                session_manager_status_name: Optional[str] = None,
                                status: Optional[str] = None)
    func NewEcsSessionManagerStatus(ctx *Context, name string, args EcsSessionManagerStatusArgs, opts ...ResourceOption) (*EcsSessionManagerStatus, error)
    public EcsSessionManagerStatus(string name, EcsSessionManagerStatusArgs args, CustomResourceOptions? opts = null)
    public EcsSessionManagerStatus(String name, EcsSessionManagerStatusArgs args)
    public EcsSessionManagerStatus(String name, EcsSessionManagerStatusArgs args, CustomResourceOptions options)
    
    type: alicloud:ecs:EcsSessionManagerStatus
    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 EcsSessionManagerStatusArgs
    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 EcsSessionManagerStatusArgs
    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 EcsSessionManagerStatusArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EcsSessionManagerStatusArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EcsSessionManagerStatusArgs
    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 ecsSessionManagerStatusResource = new AliCloud.Ecs.EcsSessionManagerStatus("ecsSessionManagerStatusResource", new()
    {
        SessionManagerStatusName = "string",
        Status = "string",
    });
    
    example, err := ecs.NewEcsSessionManagerStatus(ctx, "ecsSessionManagerStatusResource", &ecs.EcsSessionManagerStatusArgs{
    	SessionManagerStatusName: pulumi.String("string"),
    	Status:                   pulumi.String("string"),
    })
    
    var ecsSessionManagerStatusResource = new EcsSessionManagerStatus("ecsSessionManagerStatusResource", EcsSessionManagerStatusArgs.builder()
        .sessionManagerStatusName("string")
        .status("string")
        .build());
    
    ecs_session_manager_status_resource = alicloud.ecs.EcsSessionManagerStatus("ecsSessionManagerStatusResource",
        session_manager_status_name="string",
        status="string")
    
    const ecsSessionManagerStatusResource = new alicloud.ecs.EcsSessionManagerStatus("ecsSessionManagerStatusResource", {
        sessionManagerStatusName: "string",
        status: "string",
    });
    
    type: alicloud:ecs:EcsSessionManagerStatus
    properties:
        sessionManagerStatusName: string
        status: string
    

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

    SessionManagerStatusName string
    The name of the resource. Valid values: sessionManagerStatus.
    Status string
    The status of the resource. Valid values: Disabled, Enabled.
    SessionManagerStatusName string
    The name of the resource. Valid values: sessionManagerStatus.
    Status string
    The status of the resource. Valid values: Disabled, Enabled.
    sessionManagerStatusName String
    The name of the resource. Valid values: sessionManagerStatus.
    status String
    The status of the resource. Valid values: Disabled, Enabled.
    sessionManagerStatusName string
    The name of the resource. Valid values: sessionManagerStatus.
    status string
    The status of the resource. Valid values: Disabled, Enabled.
    session_manager_status_name str
    The name of the resource. Valid values: sessionManagerStatus.
    status str
    The status of the resource. Valid values: Disabled, Enabled.
    sessionManagerStatusName String
    The name of the resource. Valid values: sessionManagerStatus.
    status String
    The status of the resource. Valid values: Disabled, Enabled.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EcsSessionManagerStatus Resource

    Get an existing EcsSessionManagerStatus 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?: EcsSessionManagerStatusState, opts?: CustomResourceOptions): EcsSessionManagerStatus
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            session_manager_status_name: Optional[str] = None,
            status: Optional[str] = None) -> EcsSessionManagerStatus
    func GetEcsSessionManagerStatus(ctx *Context, name string, id IDInput, state *EcsSessionManagerStatusState, opts ...ResourceOption) (*EcsSessionManagerStatus, error)
    public static EcsSessionManagerStatus Get(string name, Input<string> id, EcsSessionManagerStatusState? state, CustomResourceOptions? opts = null)
    public static EcsSessionManagerStatus get(String name, Output<String> id, EcsSessionManagerStatusState 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:
    SessionManagerStatusName string
    The name of the resource. Valid values: sessionManagerStatus.
    Status string
    The status of the resource. Valid values: Disabled, Enabled.
    SessionManagerStatusName string
    The name of the resource. Valid values: sessionManagerStatus.
    Status string
    The status of the resource. Valid values: Disabled, Enabled.
    sessionManagerStatusName String
    The name of the resource. Valid values: sessionManagerStatus.
    status String
    The status of the resource. Valid values: Disabled, Enabled.
    sessionManagerStatusName string
    The name of the resource. Valid values: sessionManagerStatus.
    status string
    The status of the resource. Valid values: Disabled, Enabled.
    session_manager_status_name str
    The name of the resource. Valid values: sessionManagerStatus.
    status str
    The status of the resource. Valid values: Disabled, Enabled.
    sessionManagerStatusName String
    The name of the resource. Valid values: sessionManagerStatus.
    status String
    The status of the resource. Valid values: Disabled, Enabled.

    Import

    ECS Session Manager Status can be imported using the id, e.g.

    $ pulumi import alicloud:ecs/ecsSessionManagerStatus:EcsSessionManagerStatus example <session_manager_status_name>
    

    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