Resolver class

Provides an AppSync Resolver.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.appsync.GraphQLApi("test", {
    authenticationType: "API_KEY",
    name: "tf-example",
    schema: `type Mutation {
\\tputPost(id: ID!, title: String!): Post
}

type Post {
\\tid: ID!
\\ttitle: String!
}

type Query {
\\tsinglePost(id: ID!): Post
}

schema {
\\tquery: Query
\\tmutation: Mutation
}
`,
});
const testDataSource = new aws.appsync.DataSource("test", {
    httpConfig: {
        endpoint: "http://example.com",
    },
    apiId: test.id,
    name: "my_example",
    type: "HTTP",
});
// UNIT type resolver (default)
const testResolver = new aws.appsync.Resolver("test", {
    cachingConfig: {
        cachingKeys: [
            "$context.identity.sub",
            "$context.arguments.id",
        ],
        ttl: 60,
    },
    apiId: test.id,
    field: "singlePost",
    type: "Query",
    dataSource: testDataSource.name,
    requestTemplate: `{
    \\"version\\": \\"2018-05-29\\",
    \\"method\\": \\"GET\\",
    \\"resourcePath\\": \\"/\\",
    \\"params\\":{
        \\"headers\\": utils.http.copyheaders(ctx.request.headers)
    }
}
`,
    responseTemplate: `#if(ctx.result.statusCode == 200)
    ctx.result.body
#else
    utils.appendError(ctx.result.body, ctx.result.statusCode)
#end
`,
});
// PIPELINE type resolver
const mutationPipelineTest = new aws.appsync.Resolver("Mutation_pipelineTest", {
    pipelineConfig: {
        functions: [
            test1.functionId,
            test2.functionId,
            test3.functionId,
        ],
    },
    type: "Mutation",
    apiId: test.id,
    field: "pipelineTest",
    requestTemplate: "{}",
    responseTemplate: "$util.toJson($ctx.result)",
    kind: "PIPELINE",
});
import pulumi
import pulumi_aws as aws

test = aws.appsync.GraphQLApi("test",
    authentication_type="API_KEY",
    name="tf-example",
    schema="""type Mutation {
\tputPost(id: ID!, title: String!): Post
}

type Post {
\tid: ID!
\ttitle: String!
}

type Query {
\tsinglePost(id: ID!): Post
}

schema {
\tquery: Query
\tmutation: Mutation
}
""")
test_data_source = aws.appsync.DataSource("test",
    http_config={
        "endpoint": "http://example.com",
    },
    api_id=test.id,
    name="my_example",
    type="HTTP")
# UNIT type resolver (default)
test_resolver = aws.appsync.Resolver("test",
    caching_config={
        "caching_keys": [
            "$context.identity.sub",
            "$context.arguments.id",
        ],
        "ttl": 60,
    },
    api_id=test.id,
    field="singlePost",
    type="Query",
    data_source=test_data_source.name,
    request_template="""{
    \"version\": \"2018-05-29\",
    \"method\": \"GET\",
    \"resourcePath\": \"/\",
    \"params\":{
        \"headers\": $utils.http.copyheaders($ctx.request.headers)
    }
}
""",
    response_template="""#if($ctx.result.statusCode == 200)
    $ctx.result.body
#else
    $utils.appendError($ctx.result.body, $ctx.result.statusCode)
#end
""")
# PIPELINE type resolver
mutation_pipeline_test = aws.appsync.Resolver("Mutation_pipelineTest",
    pipeline_config={
        "functions": [
            test1["functionId"],
            test2["functionId"],
            test3["functionId"],
        ],
    },
    type="Mutation",
    api_id=test.id,
    field="pipelineTest",
    request_template="{}",
    response_template="$util.toJson($ctx.result)",
    kind="PIPELINE")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var test = new Aws.AppSync.GraphQLApi("test", new()
    {
        AuthenticationType = "API_KEY",
        Name = "tf-example",
        Schema = @"type Mutation {
\tputPost(id: ID!, title: String!): Post
}

type Post {
\tid: ID!
\ttitle: String!
}

type Query {
\tsinglePost(id: ID!): Post
}

schema {
\tquery: Query
\tmutation: Mutation
}
",
    });

    var testDataSource = new Aws.AppSync.DataSource("test", new()
    {
        HttpConfig = new Aws.AppSync.Inputs.DataSourceHttpConfigArgs
        {
            Endpoint = "http://example.com",
        },
        ApiId = test.Id,
        Name = "my_example",
        Type = "HTTP",
    });

    // UNIT type resolver (default)
    var testResolver = new Aws.AppSync.Resolver("test", new()
    {
        CachingConfig = new Aws.AppSync.Inputs.ResolverCachingConfigArgs
        {
            CachingKeys = new[]
            {
                "$context.identity.sub",
                "$context.arguments.id",
            },
            Ttl = 60,
        },
        ApiId = test.Id,
        Field = "singlePost",
        Type = "Query",
        DataSource = testDataSource.Name,
        RequestTemplate = @"{
    \""version\"": \""2018-05-29\"",
    \""method\"": \""GET\"",
    \""resourcePath\"": \""/\"",
    \""params\"":{
        \""headers\"": $utils.http.copyheaders($ctx.request.headers)
    }
}
",
        ResponseTemplate = @"#if($ctx.result.statusCode == 200)
    $ctx.result.body
#else
    $utils.appendError($ctx.result.body, $ctx.result.statusCode)
#end
",
    });

    // PIPELINE type resolver
    var mutationPipelineTest = new Aws.AppSync.Resolver("Mutation_pipelineTest", new()
    {
        PipelineConfig = new Aws.AppSync.Inputs.ResolverPipelineConfigArgs
        {
            Functions = new[]
            {
                test1.FunctionId,
                test2.FunctionId,
                test3.FunctionId,
            },
        },
        Type = "Mutation",
        ApiId = test.Id,
        Field = "pipelineTest",
        RequestTemplate = "{}",
        ResponseTemplate = "$util.toJson($ctx.result)",
        Kind = "PIPELINE",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/appsync"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := appsync.NewGraphQLApi(ctx, "test", &appsync.GraphQLApiArgs{
			AuthenticationType: pulumi.String("API_KEY"),
			Name:               pulumi.String("tf-example"),
			Schema: pulumi.String(`type Mutation {
\tputPost(id: ID!, title: String!): Post
}

type Post {
\tid: ID!
\ttitle: String!
}

type Query {
\tsinglePost(id: ID!): Post
}

schema {
\tquery: Query
\tmutation: Mutation
}
`),
		})
		if err != nil {
			return err
		}
		testDataSource, err := appsync.NewDataSource(ctx, "test", &appsync.DataSourceArgs{
			HttpConfig: &appsync.DataSourceHttpConfigArgs{
				Endpoint: pulumi.String("http://example.com"),
			},
			ApiId: test.ID().ToIDOutput().ToStringOutput(),
			Name:  pulumi.String("my_example"),
			Type:  pulumi.String("HTTP"),
		})
		if err != nil {
			return err
		}
		// UNIT type resolver (default)
		_, err = appsync.NewResolver(ctx, "test", &appsync.ResolverArgs{
			CachingConfig: &appsync.ResolverCachingConfigArgs{
				CachingKeys: pulumi.StringArray{
					pulumi.String("$context.identity.sub"),
					pulumi.String("$context.arguments.id"),
				},
				Ttl: pulumi.Int(60),
			},
			ApiId:      test.ID().ToIDOutput().ToStringOutput(),
			Field:      pulumi.String("singlePost"),
			Type:       pulumi.String("Query"),
			DataSource: testDataSource.Name,
			RequestTemplate: pulumi.String(`{
    \"version\": \"2018-05-29\",
    \"method\": \"GET\",
    \"resourcePath\": \"/\",
    \"params\":{
        \"headers\": $utils.http.copyheaders($ctx.request.headers)
    }
}
`),
			ResponseTemplate: pulumi.String(`#if($ctx.result.statusCode == 200)
    $ctx.result.body
#else
    $utils.appendError($ctx.result.body, $ctx.result.statusCode)
#end
`),
		})
		if err != nil {
			return err
		}
		// PIPELINE type resolver
		_, err = appsync.NewResolver(ctx, "Mutation_pipelineTest", &appsync.ResolverArgs{
			PipelineConfig: &appsync.ResolverPipelineConfigArgs{
				Functions: pulumi.StringArray{
					test1.FunctionId,
					test2.FunctionId,
					test3.FunctionId,
				},
			},
			Type:             pulumi.String("Mutation"),
			ApiId:            test.ID().ToIDOutput().ToStringOutput(),
			Field:            pulumi.String("pipelineTest"),
			RequestTemplate:  pulumi.String("{}"),
			ResponseTemplate: pulumi.String("$util.toJson($ctx.result)"),
			Kind:             pulumi.String("PIPELINE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_appsync_graphqlapi" "test" {
  authentication_type = "API_KEY"
  name                = "tf-example"
  schema              = "type Mutation {\n\\tputPost(id: ID!, title: String!): Post\n}\n\ntype Post {\n\\tid: ID!\n\\ttitle: String!\n}\n\ntype Query {\n\\tsinglePost(id: ID!): Post\n}\n\nschema {\n\\tquery: Query\n\\tmutation: Mutation\n}\n"
}
resource "aws_appsync_datasource" "test" {
  http_config = {
    endpoint = "http://example.com"
  }
  api_id = aws_appsync_graphqlapi.test.id
  name   = "my_example"
  type   = "HTTP"
}
# UNIT type resolver (default)
resource "aws_appsync_resolver" "test" {
  caching_config = {
    caching_keys = ["$context.identity.sub", "$context.arguments.id"]
    ttl          = 60
  }
  api_id            = aws_appsync_graphqlapi.test.id
  field             = "singlePost"
  type              = "Query"
  data_source       = aws_appsync_datasource.test.name
  request_template  = "{\n    \\\"version\\\": \\\"2018-05-29\\\",\n    \\\"method\\\": \\\"GET\\\",\n    \\\"resourcePath\\\": \\\"/\\\",\n    \\\"params\\\":{\n        \\\"headers\\\": $utils.http.copyheaders($ctx.request.headers)\n    }\n}\n"
  response_template = "#if($ctx.result.statusCode == 200)\n    $ctx.result.body\n#else\n    $utils.appendError($ctx.result.body, $ctx.result.statusCode)\n#end\n"
}
# PIPELINE type resolver
resource "aws_appsync_resolver" "Mutation_pipelineTest" {
  pipeline_config = {
    functions = [test1.functionId, test2.functionId, test3.functionId]
  }
  type              = "Mutation"
  api_id            = aws_appsync_graphqlapi.test.id
  field             = "pipelineTest"
  request_template  = "{}"
  response_template = "$util.toJson($ctx.result)"
  kind              = "PIPELINE"
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appsync.GraphQLApi;
import com.pulumi.aws.appsync.GraphQLApiArgs;
import com.pulumi.aws.appsync.DataSource;
import com.pulumi.aws.appsync.DataSourceArgs;
import com.pulumi.aws.appsync.inputs.DataSourceHttpConfigArgs;
import com.pulumi.aws.appsync.Resolver;
import com.pulumi.aws.appsync.ResolverArgs;
import com.pulumi.aws.appsync.inputs.ResolverCachingConfigArgs;
import com.pulumi.aws.appsync.inputs.ResolverPipelineConfigArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 test = new GraphQLApi("test", GraphQLApiArgs.builder()
            .authenticationType("API_KEY")
            .name("tf-example")
            .schema("""
type Mutation {
\tputPost(id: ID!, title: String!): Post
}

type Post {
\tid: ID!
\ttitle: String!
}

type Query {
\tsinglePost(id: ID!): Post
}

schema {
\tquery: Query
\tmutation: Mutation
}
            """)
            .build());

        var testDataSource = new DataSource("testDataSource", DataSourceArgs.builder()
            .httpConfig(DataSourceHttpConfigArgs.builder()
                .endpoint("http://example.com")
                .build())
            .apiId(test.id())
            .name("my_example")
            .type("HTTP")
            .build());

        // UNIT type resolver (default)
        var testResolver = new Resolver("testResolver", ResolverArgs.builder()
            .cachingConfig(ResolverCachingConfigArgs.builder()
                .cachingKeys(
                    "$context.identity.sub",
                    "$context.arguments.id")
                .ttl(60)
                .build())
            .apiId(test.id())
            .field("singlePost")
            .type("Query")
            .dataSource(testDataSource.name())
            .requestTemplate("""
{
    \"version\": \"2018-05-29\",
    \"method\": \"GET\",
    \"resourcePath\": \"/\",
    \"params\":{
        \"headers\": $utils.http.copyheaders($ctx.request.headers)
    }
}
            """)
            .responseTemplate("""
#if($ctx.result.statusCode == 200)
    $ctx.result.body
#else
    $utils.appendError($ctx.result.body, $ctx.result.statusCode)
#end
            """)
            .build());

        // PIPELINE type resolver
        var mutationPipelineTest = new Resolver("mutationPipelineTest", ResolverArgs.builder()
            .pipelineConfig(ResolverPipelineConfigArgs.builder()
                .functions(
                    test1.functionId(),
                    test2.functionId(),
                    test3.functionId())
                .build())
            .type("Mutation")
            .apiId(test.id())
            .field("pipelineTest")
            .requestTemplate("{}")
            .responseTemplate("$util.toJson($ctx.result)")
            .kind("PIPELINE")
            .build());

    }
}
resources:
  test:
    type: aws:appsync:GraphQLApi
    properties:
      authenticationType: API_KEY
      name: tf-example
      schema: |
        type Mutation {
        \tputPost(id: ID!, title: String!): Post
        }

        type Post {
        \tid: ID!
        \ttitle: String!
        }

        type Query {
        \tsinglePost(id: ID!): Post
        }

        schema {
        \tquery: Query
        \tmutation: Mutation
        }
  testDataSource:
    type: aws:appsync:DataSource
    name: test
    properties:
      httpConfig:
        endpoint: http://example.com
      apiId: ${test.id}
      name: my_example
      type: HTTP
  # UNIT type resolver (default)
  testResolver:
    type: aws:appsync:Resolver
    name: test
    properties:
      cachingConfig:
        cachingKeys:
          - $context.identity.sub
          - $context.arguments.id
        ttl: 60
      apiId: ${test.id}
      field: singlePost
      type: Query
      dataSource: ${testDataSource.name}
      requestTemplate: |
        {
            \"version\": \"2018-05-29\",
            \"method\": \"GET\",
            \"resourcePath\": \"/\",
            \"params\":{
                \"headers\": $utils.http.copyheaders($ctx.request.headers)
            }
        }
      responseTemplate: |
        #if($ctx.result.statusCode == 200)
            $ctx.result.body
        #else
            $utils.appendError($ctx.result.body, $ctx.result.statusCode)
        #end
  # PIPELINE type resolver
  mutationPipelineTest:
    type: aws:appsync:Resolver
    name: Mutation_pipelineTest
    properties:
      pipelineConfig:
        functions:
          - ${test1.functionId}
          - ${test2.functionId}
          - ${test3.functionId}
      type: Mutation
      apiId: ${test.id}
      field: pipelineTest
      requestTemplate: '{}'
      responseTemplate: $util.toJson($ctx.result)
      kind: PIPELINE

Example Usage JS

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as std from "@pulumi/std";

const example = new aws.appsync.Resolver("example", {
    runtime: {
        name: "APPSYNC_JS",
        runtimeVersion: "1.0.0",
    },
    pipelineConfig: {
        functions: [test.functionId],
    },
    type: "Query",
    apiId: testAwsAppsyncGraphqlApi.id,
    field: "pipelineTest",
    kind: "PIPELINE",
    code: std.file({
        input: "some-code-dir",
    }).then(invoke => invoke.result),
});
import pulumi
import pulumi_aws as aws
import pulumi_std as std

example = aws.appsync.Resolver("example",
    runtime={
        "name": "APPSYNC_JS",
        "runtime_version": "1.0.0",
    },
    pipeline_config={
        "functions": [test["functionId"]],
    },
    type="Query",
    api_id=test_aws_appsync_graphql_api["id"],
    field="pipelineTest",
    kind="PIPELINE",
    code=std.file(input="some-code-dir").result)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
using Std = Pulumi.Std;

return await Deployment.RunAsync(() =>
{
    var example = new Aws.AppSync.Resolver("example", new()
    {
        Runtime = new Aws.AppSync.Inputs.ResolverRuntimeArgs
        {
            Name = "APPSYNC_JS",
            RuntimeVersion = "1.0.0",
        },
        PipelineConfig = new Aws.AppSync.Inputs.ResolverPipelineConfigArgs
        {
            Functions = new[]
            {
                test.FunctionId,
            },
        },
        Type = "Query",
        ApiId = testAwsAppsyncGraphqlApi.Id,
        Field = "pipelineTest",
        Kind = "PIPELINE",
        Code = Std.File.Invoke(new()
        {
            Input = "some-code-dir",
        }).Apply(invoke => invoke.Result),
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/appsync"
	"github.com/pulumi/pulumi-std/sdk/go/std"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		invokeFile, err := std.File(ctx, &std.FileArgs{
			Input: "some-code-dir",
		}, nil)
		if err != nil {
			return err
		}
		_, err = appsync.NewResolver(ctx, "example", &appsync.ResolverArgs{
			Runtime: &appsync.ResolverRuntimeArgs{
				Name:           pulumi.String("APPSYNC_JS"),
				RuntimeVersion: pulumi.String("1.0.0"),
			},
			PipelineConfig: &appsync.ResolverPipelineConfigArgs{
				Functions: pulumi.StringArray{
					test.FunctionId,
				},
			},
			Type:  pulumi.String("Query"),
			ApiId: pulumi.Any(testAwsAppsyncGraphqlApi.Id),
			Field: pulumi.String("pipelineTest"),
			Kind:  pulumi.String("PIPELINE"),
			Code:  pulumi.String(invokeFile.Result),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
    std = {
      source = "pulumi/std"
    }
  }
}

resource "aws_appsync_resolver" "example" {
  runtime = {
    name            = "APPSYNC_JS"
    runtime_version = "1.0.0"
  }
  pipeline_config = {
    functions = [test.functionId]
  }
  type   = "Query"
  api_id = testAwsAppsyncGraphqlApi.id
  field  = "pipelineTest"
  kind   = "PIPELINE"
  code   = file("some-code-dir")
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appsync.Resolver;
import com.pulumi.aws.appsync.ResolverArgs;
import com.pulumi.aws.appsync.inputs.ResolverRuntimeArgs;
import com.pulumi.aws.appsync.inputs.ResolverPipelineConfigArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.FileArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new Resolver("example", ResolverArgs.builder()
            .runtime(ResolverRuntimeArgs.builder()
                .name("APPSYNC_JS")
                .runtimeVersion("1.0.0")
                .build())
            .pipelineConfig(ResolverPipelineConfigArgs.builder()
                .functions(test.functionId())
                .build())
            .type("Query")
            .apiId(testAwsAppsyncGraphqlApi.id())
            .field("pipelineTest")
            .kind("PIPELINE")
            .code(StdFunctions.file(FileArgs.builder()
                .input("some-code-dir")
                .build()).result())
            .build());

    }
}
resources:
  example:
    type: aws:appsync:Resolver
    properties:
      runtime:
        name: APPSYNC_JS
        runtimeVersion: 1.0.0
      pipelineConfig:
        functions:
          - ${test.functionId}
      type: Query
      apiId: ${testAwsAppsyncGraphqlApi.id}
      field: pipelineTest
      kind: PIPELINE
      code:
        fn::invoke:
          function: std:file
          arguments:
            input: some-code-dir
          return: result

Import

Using pulumi import, import aws.appsync.Resolver using the apiId, a hyphen, type, a hypen and field. For example:

$ pulumi import aws:appsync/resolver:Resolver example abcdef123456-exampleType-exampleField

Constructors

Resolver(String name, {ResolverArgs? args, CustomResourceOptions? options})
Creates a new Resolver. name The Pulumi resource name. args Arguments used to configure this Resolver. The set of arguments for Resolver. options Resource options controlling this resource's behavior.
Resolver.reference(String urn)
Creates a typed reference to an existing Resolver resource.

Properties

apiId ↔ Output<String>
API ID for the GraphQL API.
latefinal
arn ↔ Output<String>
ARN
latefinal
cachingConfig ↔ Output<ResolverCachingConfig?>
Caching Config. See Caching Config.
latefinal
childResources → Set<Resource>
finalinherited
code ↔ Output<String?>
Function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
latefinal
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
dataSource ↔ Output<String?>
Data source name.
latefinal
field ↔ Output<String>
Field name from the schema defined in the GraphQL API.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
kind ↔ Output<String?>
Resolver type. Valid values are UNIT and PIPELINE.
latefinal
maxBatchSize ↔ Output<int?>
Maximum batching size for a resolver. Valid values are between 0 and 2000.
latefinal
pipelineConfig ↔ Output<ResolverPipelineConfig?>
Caching configuration for the resolver. See Pipeline Config.
latefinal
region ↔ Output<String>
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
requestTemplate ↔ Output<String?>
Request mapping template for UNIT resolver or 'before mapping template' for PIPELINE resolver. Required for non-Lambda resolvers.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
responseTemplate ↔ Output<String?>
Response mapping template for UNIT resolver or 'after mapping template' for PIPELINE resolver. Required for non-Lambda resolvers.
latefinal
runtime ↔ Output<ResolverRuntime?>
Runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. See Runtime.
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
syncConfig ↔ Output<ResolverSyncConfig?>
Sync configuration for a resolver. See Sync Config.
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
type ↔ Output<String>
Type name from the schema defined in the GraphQL API.
latefinal
urn ↔ Output<String>
latefinalinherited

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {ResolverState? state, CustomResourceOptions? options}) → Resolver
Gets an existing Resolver resource's state with the given name and id.