opentelekomcloud.DisAppV2
Explore with Pulumi AI
Up-to-date reference of API arguments for DIS app you can get at documentation portal
Manages a DIS Apps in the OpenTelekomCloud DIS Service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const app1 = new opentelekomcloud.DisAppV2("app1", {});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
app1 = opentelekomcloud.DisAppV2("app1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewDisAppV2(ctx, "app1", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var app1 = new Opentelekomcloud.DisAppV2("app1");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DisAppV2;
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 app1 = new DisAppV2("app1");
}
}
resources:
app1:
type: opentelekomcloud:DisAppV2
Create DisAppV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DisAppV2(name: string, args?: DisAppV2Args, opts?: CustomResourceOptions);
@overload
def DisAppV2(resource_name: str,
args: Optional[DisAppV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DisAppV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
timeouts: Optional[DisAppV2TimeoutsArgs] = None)
func NewDisAppV2(ctx *Context, name string, args *DisAppV2Args, opts ...ResourceOption) (*DisAppV2, error)
public DisAppV2(string name, DisAppV2Args? args = null, CustomResourceOptions? opts = null)
public DisAppV2(String name, DisAppV2Args args)
public DisAppV2(String name, DisAppV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DisAppV2
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 DisAppV2Args
- 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 DisAppV2Args
- 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 DisAppV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DisAppV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DisAppV2Args
- 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 disAppV2Resource = new Opentelekomcloud.DisAppV2("disAppV2Resource", new()
{
Name = "string",
Timeouts = new Opentelekomcloud.Inputs.DisAppV2TimeoutsArgs
{
Update = "string",
},
});
example, err := opentelekomcloud.NewDisAppV2(ctx, "disAppV2Resource", &opentelekomcloud.DisAppV2Args{
Name: pulumi.String("string"),
Timeouts: &opentelekomcloud.DisAppV2TimeoutsArgs{
Update: pulumi.String("string"),
},
})
var disAppV2Resource = new DisAppV2("disAppV2Resource", DisAppV2Args.builder()
.name("string")
.timeouts(DisAppV2TimeoutsArgs.builder()
.update("string")
.build())
.build());
dis_app_v2_resource = opentelekomcloud.DisAppV2("disAppV2Resource",
name="string",
timeouts={
"update": "string",
})
const disAppV2Resource = new opentelekomcloud.DisAppV2("disAppV2Resource", {
name: "string",
timeouts: {
update: "string",
},
});
type: opentelekomcloud:DisAppV2
properties:
name: string
timeouts:
update: string
DisAppV2 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 DisAppV2 resource accepts the following input properties:
- Name string
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- Timeouts
Dis
App V2Timeouts
- Name string
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- Timeouts
Dis
App V2Timeouts Args
- name String
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- timeouts
Dis
App V2Timeouts
- name string
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- timeouts
Dis
App V2Timeouts
- name str
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- timeouts
Dis
App V2Timeouts Args
- name String
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DisAppV2 resource produces the following output properties:
- Commit
Checkpoint List<string>Stream Names - List of associated streams.
- Created double
- Time when the app is created. The value is a timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Partition
Consuming List<DisStates App V2Partition Consuming State> - Associated partitions details.
- Commit
Checkpoint []stringStream Names - List of associated streams.
- Created float64
- Time when the app is created. The value is a timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Partition
Consuming []DisStates App V2Partition Consuming State - Associated partitions details.
- commit
Checkpoint List<String>Stream Names - List of associated streams.
- created Double
- Time when the app is created. The value is a timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- partition
Consuming List<DisStates App V2Partition Consuming State> - Associated partitions details.
- commit
Checkpoint string[]Stream Names - List of associated streams.
- created number
- Time when the app is created. The value is a timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- partition
Consuming DisStates App V2Partition Consuming State[] - Associated partitions details.
- commit_
checkpoint_ Sequence[str]stream_ names - List of associated streams.
- created float
- Time when the app is created. The value is a timestamp.
- id str
- The provider-assigned unique ID for this managed resource.
- partition_
consuming_ Sequence[Disstates App V2Partition Consuming State] - Associated partitions details.
- commit
Checkpoint List<String>Stream Names - List of associated streams.
- created Number
- Time when the app is created. The value is a timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- partition
Consuming List<Property Map>States - Associated partitions details.
Look up Existing DisAppV2 Resource
Get an existing DisAppV2 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?: DisAppV2State, opts?: CustomResourceOptions): DisAppV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
commit_checkpoint_stream_names: Optional[Sequence[str]] = None,
created: Optional[float] = None,
name: Optional[str] = None,
partition_consuming_states: Optional[Sequence[DisAppV2PartitionConsumingStateArgs]] = None,
timeouts: Optional[DisAppV2TimeoutsArgs] = None) -> DisAppV2
func GetDisAppV2(ctx *Context, name string, id IDInput, state *DisAppV2State, opts ...ResourceOption) (*DisAppV2, error)
public static DisAppV2 Get(string name, Input<string> id, DisAppV2State? state, CustomResourceOptions? opts = null)
public static DisAppV2 get(String name, Output<String> id, DisAppV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DisAppV2 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.
- Commit
Checkpoint List<string>Stream Names - List of associated streams.
- Created double
- Time when the app is created. The value is a timestamp.
- Name string
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- Partition
Consuming List<DisStates App V2Partition Consuming State> - Associated partitions details.
- Timeouts
Dis
App V2Timeouts
- Commit
Checkpoint []stringStream Names - List of associated streams.
- Created float64
- Time when the app is created. The value is a timestamp.
- Name string
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- Partition
Consuming []DisStates App V2Partition Consuming State Args - Associated partitions details.
- Timeouts
Dis
App V2Timeouts Args
- commit
Checkpoint List<String>Stream Names - List of associated streams.
- created Double
- Time when the app is created. The value is a timestamp.
- name String
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- partition
Consuming List<DisStates App V2Partition Consuming State> - Associated partitions details.
- timeouts
Dis
App V2Timeouts
- commit
Checkpoint string[]Stream Names - List of associated streams.
- created number
- Time when the app is created. The value is a timestamp.
- name string
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- partition
Consuming DisStates App V2Partition Consuming State[] - Associated partitions details.
- timeouts
Dis
App V2Timeouts
- commit_
checkpoint_ Sequence[str]stream_ names - List of associated streams.
- created float
- Time when the app is created. The value is a timestamp.
- name str
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- partition_
consuming_ Sequence[Disstates App V2Partition Consuming State Args] - Associated partitions details.
- timeouts
Dis
App V2Timeouts Args
- commit
Checkpoint List<String>Stream Names - List of associated streams.
- created Number
- Time when the app is created. The value is a timestamp.
- name String
- Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- partition
Consuming List<Property Map>States - Associated partitions details.
- timeouts Property Map
Supporting Types
DisAppV2PartitionConsumingState, DisAppV2PartitionConsumingStateArgs
- Checkpoint
Type string - Type of the checkpoint.
- Earliest
Offset double - Partition data earliest offset
- Id string
- Partition Id.
- Latest
Offset double - Partition data latest offset
- Sequence
Number string - Partition Sequence Number
- Status string
- Partition Status, can be:
CREATING
ACTIVE
DELETED
EXPIRED
- Checkpoint
Type string - Type of the checkpoint.
- Earliest
Offset float64 - Partition data earliest offset
- Id string
- Partition Id.
- Latest
Offset float64 - Partition data latest offset
- Sequence
Number string - Partition Sequence Number
- Status string
- Partition Status, can be:
CREATING
ACTIVE
DELETED
EXPIRED
- checkpoint
Type String - Type of the checkpoint.
- earliest
Offset Double - Partition data earliest offset
- id String
- Partition Id.
- latest
Offset Double - Partition data latest offset
- sequence
Number String - Partition Sequence Number
- status String
- Partition Status, can be:
CREATING
ACTIVE
DELETED
EXPIRED
- checkpoint
Type string - Type of the checkpoint.
- earliest
Offset number - Partition data earliest offset
- id string
- Partition Id.
- latest
Offset number - Partition data latest offset
- sequence
Number string - Partition Sequence Number
- status string
- Partition Status, can be:
CREATING
ACTIVE
DELETED
EXPIRED
- checkpoint_
type str - Type of the checkpoint.
- earliest_
offset float - Partition data earliest offset
- id str
- Partition Id.
- latest_
offset float - Partition data latest offset
- sequence_
number str - Partition Sequence Number
- status str
- Partition Status, can be:
CREATING
ACTIVE
DELETED
EXPIRED
- checkpoint
Type String - Type of the checkpoint.
- earliest
Offset Number - Partition data earliest offset
- id String
- Partition Id.
- latest
Offset Number - Partition data latest offset
- sequence
Number String - Partition Sequence Number
- status String
- Partition Status, can be:
CREATING
ACTIVE
DELETED
EXPIRED
DisAppV2Timeouts, DisAppV2TimeoutsArgs
- Update string
- Update string
- update String
- update string
- update str
- update String
Import
App can be imported using the app name, e.g.
$ pulumi import opentelekomcloud:index/disAppV2:DisAppV2 app_1 app_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.