Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.27.0 published on Monday, Aug 8, 2022 by Pulumi

EcsSessionManagerStatus

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

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = new AliCloud.Ecs.EcsSessionManagerStatus("default", new AliCloud.Ecs.EcsSessionManagerStatusArgs
        {
            SessionManagerStatusName = "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
	})
}
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());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ecs.EcsSessionManagerStatus("default",
    session_manager_status_name="sessionManagerStatus",
    status="Disabled")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultEcsSessionManagerStatus = new alicloud.ecs.EcsSessionManagerStatus("default", {
    sessionManagerStatusName: "sessionManagerStatus",
    status: "Disabled",
});
resources:
  default:
    type: alicloud:ecs:EcsSessionManagerStatus
    properties:
      sessionManagerStatusName: sessionManagerStatus
      status: Disabled

Create a EcsSessionManagerStatus Resource

new EcsSessionManagerStatus(name: string, args: EcsSessionManagerStatusArgs, opts?: CustomResourceOptions);
@overload
def EcsSessionManagerStatus(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            session_manager_status_name: Optional[str] = None,
                            status: Optional[str] = None)
@overload
def EcsSessionManagerStatus(resource_name: str,
                            args: EcsSessionManagerStatusArgs,
                            opts: Optional[ResourceOptions] = 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.

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.

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

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 an 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>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.