AWS Native v0.63.0, May 25 23
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:
- Resource
Id string A unique primary identifier for a Resource
- Rest
Api stringId The ID of the RestApi resource in which you want to create this resource..
- Resource
Id string A unique primary identifier for a Resource
- Rest
Api stringId The ID of the RestApi resource in which you want to create this resource..
- resource
Id String A unique primary identifier for a Resource
- rest
Api StringId The ID of the RestApi resource in which you want to create this resource..
- resource
Id string A unique primary identifier for a Resource
- rest
Api stringId 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_ strid The ID of the RestApi resource in which you want to create this resource..
- resource
Id String A unique primary identifier for a Resource
- rest
Api StringId The ID of the RestApi resource in which you want to create this resource..
getResource Result
The following output properties are available:
- Resource
Id string A unique primary identifier for a Resource
- Resource
Id string A unique primary identifier for a Resource
- resource
Id String A unique primary identifier for a Resource
- resource
Id string A unique primary identifier for a Resource
- resource_
id str A unique primary identifier for a Resource
- resource
Id String A unique primary identifier for a Resource
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0