tencentcloud.ApiGatewayUpdateApiAppKey
Explore with Pulumi AI
Provides a resource to create a apiGateway update_api_app_key
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ApiGatewayUpdateApiAppKey("example", {
apiAppId: "app-krljp4wn",
apiAppKey: "APID6JmG21yRCc03h4z16hlsTqj1wpO3dB3ZQcUP",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ApiGatewayUpdateApiAppKey("example",
api_app_id="app-krljp4wn",
api_app_key="APID6JmG21yRCc03h4z16hlsTqj1wpO3dB3ZQcUP")
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.NewApiGatewayUpdateApiAppKey(ctx, "example", &tencentcloud.ApiGatewayUpdateApiAppKeyArgs{
ApiAppId: pulumi.String("app-krljp4wn"),
ApiAppKey: pulumi.String("APID6JmG21yRCc03h4z16hlsTqj1wpO3dB3ZQcUP"),
})
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.ApiGatewayUpdateApiAppKey("example", new()
{
ApiAppId = "app-krljp4wn",
ApiAppKey = "APID6JmG21yRCc03h4z16hlsTqj1wpO3dB3ZQcUP",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ApiGatewayUpdateApiAppKey;
import com.pulumi.tencentcloud.ApiGatewayUpdateApiAppKeyArgs;
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 ApiGatewayUpdateApiAppKey("example", ApiGatewayUpdateApiAppKeyArgs.builder()
.apiAppId("app-krljp4wn")
.apiAppKey("APID6JmG21yRCc03h4z16hlsTqj1wpO3dB3ZQcUP")
.build());
}
}
resources:
example:
type: tencentcloud:ApiGatewayUpdateApiAppKey
properties:
apiAppId: app-krljp4wn
apiAppKey: APID6JmG21yRCc03h4z16hlsTqj1wpO3dB3ZQcUP
Create ApiGatewayUpdateApiAppKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiGatewayUpdateApiAppKey(name: string, args: ApiGatewayUpdateApiAppKeyArgs, opts?: CustomResourceOptions);
@overload
def ApiGatewayUpdateApiAppKey(resource_name: str,
args: ApiGatewayUpdateApiAppKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiGatewayUpdateApiAppKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_app_id: Optional[str] = None,
api_app_key: Optional[str] = None,
api_gateway_update_api_app_key_id: Optional[str] = None)
func NewApiGatewayUpdateApiAppKey(ctx *Context, name string, args ApiGatewayUpdateApiAppKeyArgs, opts ...ResourceOption) (*ApiGatewayUpdateApiAppKey, error)
public ApiGatewayUpdateApiAppKey(string name, ApiGatewayUpdateApiAppKeyArgs args, CustomResourceOptions? opts = null)
public ApiGatewayUpdateApiAppKey(String name, ApiGatewayUpdateApiAppKeyArgs args)
public ApiGatewayUpdateApiAppKey(String name, ApiGatewayUpdateApiAppKeyArgs args, CustomResourceOptions options)
type: tencentcloud:ApiGatewayUpdateApiAppKey
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 ApiGatewayUpdateApiAppKeyArgs
- 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 ApiGatewayUpdateApiAppKeyArgs
- 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 ApiGatewayUpdateApiAppKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiGatewayUpdateApiAppKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiGatewayUpdateApiAppKeyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ApiGatewayUpdateApiAppKey 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 ApiGatewayUpdateApiAppKey resource accepts the following input properties:
- Api
App stringId - Application unique ID.
- Api
App stringKey - Key of the application.
- Api
Gateway stringUpdate Api App Key Id - ID of the resource.
- Api
App stringId - Application unique ID.
- Api
App stringKey - Key of the application.
- Api
Gateway stringUpdate Api App Key Id - ID of the resource.
- api
App StringId - Application unique ID.
- api
App StringKey - Key of the application.
- api
Gateway StringUpdate Api App Key Id - ID of the resource.
- api
App stringId - Application unique ID.
- api
App stringKey - Key of the application.
- api
Gateway stringUpdate Api App Key Id - ID of the resource.
- api_
app_ strid - Application unique ID.
- api_
app_ strkey - Key of the application.
- api_
gateway_ strupdate_ api_ app_ key_ id - ID of the resource.
- api
App StringId - Application unique ID.
- api
App StringKey - Key of the application.
- api
Gateway StringUpdate Api App Key Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiGatewayUpdateApiAppKey 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 ApiGatewayUpdateApiAppKey Resource
Get an existing ApiGatewayUpdateApiAppKey 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?: ApiGatewayUpdateApiAppKeyState, opts?: CustomResourceOptions): ApiGatewayUpdateApiAppKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_app_id: Optional[str] = None,
api_app_key: Optional[str] = None,
api_gateway_update_api_app_key_id: Optional[str] = None) -> ApiGatewayUpdateApiAppKey
func GetApiGatewayUpdateApiAppKey(ctx *Context, name string, id IDInput, state *ApiGatewayUpdateApiAppKeyState, opts ...ResourceOption) (*ApiGatewayUpdateApiAppKey, error)
public static ApiGatewayUpdateApiAppKey Get(string name, Input<string> id, ApiGatewayUpdateApiAppKeyState? state, CustomResourceOptions? opts = null)
public static ApiGatewayUpdateApiAppKey get(String name, Output<String> id, ApiGatewayUpdateApiAppKeyState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ApiGatewayUpdateApiAppKey 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.
- Api
App stringId - Application unique ID.
- Api
App stringKey - Key of the application.
- Api
Gateway stringUpdate Api App Key Id - ID of the resource.
- Api
App stringId - Application unique ID.
- Api
App stringKey - Key of the application.
- Api
Gateway stringUpdate Api App Key Id - ID of the resource.
- api
App StringId - Application unique ID.
- api
App StringKey - Key of the application.
- api
Gateway StringUpdate Api App Key Id - ID of the resource.
- api
App stringId - Application unique ID.
- api
App stringKey - Key of the application.
- api
Gateway stringUpdate Api App Key Id - ID of the resource.
- api_
app_ strid - Application unique ID.
- api_
app_ strkey - Key of the application.
- api_
gateway_ strupdate_ api_ app_ key_ id - ID of the resource.
- api
App StringId - Application unique ID.
- api
App StringKey - Key of the application.
- api
Gateway StringUpdate Api App Key Id - ID of the resource.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.