flexibleengine.ApigAppcode
Explore with Pulumi AI
Manages an APPCODE in application resource within FlexibleEngine.
Example Usage
Auto generate APPCODE
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const applicationId = config.requireObject("applicationId");
const test = new flexibleengine.ApigAppcode("test", {
instanceId: instanceId,
applicationId: applicationId,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
instance_id = config.require_object("instanceId")
application_id = config.require_object("applicationId")
test = flexibleengine.ApigAppcode("test",
instance_id=instance_id,
application_id=application_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
applicationId := cfg.RequireObject("applicationId")
_, err := flexibleengine.NewApigAppcode(ctx, "test", &flexibleengine.ApigAppcodeArgs{
InstanceId: pulumi.Any(instanceId),
ApplicationId: pulumi.Any(applicationId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var applicationId = config.RequireObject<dynamic>("applicationId");
var test = new Flexibleengine.ApigAppcode("test", new()
{
InstanceId = instanceId,
ApplicationId = applicationId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ApigAppcode;
import com.pulumi.flexibleengine.ApigAppcodeArgs;
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) {
final var config = ctx.config();
final var instanceId = config.get("instanceId");
final var applicationId = config.get("applicationId");
var test = new ApigAppcode("test", ApigAppcodeArgs.builder()
.instanceId(instanceId)
.applicationId(applicationId)
.build());
}
}
configuration:
instanceId:
type: dynamic
applicationId:
type: dynamic
resources:
test:
type: flexibleengine:ApigAppcode
properties:
instanceId: ${instanceId}
applicationId: ${applicationId}
Manually configure APPCODE
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const applicationId = config.requireObject("applicationId");
const appCode = config.requireObject("appCode");
const test = new flexibleengine.ApigAppcode("test", {
instanceId: instanceId,
applicationId: applicationId,
value: appCode,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
instance_id = config.require_object("instanceId")
application_id = config.require_object("applicationId")
app_code = config.require_object("appCode")
test = flexibleengine.ApigAppcode("test",
instance_id=instance_id,
application_id=application_id,
value=app_code)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
applicationId := cfg.RequireObject("applicationId")
appCode := cfg.RequireObject("appCode")
_, err := flexibleengine.NewApigAppcode(ctx, "test", &flexibleengine.ApigAppcodeArgs{
InstanceId: pulumi.Any(instanceId),
ApplicationId: pulumi.Any(applicationId),
Value: pulumi.Any(appCode),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var applicationId = config.RequireObject<dynamic>("applicationId");
var appCode = config.RequireObject<dynamic>("appCode");
var test = new Flexibleengine.ApigAppcode("test", new()
{
InstanceId = instanceId,
ApplicationId = applicationId,
Value = appCode,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ApigAppcode;
import com.pulumi.flexibleengine.ApigAppcodeArgs;
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) {
final var config = ctx.config();
final var instanceId = config.get("instanceId");
final var applicationId = config.get("applicationId");
final var appCode = config.get("appCode");
var test = new ApigAppcode("test", ApigAppcodeArgs.builder()
.instanceId(instanceId)
.applicationId(applicationId)
.value(appCode)
.build());
}
}
configuration:
instanceId:
type: dynamic
applicationId:
type: dynamic
appCode:
type: dynamic
resources:
test:
type: flexibleengine:ApigAppcode
properties:
instanceId: ${instanceId}
applicationId: ${applicationId}
value: ${appCode}
Create ApigAppcode Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApigAppcode(name: string, args: ApigAppcodeArgs, opts?: CustomResourceOptions);
@overload
def ApigAppcode(resource_name: str,
args: ApigAppcodeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApigAppcode(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
instance_id: Optional[str] = None,
apig_appcode_id: Optional[str] = None,
region: Optional[str] = None,
value: Optional[str] = None)
func NewApigAppcode(ctx *Context, name string, args ApigAppcodeArgs, opts ...ResourceOption) (*ApigAppcode, error)
public ApigAppcode(string name, ApigAppcodeArgs args, CustomResourceOptions? opts = null)
public ApigAppcode(String name, ApigAppcodeArgs args)
public ApigAppcode(String name, ApigAppcodeArgs args, CustomResourceOptions options)
type: flexibleengine:ApigAppcode
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 ApigAppcodeArgs
- 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 ApigAppcodeArgs
- 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 ApigAppcodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApigAppcodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApigAppcodeArgs
- 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 apigAppcodeResource = new Flexibleengine.ApigAppcode("apigAppcodeResource", new()
{
ApplicationId = "string",
InstanceId = "string",
ApigAppcodeId = "string",
Region = "string",
Value = "string",
});
example, err := flexibleengine.NewApigAppcode(ctx, "apigAppcodeResource", &flexibleengine.ApigAppcodeArgs{
ApplicationId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
ApigAppcodeId: pulumi.String("string"),
Region: pulumi.String("string"),
Value: pulumi.String("string"),
})
var apigAppcodeResource = new ApigAppcode("apigAppcodeResource", ApigAppcodeArgs.builder()
.applicationId("string")
.instanceId("string")
.apigAppcodeId("string")
.region("string")
.value("string")
.build());
apig_appcode_resource = flexibleengine.ApigAppcode("apigAppcodeResource",
application_id="string",
instance_id="string",
apig_appcode_id="string",
region="string",
value="string")
const apigAppcodeResource = new flexibleengine.ApigAppcode("apigAppcodeResource", {
applicationId: "string",
instanceId: "string",
apigAppcodeId: "string",
region: "string",
value: "string",
});
type: flexibleengine:ApigAppcode
properties:
apigAppcodeId: string
applicationId: string
instanceId: string
region: string
value: string
ApigAppcode 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 ApigAppcode resource accepts the following input properties:
- Application
Id string - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- Instance
Id string - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- Apig
Appcode stringId - The APPCODE ID.
- Region string
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - Value string
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- Application
Id string - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- Instance
Id string - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- Apig
Appcode stringId - The APPCODE ID.
- Region string
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - Value string
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- application
Id String - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- instance
Id String - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- apig
Appcode StringId - The APPCODE ID.
- region String
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - value String
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- application
Id string - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- instance
Id string - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- apig
Appcode stringId - The APPCODE ID.
- region string
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - value string
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- application_
id str - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- instance_
id str - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- apig_
appcode_ strid - The APPCODE ID.
- region str
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - value str
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- application
Id String - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- instance
Id String - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- apig
Appcode StringId - The APPCODE ID.
- region String
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - value String
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApigAppcode resource produces the following output properties:
- created_
at str - The creation time of the APPCODE.
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing ApigAppcode Resource
Get an existing ApigAppcode 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?: ApigAppcodeState, opts?: CustomResourceOptions): ApigAppcode
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apig_appcode_id: Optional[str] = None,
application_id: Optional[str] = None,
created_at: Optional[str] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None,
value: Optional[str] = None) -> ApigAppcode
func GetApigAppcode(ctx *Context, name string, id IDInput, state *ApigAppcodeState, opts ...ResourceOption) (*ApigAppcode, error)
public static ApigAppcode Get(string name, Input<string> id, ApigAppcodeState? state, CustomResourceOptions? opts = null)
public static ApigAppcode get(String name, Output<String> id, ApigAppcodeState state, CustomResourceOptions options)
resources: _: type: flexibleengine:ApigAppcode 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.
- Apig
Appcode stringId - The APPCODE ID.
- Application
Id string - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- Created
At string - The creation time of the APPCODE.
- Instance
Id string - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- Region string
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - Value string
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- Apig
Appcode stringId - The APPCODE ID.
- Application
Id string - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- Created
At string - The creation time of the APPCODE.
- Instance
Id string - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- Region string
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - Value string
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- apig
Appcode StringId - The APPCODE ID.
- application
Id String - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- created
At String - The creation time of the APPCODE.
- instance
Id String - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- region String
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - value String
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- apig
Appcode stringId - The APPCODE ID.
- application
Id string - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- created
At string - The creation time of the APPCODE.
- instance
Id string - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- region string
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - value string
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- apig_
appcode_ strid - The APPCODE ID.
- application_
id str - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- created_
at str - The creation time of the APPCODE.
- instance_
id str - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- region str
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - value str
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
- apig
Appcode StringId - The APPCODE ID.
- application
Id String - Specifies the ID of application to which the APPCODE belongs. Changing this will create a new resource.
- created
At String - The creation time of the APPCODE.
- instance
Id String - Specifies the ID of the dedicated instance to which the application and APPCODE belong. Changing this will create a new resource.
- region String
- Specifies the region where the application and APPCODE are located.
If omitted, the provider-level region will be used. Changing this will create a new resource. - value String
- Specifies the APPCODE value (content).
The value can contain
64
to180
characters, starting with a letter, plus sign (+), or slash (/). Only letters and the following special characters are allowed:+_!@#$%/=
. If omitted, a random value will be generated. Changing this will create a new resource.
Import
APPCODEs can be imported using related instance_id
, application_id
and their id
, separated by slashes, e.g.
bash
$ pulumi import flexibleengine:index/apigAppcode:ApigAppcode test <instance_id>/<application_id>/<id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.