Provides a resource to create a TCSS cluster access
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TcssClusterAccess("example", {
clusterId: "cls-fdy7hm1q",
switchOn: true,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TcssClusterAccess("example",
cluster_id="cls-fdy7hm1q",
switch_on=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewTcssClusterAccess(ctx, "example", &tencentcloud.TcssClusterAccessArgs{
ClusterId: pulumi.String("cls-fdy7hm1q"),
SwitchOn: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.TcssClusterAccess("example", new()
{
ClusterId = "cls-fdy7hm1q",
SwitchOn = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TcssClusterAccess;
import com.pulumi.tencentcloud.TcssClusterAccessArgs;
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 example = new TcssClusterAccess("example", TcssClusterAccessArgs.builder()
.clusterId("cls-fdy7hm1q")
.switchOn(true)
.build());
}
}
resources:
example:
type: tencentcloud:TcssClusterAccess
properties:
clusterId: cls-fdy7hm1q
switchOn: true
Create TcssClusterAccess Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TcssClusterAccess(name: string, args: TcssClusterAccessArgs, opts?: CustomResourceOptions);@overload
def TcssClusterAccess(resource_name: str,
args: TcssClusterAccessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TcssClusterAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
switch_on: Optional[bool] = None,
tcss_cluster_access_id: Optional[str] = None,
timeouts: Optional[TcssClusterAccessTimeoutsArgs] = None)func NewTcssClusterAccess(ctx *Context, name string, args TcssClusterAccessArgs, opts ...ResourceOption) (*TcssClusterAccess, error)public TcssClusterAccess(string name, TcssClusterAccessArgs args, CustomResourceOptions? opts = null)
public TcssClusterAccess(String name, TcssClusterAccessArgs args)
public TcssClusterAccess(String name, TcssClusterAccessArgs args, CustomResourceOptions options)
type: tencentcloud:TcssClusterAccess
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 TcssClusterAccessArgs
- 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 TcssClusterAccessArgs
- 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 TcssClusterAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TcssClusterAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TcssClusterAccessArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TcssClusterAccess 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 TcssClusterAccess resource accepts the following input properties:
- Cluster
Id string - Cluster Id.
- Switch
On bool - Whether to enable cluster defend status.
- Tcss
Cluster stringAccess Id - ID of the resource.
- Timeouts
Tcss
Cluster Access Timeouts
- Cluster
Id string - Cluster Id.
- Switch
On bool - Whether to enable cluster defend status.
- Tcss
Cluster stringAccess Id - ID of the resource.
- Timeouts
Tcss
Cluster Access Timeouts Args
- cluster
Id String - Cluster Id.
- switch
On Boolean - Whether to enable cluster defend status.
- tcss
Cluster StringAccess Id - ID of the resource.
- timeouts
Tcss
Cluster Access Timeouts
- cluster
Id string - Cluster Id.
- switch
On boolean - Whether to enable cluster defend status.
- tcss
Cluster stringAccess Id - ID of the resource.
- timeouts
Tcss
Cluster Access Timeouts
- cluster_
id str - Cluster Id.
- switch_
on bool - Whether to enable cluster defend status.
- tcss_
cluster_ straccess_ id - ID of the resource.
- timeouts
Tcss
Cluster Access Timeouts Args
- cluster
Id String - Cluster Id.
- switch
On Boolean - Whether to enable cluster defend status.
- tcss
Cluster StringAccess Id - ID of the resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the TcssClusterAccess resource produces the following output properties:
- Accessed
Status string - Cluster access status.
- Defender
Status string - Cluster defender status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Accessed
Status string - Cluster access status.
- Defender
Status string - Cluster defender status.
- Id string
- The provider-assigned unique ID for this managed resource.
- accessed
Status String - Cluster access status.
- defender
Status String - Cluster defender status.
- id String
- The provider-assigned unique ID for this managed resource.
- accessed
Status string - Cluster access status.
- defender
Status string - Cluster defender status.
- id string
- The provider-assigned unique ID for this managed resource.
- accessed_
status str - Cluster access status.
- defender_
status str - Cluster defender status.
- id str
- The provider-assigned unique ID for this managed resource.
- accessed
Status String - Cluster access status.
- defender
Status String - Cluster defender status.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TcssClusterAccess Resource
Get an existing TcssClusterAccess 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?: TcssClusterAccessState, opts?: CustomResourceOptions): TcssClusterAccess@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accessed_status: Optional[str] = None,
cluster_id: Optional[str] = None,
defender_status: Optional[str] = None,
switch_on: Optional[bool] = None,
tcss_cluster_access_id: Optional[str] = None,
timeouts: Optional[TcssClusterAccessTimeoutsArgs] = None) -> TcssClusterAccessfunc GetTcssClusterAccess(ctx *Context, name string, id IDInput, state *TcssClusterAccessState, opts ...ResourceOption) (*TcssClusterAccess, error)public static TcssClusterAccess Get(string name, Input<string> id, TcssClusterAccessState? state, CustomResourceOptions? opts = null)public static TcssClusterAccess get(String name, Output<String> id, TcssClusterAccessState state, CustomResourceOptions options)resources: _: type: tencentcloud:TcssClusterAccess get: id: ${id}- 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.
- Accessed
Status string - Cluster access status.
- Cluster
Id string - Cluster Id.
- Defender
Status string - Cluster defender status.
- Switch
On bool - Whether to enable cluster defend status.
- Tcss
Cluster stringAccess Id - ID of the resource.
- Timeouts
Tcss
Cluster Access Timeouts
- Accessed
Status string - Cluster access status.
- Cluster
Id string - Cluster Id.
- Defender
Status string - Cluster defender status.
- Switch
On bool - Whether to enable cluster defend status.
- Tcss
Cluster stringAccess Id - ID of the resource.
- Timeouts
Tcss
Cluster Access Timeouts Args
- accessed
Status String - Cluster access status.
- cluster
Id String - Cluster Id.
- defender
Status String - Cluster defender status.
- switch
On Boolean - Whether to enable cluster defend status.
- tcss
Cluster StringAccess Id - ID of the resource.
- timeouts
Tcss
Cluster Access Timeouts
- accessed
Status string - Cluster access status.
- cluster
Id string - Cluster Id.
- defender
Status string - Cluster defender status.
- switch
On boolean - Whether to enable cluster defend status.
- tcss
Cluster stringAccess Id - ID of the resource.
- timeouts
Tcss
Cluster Access Timeouts
- accessed_
status str - Cluster access status.
- cluster_
id str - Cluster Id.
- defender_
status str - Cluster defender status.
- switch_
on bool - Whether to enable cluster defend status.
- tcss_
cluster_ straccess_ id - ID of the resource.
- timeouts
Tcss
Cluster Access Timeouts Args
- accessed
Status String - Cluster access status.
- cluster
Id String - Cluster Id.
- defender
Status String - Cluster defender status.
- switch
On Boolean - Whether to enable cluster defend status.
- tcss
Cluster StringAccess Id - ID of the resource.
- timeouts Property Map
Supporting Types
TcssClusterAccessTimeouts, TcssClusterAccessTimeoutsArgs
Import
TCSS cluster access can be imported using the id, e.g.
$ pulumi import tencentcloud:index/tcssClusterAccess:TcssClusterAccess example cls-fdy7hm1q
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
