Provides a resource to manage tls account
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
// 示例1:使用资源方式获取和管理 TLS 账号
// 资源创建会自动激活 TLS 账号(如果未激活)
const example = new volcengine.tls.Account("example", {});
export const accountResourceArchVersion = example.archVersion;
export const accountResourceStatus = example.status;
import pulumi
import pulumi_volcengine as volcengine
# 示例1:使用资源方式获取和管理 TLS 账号
# 资源创建会自动激活 TLS 账号(如果未激活)
example = volcengine.tls.Account("example")
pulumi.export("accountResourceArchVersion", example.arch_version)
pulumi.export("accountResourceStatus", example.status)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// 示例1:使用资源方式获取和管理 TLS 账号
// 资源创建会自动激活 TLS 账号(如果未激活)
example, err := tls.NewAccount(ctx, "example", nil)
if err != nil {
return err
}
ctx.Export("accountResourceArchVersion", example.ArchVersion)
ctx.Export("accountResourceStatus", example.Status)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
// 示例1:使用资源方式获取和管理 TLS 账号
// 资源创建会自动激活 TLS 账号(如果未激活)
var example = new Volcengine.Tls.Account("example");
return new Dictionary<string, object?>
{
["accountResourceArchVersion"] = example.ArchVersion,
["accountResourceStatus"] = example.Status,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.Account;
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) {
// 示例1:使用资源方式获取和管理 TLS 账号
// 资源创建会自动激活 TLS 账号(如果未激活)
var example = new Account("example");
ctx.export("accountResourceArchVersion", example.archVersion());
ctx.export("accountResourceStatus", example.status());
}
}
resources:
# 示例1:使用资源方式获取和管理 TLS 账号
# 资源创建会自动激活 TLS 账号(如果未激活)
example:
type: volcengine:tls:Account
outputs:
# 输出资源结果
accountResourceArchVersion: ${example.archVersion}
accountResourceStatus: ${example.status}
Create Account Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Account(name: string, args?: AccountArgs, opts?: CustomResourceOptions);@overload
def Account(resource_name: str,
args: Optional[AccountArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None)func NewAccount(ctx *Context, name string, args *AccountArgs, opts ...ResourceOption) (*Account, error)public Account(string name, AccountArgs? args = null, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: volcengine:tls:Account
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 AccountArgs
- 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 AccountArgs
- 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 AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountArgs
- 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 exampleaccountResourceResourceFromTlsaccount = new Volcengine.Tls.Account("exampleaccountResourceResourceFromTlsaccount");
example, err := tls.NewAccount(ctx, "exampleaccountResourceResourceFromTlsaccount", nil)
var exampleaccountResourceResourceFromTlsaccount = new com.pulumi.volcengine.tls.Account("exampleaccountResourceResourceFromTlsaccount");
exampleaccount_resource_resource_from_tlsaccount = volcengine.tls.Account("exampleaccountResourceResourceFromTlsaccount")
const exampleaccountResourceResourceFromTlsaccount = new volcengine.tls.Account("exampleaccountResourceResourceFromTlsaccount", {});
type: volcengine:tls:Account
properties: {}
Account 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 Account resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- Arch
Version string - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- Arch
Version string - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- arch
Version String - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- arch
Version string - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- arch_
version str - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- arch
Version String - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
Look up Existing Account Resource
Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arch_version: Optional[str] = None,
status: Optional[str] = None) -> Accountfunc GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)resources: _: type: volcengine:tls:Account 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.
- Arch
Version string - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- Status string
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- Arch
Version string - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- Status string
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- arch
Version String - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- status String
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- arch
Version string - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- status string
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- arch_
version str - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- status str
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
- arch
Version String - The version of the log service architecture. Valid values: 2.0 (new architecture), 1.0 (old architecture).
- status String
- The status of the log service. Valid values: Activated (already activated), NonActivated (not activated).
Import
The TlsAccount is not support import.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
