1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getRtsStackResourceV1
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getRtsStackResourceV1

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    The FlexibleEngine RTS Stack Resource data source allows access to stack resource metadata.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const stackName = config.requireObject("stackName");
    const resourceName = config.requireObject("resourceName");
    const stackresource = flexibleengine.getRtsStackResourceV1({
        stackName: stackName,
        resourceName: resourceName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    stack_name = config.require_object("stackName")
    resource_name = config.require_object("resourceName")
    stackresource = flexibleengine.get_rts_stack_resource_v1(stack_name=stack_name,
        resource_name=resource_name)
    
    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, "")
    		stackName := cfg.RequireObject("stackName")
    		resourceName := cfg.RequireObject("resourceName")
    		_, err := flexibleengine.GetRtsStackResourceV1(ctx, &flexibleengine.GetRtsStackResourceV1Args{
    			StackName:    stackName,
    			ResourceName: pulumi.StringRef(resourceName),
    		}, nil)
    		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 stackName = config.RequireObject<dynamic>("stackName");
        var resourceName = config.RequireObject<dynamic>("resourceName");
        var stackresource = Flexibleengine.GetRtsStackResourceV1.Invoke(new()
        {
            StackName = stackName,
            ResourceName = resourceName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetRtsStackResourceV1Args;
    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 stackName = config.get("stackName");
            final var resourceName = config.get("resourceName");
            final var stackresource = FlexibleengineFunctions.getRtsStackResourceV1(GetRtsStackResourceV1Args.builder()
                .stackName(stackName)
                .resourceName(resourceName)
                .build());
    
        }
    }
    
    configuration:
      stackName:
        type: dynamic
      resourceName:
        type: dynamic
    variables:
      stackresource:
        fn::invoke:
          function: flexibleengine:getRtsStackResourceV1
          arguments:
            stackName: ${stackName}
            resourceName: ${resourceName}
    

    Using getRtsStackResourceV1

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRtsStackResourceV1(args: GetRtsStackResourceV1Args, opts?: InvokeOptions): Promise<GetRtsStackResourceV1Result>
    function getRtsStackResourceV1Output(args: GetRtsStackResourceV1OutputArgs, opts?: InvokeOptions): Output<GetRtsStackResourceV1Result>
    def get_rts_stack_resource_v1(id: Optional[str] = None,
                                  physical_resource_id: Optional[str] = None,
                                  region: Optional[str] = None,
                                  resource_name: Optional[str] = None,
                                  resource_type: Optional[str] = None,
                                  stack_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetRtsStackResourceV1Result
    def get_rts_stack_resource_v1_output(id: Optional[pulumi.Input[str]] = None,
                                  physical_resource_id: Optional[pulumi.Input[str]] = None,
                                  region: Optional[pulumi.Input[str]] = None,
                                  resource_name: Optional[pulumi.Input[str]] = None,
                                  resource_type: Optional[pulumi.Input[str]] = None,
                                  stack_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetRtsStackResourceV1Result]
    func GetRtsStackResourceV1(ctx *Context, args *GetRtsStackResourceV1Args, opts ...InvokeOption) (*GetRtsStackResourceV1Result, error)
    func GetRtsStackResourceV1Output(ctx *Context, args *GetRtsStackResourceV1OutputArgs, opts ...InvokeOption) GetRtsStackResourceV1ResultOutput

    > Note: This function is named GetRtsStackResourceV1 in the Go SDK.

    public static class GetRtsStackResourceV1 
    {
        public static Task<GetRtsStackResourceV1Result> InvokeAsync(GetRtsStackResourceV1Args args, InvokeOptions? opts = null)
        public static Output<GetRtsStackResourceV1Result> Invoke(GetRtsStackResourceV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRtsStackResourceV1Result> getRtsStackResourceV1(GetRtsStackResourceV1Args args, InvokeOptions options)
    public static Output<GetRtsStackResourceV1Result> getRtsStackResourceV1(GetRtsStackResourceV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getRtsStackResourceV1:getRtsStackResourceV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    StackName string
    The unique stack name.
    Id string
    PhysicalResourceId string
    The physical resource ID.
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    ResourceName string
    The name of a resource in the stack.
    ResourceType string
    The resource type.
    StackName string
    The unique stack name.
    Id string
    PhysicalResourceId string
    The physical resource ID.
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    ResourceName string
    The name of a resource in the stack.
    ResourceType string
    The resource type.
    stackName String
    The unique stack name.
    id String
    physicalResourceId String
    The physical resource ID.
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.
    resourceName String
    The name of a resource in the stack.
    resourceType String
    The resource type.
    stackName string
    The unique stack name.
    id string
    physicalResourceId string
    The physical resource ID.
    region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    resourceName string
    The name of a resource in the stack.
    resourceType string
    The resource type.
    stack_name str
    The unique stack name.
    id str
    physical_resource_id str
    The physical resource ID.
    region str
    The region in which to query the data source. If omitted, the provider-level region will be used.
    resource_name str
    The name of a resource in the stack.
    resource_type str
    The resource type.
    stackName String
    The unique stack name.
    id String
    physicalResourceId String
    The physical resource ID.
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.
    resourceName String
    The name of a resource in the stack.
    resourceType String
    The resource type.

    getRtsStackResourceV1 Result

    The following output properties are available:

    Id string
    LogicalResourceId string
    The logical resource ID.
    Region string
    RequiredBies List<string>
    Specifies the resource dependency.
    ResourceStatus string
    The status of the resource.
    ResourceStatusReason string
    The resource operation reason.
    StackName string
    PhysicalResourceId string
    ResourceName string
    ResourceType string
    Id string
    LogicalResourceId string
    The logical resource ID.
    Region string
    RequiredBies []string
    Specifies the resource dependency.
    ResourceStatus string
    The status of the resource.
    ResourceStatusReason string
    The resource operation reason.
    StackName string
    PhysicalResourceId string
    ResourceName string
    ResourceType string
    id String
    logicalResourceId String
    The logical resource ID.
    region String
    requiredBies List<String>
    Specifies the resource dependency.
    resourceStatus String
    The status of the resource.
    resourceStatusReason String
    The resource operation reason.
    stackName String
    physicalResourceId String
    resourceName String
    resourceType String
    id string
    logicalResourceId string
    The logical resource ID.
    region string
    requiredBies string[]
    Specifies the resource dependency.
    resourceStatus string
    The status of the resource.
    resourceStatusReason string
    The resource operation reason.
    stackName string
    physicalResourceId string
    resourceName string
    resourceType string
    id str
    logical_resource_id str
    The logical resource ID.
    region str
    required_bies Sequence[str]
    Specifies the resource dependency.
    resource_status str
    The status of the resource.
    resource_status_reason str
    The resource operation reason.
    stack_name str
    physical_resource_id str
    resource_name str
    resource_type str
    id String
    logicalResourceId String
    The logical resource ID.
    region String
    requiredBies List<String>
    Specifies the resource dependency.
    resourceStatus String
    The status of the resource.
    resourceStatusReason String
    The resource operation reason.
    stackName String
    physicalResourceId String
    resourceName String
    resourceType String

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud