aws-native logo
AWS Native v0.63.0, May 25 23

aws-native.apigateway.getResource

Explore with Pulumi AI

Resource Type definition for AWS::ApiGateway::Resource

Using getResource

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 getResource(args: GetResourceArgs, opts?: InvokeOptions): Promise<GetResourceResult>
function getResourceOutput(args: GetResourceOutputArgs, opts?: InvokeOptions): Output<GetResourceResult>
def get_resource(resource_id: Optional[str] = None,
                 rest_api_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetResourceResult
def get_resource_output(resource_id: Optional[pulumi.Input[str]] = None,
                 rest_api_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetResourceResult]
func LookupResource(ctx *Context, args *LookupResourceArgs, opts ...InvokeOption) (*LookupResourceResult, error)
func LookupResourceOutput(ctx *Context, args *LookupResourceOutputArgs, opts ...InvokeOption) LookupResourceResultOutput

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

public static class GetResource 
{
    public static Task<GetResourceResult> InvokeAsync(GetResourceArgs args, InvokeOptions? opts = null)
    public static Output<GetResourceResult> Invoke(GetResourceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResourceResult> getResource(GetResourceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws-native:apigateway:getResource
  arguments:
    # arguments dictionary

The following arguments are supported:

ResourceId string

A unique primary identifier for a Resource

RestApiId string

The ID of the RestApi resource in which you want to create this resource..

ResourceId string

A unique primary identifier for a Resource

RestApiId string

The ID of the RestApi resource in which you want to create this resource..

resourceId String

A unique primary identifier for a Resource

restApiId String

The ID of the RestApi resource in which you want to create this resource..

resourceId string

A unique primary identifier for a Resource

restApiId string

The ID of the RestApi resource in which you want to create this resource..

resource_id str

A unique primary identifier for a Resource

rest_api_id str

The ID of the RestApi resource in which you want to create this resource..

resourceId String

A unique primary identifier for a Resource

restApiId String

The ID of the RestApi resource in which you want to create this resource..

getResource Result

The following output properties are available:

ResourceId string

A unique primary identifier for a Resource

ResourceId string

A unique primary identifier for a Resource

resourceId String

A unique primary identifier for a Resource

resourceId string

A unique primary identifier for a Resource

resource_id str

A unique primary identifier for a Resource

resourceId String

A unique primary identifier for a Resource

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0