tencentcloud.PtsTmpKeyGenerate
Explore with Pulumi AI
Provides a resource to create a pts tmp_key
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const tmpKey = new tencentcloud.PtsTmpKeyGenerate("tmpKey", {
projectId: "project-1b0zqmhg",
scenarioId: "scenario-abc",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
tmp_key = tencentcloud.PtsTmpKeyGenerate("tmpKey",
project_id="project-1b0zqmhg",
scenario_id="scenario-abc")
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.NewPtsTmpKeyGenerate(ctx, "tmpKey", &tencentcloud.PtsTmpKeyGenerateArgs{
ProjectId: pulumi.String("project-1b0zqmhg"),
ScenarioId: pulumi.String("scenario-abc"),
})
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 tmpKey = new Tencentcloud.PtsTmpKeyGenerate("tmpKey", new()
{
ProjectId = "project-1b0zqmhg",
ScenarioId = "scenario-abc",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PtsTmpKeyGenerate;
import com.pulumi.tencentcloud.PtsTmpKeyGenerateArgs;
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 tmpKey = new PtsTmpKeyGenerate("tmpKey", PtsTmpKeyGenerateArgs.builder()
.projectId("project-1b0zqmhg")
.scenarioId("scenario-abc")
.build());
}
}
resources:
tmpKey:
type: tencentcloud:PtsTmpKeyGenerate
properties:
projectId: project-1b0zqmhg
scenarioId: scenario-abc
Create PtsTmpKeyGenerate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PtsTmpKeyGenerate(name: string, args: PtsTmpKeyGenerateArgs, opts?: CustomResourceOptions);
@overload
def PtsTmpKeyGenerate(resource_name: str,
args: PtsTmpKeyGenerateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PtsTmpKeyGenerate(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
pts_tmp_key_generate_id: Optional[str] = None,
scenario_id: Optional[str] = None)
func NewPtsTmpKeyGenerate(ctx *Context, name string, args PtsTmpKeyGenerateArgs, opts ...ResourceOption) (*PtsTmpKeyGenerate, error)
public PtsTmpKeyGenerate(string name, PtsTmpKeyGenerateArgs args, CustomResourceOptions? opts = null)
public PtsTmpKeyGenerate(String name, PtsTmpKeyGenerateArgs args)
public PtsTmpKeyGenerate(String name, PtsTmpKeyGenerateArgs args, CustomResourceOptions options)
type: tencentcloud:PtsTmpKeyGenerate
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 PtsTmpKeyGenerateArgs
- 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 PtsTmpKeyGenerateArgs
- 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 PtsTmpKeyGenerateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PtsTmpKeyGenerateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PtsTmpKeyGenerateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PtsTmpKeyGenerate 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 PtsTmpKeyGenerate resource accepts the following input properties:
- Project
Id string - Project ID.
- Pts
Tmp stringKey Generate Id - ID of the resource.
- Scenario
Id string - Scenario ID.
- Project
Id string - Project ID.
- Pts
Tmp stringKey Generate Id - ID of the resource.
- Scenario
Id string - Scenario ID.
- project
Id String - Project ID.
- pts
Tmp StringKey Generate Id - ID of the resource.
- scenario
Id String - Scenario ID.
- project
Id string - Project ID.
- pts
Tmp stringKey Generate Id - ID of the resource.
- scenario
Id string - Scenario ID.
- project_
id str - Project ID.
- pts_
tmp_ strkey_ generate_ id - ID of the resource.
- scenario_
id str - Scenario ID.
- project
Id String - Project ID.
- pts
Tmp StringKey Generate Id - ID of the resource.
- scenario
Id String - Scenario ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the PtsTmpKeyGenerate resource produces the following output properties:
- Credentials
List<Pts
Tmp Key Generate Credential> - Temporary access credentials.
- Expired
Time double - Timestamp of temporary access credential timeout (in seconds).
- Id string
- The provider-assigned unique ID for this managed resource.
- Start
Time double - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- Credentials
[]Pts
Tmp Key Generate Credential - Temporary access credentials.
- Expired
Time float64 - Timestamp of temporary access credential timeout (in seconds).
- Id string
- The provider-assigned unique ID for this managed resource.
- Start
Time float64 - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- credentials
List<Pts
Tmp Key Generate Credential> - Temporary access credentials.
- expired
Time Double - Timestamp of temporary access credential timeout (in seconds).
- id String
- The provider-assigned unique ID for this managed resource.
- start
Time Double - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- credentials
Pts
Tmp Key Generate Credential[] - Temporary access credentials.
- expired
Time number - Timestamp of temporary access credential timeout (in seconds).
- id string
- The provider-assigned unique ID for this managed resource.
- start
Time number - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- credentials
Sequence[Pts
Tmp Key Generate Credential] - Temporary access credentials.
- expired_
time float - Timestamp of temporary access credential timeout (in seconds).
- id str
- The provider-assigned unique ID for this managed resource.
- start_
time float - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- credentials List<Property Map>
- Temporary access credentials.
- expired
Time Number - Timestamp of temporary access credential timeout (in seconds).
- id String
- The provider-assigned unique ID for this managed resource.
- start
Time Number - The timestamp of the moment when the temporary access credential was obtained (in seconds).
Look up Existing PtsTmpKeyGenerate Resource
Get an existing PtsTmpKeyGenerate 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?: PtsTmpKeyGenerateState, opts?: CustomResourceOptions): PtsTmpKeyGenerate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
credentials: Optional[Sequence[PtsTmpKeyGenerateCredentialArgs]] = None,
expired_time: Optional[float] = None,
project_id: Optional[str] = None,
pts_tmp_key_generate_id: Optional[str] = None,
scenario_id: Optional[str] = None,
start_time: Optional[float] = None) -> PtsTmpKeyGenerate
func GetPtsTmpKeyGenerate(ctx *Context, name string, id IDInput, state *PtsTmpKeyGenerateState, opts ...ResourceOption) (*PtsTmpKeyGenerate, error)
public static PtsTmpKeyGenerate Get(string name, Input<string> id, PtsTmpKeyGenerateState? state, CustomResourceOptions? opts = null)
public static PtsTmpKeyGenerate get(String name, Output<String> id, PtsTmpKeyGenerateState state, CustomResourceOptions options)
resources: _: type: tencentcloud:PtsTmpKeyGenerate 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.
- Credentials
List<Pts
Tmp Key Generate Credential> - Temporary access credentials.
- Expired
Time double - Timestamp of temporary access credential timeout (in seconds).
- Project
Id string - Project ID.
- Pts
Tmp stringKey Generate Id - ID of the resource.
- Scenario
Id string - Scenario ID.
- Start
Time double - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- Credentials
[]Pts
Tmp Key Generate Credential Args - Temporary access credentials.
- Expired
Time float64 - Timestamp of temporary access credential timeout (in seconds).
- Project
Id string - Project ID.
- Pts
Tmp stringKey Generate Id - ID of the resource.
- Scenario
Id string - Scenario ID.
- Start
Time float64 - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- credentials
List<Pts
Tmp Key Generate Credential> - Temporary access credentials.
- expired
Time Double - Timestamp of temporary access credential timeout (in seconds).
- project
Id String - Project ID.
- pts
Tmp StringKey Generate Id - ID of the resource.
- scenario
Id String - Scenario ID.
- start
Time Double - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- credentials
Pts
Tmp Key Generate Credential[] - Temporary access credentials.
- expired
Time number - Timestamp of temporary access credential timeout (in seconds).
- project
Id string - Project ID.
- pts
Tmp stringKey Generate Id - ID of the resource.
- scenario
Id string - Scenario ID.
- start
Time number - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- credentials
Sequence[Pts
Tmp Key Generate Credential Args] - Temporary access credentials.
- expired_
time float - Timestamp of temporary access credential timeout (in seconds).
- project_
id str - Project ID.
- pts_
tmp_ strkey_ generate_ id - ID of the resource.
- scenario_
id str - Scenario ID.
- start_
time float - The timestamp of the moment when the temporary access credential was obtained (in seconds).
- credentials List<Property Map>
- Temporary access credentials.
- expired
Time Number - Timestamp of temporary access credential timeout (in seconds).
- project
Id String - Project ID.
- pts
Tmp StringKey Generate Id - ID of the resource.
- scenario
Id String - Scenario ID.
- start
Time Number - The timestamp of the moment when the temporary access credential was obtained (in seconds).
Supporting Types
PtsTmpKeyGenerateCredential, PtsTmpKeyGenerateCredentialArgs
- Tmp
Secret stringId - Temporary secret ID.
- Tmp
Secret stringKey - Temporary secret key.
- Token string
- Temporary token.
- Tmp
Secret stringId - Temporary secret ID.
- Tmp
Secret stringKey - Temporary secret key.
- Token string
- Temporary token.
- tmp
Secret StringId - Temporary secret ID.
- tmp
Secret StringKey - Temporary secret key.
- token String
- Temporary token.
- tmp
Secret stringId - Temporary secret ID.
- tmp
Secret stringKey - Temporary secret key.
- token string
- Temporary token.
- tmp_
secret_ strid - Temporary secret ID.
- tmp_
secret_ strkey - Temporary secret key.
- token str
- Temporary token.
- tmp
Secret StringId - Temporary secret ID.
- tmp
Secret StringKey - Temporary secret key.
- token String
- Temporary token.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.