aws.appsync.ChannelNamespace
Explore with Pulumi AI
Manages an AWS AppSync Channel Namespace.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.appsync.ChannelNamespace("example", {
name: "example-channel-namespace",
apiId: exampleAwsAppsyncApi.apiId,
});
import pulumi
import pulumi_aws as aws
example = aws.appsync.ChannelNamespace("example",
name="example-channel-namespace",
api_id=example_aws_appsync_api["apiId"])
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 {
_, err := appsync.NewChannelNamespace(ctx, "example", &appsync.ChannelNamespaceArgs{
Name: pulumi.String("example-channel-namespace"),
ApiId: pulumi.Any(exampleAwsAppsyncApi.ApiId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AppSync.ChannelNamespace("example", new()
{
Name = "example-channel-namespace",
ApiId = exampleAwsAppsyncApi.ApiId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appsync.ChannelNamespace;
import com.pulumi.aws.appsync.ChannelNamespaceArgs;
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 example = new ChannelNamespace("example", ChannelNamespaceArgs.builder()
.name("example-channel-namespace")
.apiId(exampleAwsAppsyncApi.apiId())
.build());
}
}
resources:
example:
type: aws:appsync:ChannelNamespace
properties:
name: example-channel-namespace
apiId: ${exampleAwsAppsyncApi.apiId}
Create ChannelNamespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ChannelNamespace(name: string, args: ChannelNamespaceArgs, opts?: CustomResourceOptions);
@overload
def ChannelNamespace(resource_name: str,
args: ChannelNamespaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ChannelNamespace(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
code_handlers: Optional[str] = None,
handler_configs: Optional[ChannelNamespaceHandlerConfigsArgs] = None,
name: Optional[str] = None,
publish_auth_modes: Optional[Sequence[ChannelNamespacePublishAuthModeArgs]] = None,
region: Optional[str] = None,
subscribe_auth_modes: Optional[Sequence[ChannelNamespaceSubscribeAuthModeArgs]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewChannelNamespace(ctx *Context, name string, args ChannelNamespaceArgs, opts ...ResourceOption) (*ChannelNamespace, error)
public ChannelNamespace(string name, ChannelNamespaceArgs args, CustomResourceOptions? opts = null)
public ChannelNamespace(String name, ChannelNamespaceArgs args)
public ChannelNamespace(String name, ChannelNamespaceArgs args, CustomResourceOptions options)
type: aws:appsync:ChannelNamespace
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 ChannelNamespaceArgs
- 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 ChannelNamespaceArgs
- 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 ChannelNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ChannelNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ChannelNamespaceArgs
- 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 channelNamespaceResource = new Aws.AppSync.ChannelNamespace("channelNamespaceResource", new()
{
ApiId = "string",
CodeHandlers = "string",
HandlerConfigs = new Aws.AppSync.Inputs.ChannelNamespaceHandlerConfigsArgs
{
OnPublish = new Aws.AppSync.Inputs.ChannelNamespaceHandlerConfigsOnPublishArgs
{
Behavior = "string",
Integration = new Aws.AppSync.Inputs.ChannelNamespaceHandlerConfigsOnPublishIntegrationArgs
{
DataSourceName = "string",
LambdaConfig = new Aws.AppSync.Inputs.ChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigArgs
{
InvokeType = "string",
},
},
},
OnSubscribe = new Aws.AppSync.Inputs.ChannelNamespaceHandlerConfigsOnSubscribeArgs
{
Behavior = "string",
Integration = new Aws.AppSync.Inputs.ChannelNamespaceHandlerConfigsOnSubscribeIntegrationArgs
{
DataSourceName = "string",
LambdaConfig = new Aws.AppSync.Inputs.ChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigArgs
{
InvokeType = "string",
},
},
},
},
Name = "string",
PublishAuthModes = new[]
{
new Aws.AppSync.Inputs.ChannelNamespacePublishAuthModeArgs
{
AuthType = "string",
},
},
Region = "string",
SubscribeAuthModes = new[]
{
new Aws.AppSync.Inputs.ChannelNamespaceSubscribeAuthModeArgs
{
AuthType = "string",
},
},
Tags =
{
{ "string", "string" },
},
});
example, err := appsync.NewChannelNamespace(ctx, "channelNamespaceResource", &appsync.ChannelNamespaceArgs{
ApiId: pulumi.String("string"),
CodeHandlers: pulumi.String("string"),
HandlerConfigs: &appsync.ChannelNamespaceHandlerConfigsArgs{
OnPublish: &appsync.ChannelNamespaceHandlerConfigsOnPublishArgs{
Behavior: pulumi.String("string"),
Integration: &appsync.ChannelNamespaceHandlerConfigsOnPublishIntegrationArgs{
DataSourceName: pulumi.String("string"),
LambdaConfig: &appsync.ChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigArgs{
InvokeType: pulumi.String("string"),
},
},
},
OnSubscribe: &appsync.ChannelNamespaceHandlerConfigsOnSubscribeArgs{
Behavior: pulumi.String("string"),
Integration: &appsync.ChannelNamespaceHandlerConfigsOnSubscribeIntegrationArgs{
DataSourceName: pulumi.String("string"),
LambdaConfig: &appsync.ChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigArgs{
InvokeType: pulumi.String("string"),
},
},
},
},
Name: pulumi.String("string"),
PublishAuthModes: appsync.ChannelNamespacePublishAuthModeArray{
&appsync.ChannelNamespacePublishAuthModeArgs{
AuthType: pulumi.String("string"),
},
},
Region: pulumi.String("string"),
SubscribeAuthModes: appsync.ChannelNamespaceSubscribeAuthModeArray{
&appsync.ChannelNamespaceSubscribeAuthModeArgs{
AuthType: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var channelNamespaceResource = new ChannelNamespace("channelNamespaceResource", ChannelNamespaceArgs.builder()
.apiId("string")
.codeHandlers("string")
.handlerConfigs(ChannelNamespaceHandlerConfigsArgs.builder()
.onPublish(ChannelNamespaceHandlerConfigsOnPublishArgs.builder()
.behavior("string")
.integration(ChannelNamespaceHandlerConfigsOnPublishIntegrationArgs.builder()
.dataSourceName("string")
.lambdaConfig(ChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigArgs.builder()
.invokeType("string")
.build())
.build())
.build())
.onSubscribe(ChannelNamespaceHandlerConfigsOnSubscribeArgs.builder()
.behavior("string")
.integration(ChannelNamespaceHandlerConfigsOnSubscribeIntegrationArgs.builder()
.dataSourceName("string")
.lambdaConfig(ChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigArgs.builder()
.invokeType("string")
.build())
.build())
.build())
.build())
.name("string")
.publishAuthModes(ChannelNamespacePublishAuthModeArgs.builder()
.authType("string")
.build())
.region("string")
.subscribeAuthModes(ChannelNamespaceSubscribeAuthModeArgs.builder()
.authType("string")
.build())
.tags(Map.of("string", "string"))
.build());
channel_namespace_resource = aws.appsync.ChannelNamespace("channelNamespaceResource",
api_id="string",
code_handlers="string",
handler_configs={
"on_publish": {
"behavior": "string",
"integration": {
"data_source_name": "string",
"lambda_config": {
"invoke_type": "string",
},
},
},
"on_subscribe": {
"behavior": "string",
"integration": {
"data_source_name": "string",
"lambda_config": {
"invoke_type": "string",
},
},
},
},
name="string",
publish_auth_modes=[{
"auth_type": "string",
}],
region="string",
subscribe_auth_modes=[{
"auth_type": "string",
}],
tags={
"string": "string",
})
const channelNamespaceResource = new aws.appsync.ChannelNamespace("channelNamespaceResource", {
apiId: "string",
codeHandlers: "string",
handlerConfigs: {
onPublish: {
behavior: "string",
integration: {
dataSourceName: "string",
lambdaConfig: {
invokeType: "string",
},
},
},
onSubscribe: {
behavior: "string",
integration: {
dataSourceName: "string",
lambdaConfig: {
invokeType: "string",
},
},
},
},
name: "string",
publishAuthModes: [{
authType: "string",
}],
region: "string",
subscribeAuthModes: [{
authType: "string",
}],
tags: {
string: "string",
},
});
type: aws:appsync:ChannelNamespace
properties:
apiId: string
codeHandlers: string
handlerConfigs:
onPublish:
behavior: string
integration:
dataSourceName: string
lambdaConfig:
invokeType: string
onSubscribe:
behavior: string
integration:
dataSourceName: string
lambdaConfig:
invokeType: string
name: string
publishAuthModes:
- authType: string
region: string
subscribeAuthModes:
- authType: string
tags:
string: string
ChannelNamespace 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 ChannelNamespace resource accepts the following input properties:
- Api
Id string - Event API ID.
- Code
Handlers string - Event handler functions that run custom business logic to process published events and subscribe requests.
- Handler
Configs ChannelNamespace Handler Configs - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - Name string
Name of the channel namespace.
The following arguments are optional:
- Publish
Auth List<ChannelModes Namespace Publish Auth Mode> - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Subscribe
Auth List<ChannelModes Namespace Subscribe Auth Mode> - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Api
Id string - Event API ID.
- Code
Handlers string - Event handler functions that run custom business logic to process published events and subscribe requests.
- Handler
Configs ChannelNamespace Handler Configs Args - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - Name string
Name of the channel namespace.
The following arguments are optional:
- Publish
Auth []ChannelModes Namespace Publish Auth Mode Args - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Subscribe
Auth []ChannelModes Namespace Subscribe Auth Mode Args - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- api
Id String - Event API ID.
- code
Handlers String - Event handler functions that run custom business logic to process published events and subscribe requests.
- handler
Configs ChannelNamespace Handler Configs - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - name String
Name of the channel namespace.
The following arguments are optional:
- publish
Auth List<ChannelModes Namespace Publish Auth Mode> - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- subscribe
Auth List<ChannelModes Namespace Subscribe Auth Mode> - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- api
Id string - Event API ID.
- code
Handlers string - Event handler functions that run custom business logic to process published events and subscribe requests.
- handler
Configs ChannelNamespace Handler Configs - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - name string
Name of the channel namespace.
The following arguments are optional:
- publish
Auth ChannelModes Namespace Publish Auth Mode[] - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- subscribe
Auth ChannelModes Namespace Subscribe Auth Mode[] - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- api_
id str - Event API ID.
- code_
handlers str - Event handler functions that run custom business logic to process published events and subscribe requests.
- handler_
configs ChannelNamespace Handler Configs Args - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - name str
Name of the channel namespace.
The following arguments are optional:
- publish_
auth_ Sequence[Channelmodes Namespace Publish Auth Mode Args] - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- subscribe_
auth_ Sequence[Channelmodes Namespace Subscribe Auth Mode Args] - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- api
Id String - Event API ID.
- code
Handlers String - Event handler functions that run custom business logic to process published events and subscribe requests.
- handler
Configs Property Map - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - name String
Name of the channel namespace.
The following arguments are optional:
- publish
Auth List<Property Map>Modes - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- subscribe
Auth List<Property Map>Modes - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the ChannelNamespace resource produces the following output properties:
- Channel
Namespace stringArn - ARN of the channel namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Channel
Namespace stringArn - ARN of the channel namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- channel
Namespace StringArn - ARN of the channel namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- channel
Namespace stringArn - ARN of the channel namespace.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- channel_
namespace_ strarn - ARN of the channel namespace.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- channel
Namespace StringArn - ARN of the channel namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing ChannelNamespace Resource
Get an existing ChannelNamespace 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?: ChannelNamespaceState, opts?: CustomResourceOptions): ChannelNamespace
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
channel_namespace_arn: Optional[str] = None,
code_handlers: Optional[str] = None,
handler_configs: Optional[ChannelNamespaceHandlerConfigsArgs] = None,
name: Optional[str] = None,
publish_auth_modes: Optional[Sequence[ChannelNamespacePublishAuthModeArgs]] = None,
region: Optional[str] = None,
subscribe_auth_modes: Optional[Sequence[ChannelNamespaceSubscribeAuthModeArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> ChannelNamespace
func GetChannelNamespace(ctx *Context, name string, id IDInput, state *ChannelNamespaceState, opts ...ResourceOption) (*ChannelNamespace, error)
public static ChannelNamespace Get(string name, Input<string> id, ChannelNamespaceState? state, CustomResourceOptions? opts = null)
public static ChannelNamespace get(String name, Output<String> id, ChannelNamespaceState state, CustomResourceOptions options)
resources: _: type: aws:appsync:ChannelNamespace 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.
- Api
Id string - Event API ID.
- Channel
Namespace stringArn - ARN of the channel namespace.
- Code
Handlers string - Event handler functions that run custom business logic to process published events and subscribe requests.
- Handler
Configs ChannelNamespace Handler Configs - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - Name string
Name of the channel namespace.
The following arguments are optional:
- Publish
Auth List<ChannelModes Namespace Publish Auth Mode> - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Subscribe
Auth List<ChannelModes Namespace Subscribe Auth Mode> - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Api
Id string - Event API ID.
- Channel
Namespace stringArn - ARN of the channel namespace.
- Code
Handlers string - Event handler functions that run custom business logic to process published events and subscribe requests.
- Handler
Configs ChannelNamespace Handler Configs Args - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - Name string
Name of the channel namespace.
The following arguments are optional:
- Publish
Auth []ChannelModes Namespace Publish Auth Mode Args - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Subscribe
Auth []ChannelModes Namespace Subscribe Auth Mode Args - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api
Id String - Event API ID.
- channel
Namespace StringArn - ARN of the channel namespace.
- code
Handlers String - Event handler functions that run custom business logic to process published events and subscribe requests.
- handler
Configs ChannelNamespace Handler Configs - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - name String
Name of the channel namespace.
The following arguments are optional:
- publish
Auth List<ChannelModes Namespace Publish Auth Mode> - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- subscribe
Auth List<ChannelModes Namespace Subscribe Auth Mode> - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api
Id string - Event API ID.
- channel
Namespace stringArn - ARN of the channel namespace.
- code
Handlers string - Event handler functions that run custom business logic to process published events and subscribe requests.
- handler
Configs ChannelNamespace Handler Configs - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - name string
Name of the channel namespace.
The following arguments are optional:
- publish
Auth ChannelModes Namespace Publish Auth Mode[] - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- subscribe
Auth ChannelModes Namespace Subscribe Auth Mode[] - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api_
id str - Event API ID.
- channel_
namespace_ strarn - ARN of the channel namespace.
- code_
handlers str - Event handler functions that run custom business logic to process published events and subscribe requests.
- handler_
configs ChannelNamespace Handler Configs Args - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - name str
Name of the channel namespace.
The following arguments are optional:
- publish_
auth_ Sequence[Channelmodes Namespace Publish Auth Mode Args] - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- subscribe_
auth_ Sequence[Channelmodes Namespace Subscribe Auth Mode Args] - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api
Id String - Event API ID.
- channel
Namespace StringArn - ARN of the channel namespace.
- code
Handlers String - Event handler functions that run custom business logic to process published events and subscribe requests.
- handler
Configs Property Map - Configuration for the
on_publish
andon_subscribe
handlers. See Handler Configs below. - name String
Name of the channel namespace.
The following arguments are optional:
- publish
Auth List<Property Map>Modes - Authorization modes to use for publishing messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- subscribe
Auth List<Property Map>Modes - Authorization modes to use for subscribing to messages on the channel namespace. This configuration overrides the default API authorization configuration. See Auth Modes below.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
ChannelNamespaceHandlerConfigs, ChannelNamespaceHandlerConfigsArgs
- On
Publish ChannelNamespace Handler Configs On Publish - Handler configuration. See Handler Config below.
- On
Subscribe ChannelNamespace Handler Configs On Subscribe - Handler configuration. See Handler Config below.
- On
Publish ChannelNamespace Handler Configs On Publish - Handler configuration. See Handler Config below.
- On
Subscribe ChannelNamespace Handler Configs On Subscribe - Handler configuration. See Handler Config below.
- on
Publish ChannelNamespace Handler Configs On Publish - Handler configuration. See Handler Config below.
- on
Subscribe ChannelNamespace Handler Configs On Subscribe - Handler configuration. See Handler Config below.
- on
Publish ChannelNamespace Handler Configs On Publish - Handler configuration. See Handler Config below.
- on
Subscribe ChannelNamespace Handler Configs On Subscribe - Handler configuration. See Handler Config below.
- on_
publish ChannelNamespace Handler Configs On Publish - Handler configuration. See Handler Config below.
- on_
subscribe ChannelNamespace Handler Configs On Subscribe - Handler configuration. See Handler Config below.
- on
Publish Property Map - Handler configuration. See Handler Config below.
- on
Subscribe Property Map - Handler configuration. See Handler Config below.
ChannelNamespaceHandlerConfigsOnPublish, ChannelNamespaceHandlerConfigsOnPublishArgs
- Behavior string
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - Integration
Channel
Namespace Handler Configs On Publish Integration - Integration data source configuration for the handler. See Integration below.
- Behavior string
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - Integration
Channel
Namespace Handler Configs On Publish Integration - Integration data source configuration for the handler. See Integration below.
- behavior String
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - integration
Channel
Namespace Handler Configs On Publish Integration - Integration data source configuration for the handler. See Integration below.
- behavior string
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - integration
Channel
Namespace Handler Configs On Publish Integration - Integration data source configuration for the handler. See Integration below.
- behavior str
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - integration
Channel
Namespace Handler Configs On Publish Integration - Integration data source configuration for the handler. See Integration below.
- behavior String
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - integration Property Map
- Integration data source configuration for the handler. See Integration below.
ChannelNamespaceHandlerConfigsOnPublishIntegration, ChannelNamespaceHandlerConfigsOnPublishIntegrationArgs
- Data
Source stringName - Unique name of the data source that has been configured on the API.
- Lambda
Config ChannelNamespace Handler Configs On Publish Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- Data
Source stringName - Unique name of the data source that has been configured on the API.
- Lambda
Config ChannelNamespace Handler Configs On Publish Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- data
Source StringName - Unique name of the data source that has been configured on the API.
- lambda
Config ChannelNamespace Handler Configs On Publish Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- data
Source stringName - Unique name of the data source that has been configured on the API.
- lambda
Config ChannelNamespace Handler Configs On Publish Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- data_
source_ strname - Unique name of the data source that has been configured on the API.
- lambda_
config ChannelNamespace Handler Configs On Publish Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- data
Source StringName - Unique name of the data source that has been configured on the API.
- lambda
Config Property Map - Configuration for a Lambda data source. See Lambda Config below.
ChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfig, ChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigArgs
- Invoke
Type string - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- Invoke
Type string - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- invoke
Type String - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- invoke
Type string - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- invoke_
type str - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- invoke
Type String - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
ChannelNamespaceHandlerConfigsOnSubscribe, ChannelNamespaceHandlerConfigsOnSubscribeArgs
- Behavior string
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - Integration
Channel
Namespace Handler Configs On Subscribe Integration - Integration data source configuration for the handler. See Integration below.
- Behavior string
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - Integration
Channel
Namespace Handler Configs On Subscribe Integration - Integration data source configuration for the handler. See Integration below.
- behavior String
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - integration
Channel
Namespace Handler Configs On Subscribe Integration - Integration data source configuration for the handler. See Integration below.
- behavior string
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - integration
Channel
Namespace Handler Configs On Subscribe Integration - Integration data source configuration for the handler. See Integration below.
- behavior str
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - integration
Channel
Namespace Handler Configs On Subscribe Integration - Integration data source configuration for the handler. See Integration below.
- behavior String
- Behavior for the handler. Valid values:
CODE
,DIRECT
. - integration Property Map
- Integration data source configuration for the handler. See Integration below.
ChannelNamespaceHandlerConfigsOnSubscribeIntegration, ChannelNamespaceHandlerConfigsOnSubscribeIntegrationArgs
- Data
Source stringName - Unique name of the data source that has been configured on the API.
- Lambda
Config ChannelNamespace Handler Configs On Subscribe Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- Data
Source stringName - Unique name of the data source that has been configured on the API.
- Lambda
Config ChannelNamespace Handler Configs On Subscribe Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- data
Source StringName - Unique name of the data source that has been configured on the API.
- lambda
Config ChannelNamespace Handler Configs On Subscribe Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- data
Source stringName - Unique name of the data source that has been configured on the API.
- lambda
Config ChannelNamespace Handler Configs On Subscribe Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- data_
source_ strname - Unique name of the data source that has been configured on the API.
- lambda_
config ChannelNamespace Handler Configs On Subscribe Integration Lambda Config - Configuration for a Lambda data source. See Lambda Config below.
- data
Source StringName - Unique name of the data source that has been configured on the API.
- lambda
Config Property Map - Configuration for a Lambda data source. See Lambda Config below.
ChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfig, ChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigArgs
- Invoke
Type string - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- Invoke
Type string - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- invoke
Type String - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- invoke
Type string - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- invoke_
type str - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
- invoke
Type String - Invocation type for a Lambda data source. Valid values:
REQUEST_RESPONSE
,EVENT
.
ChannelNamespacePublishAuthMode, ChannelNamespacePublishAuthModeArgs
- Auth
Type string - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- Auth
Type string - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- auth
Type String - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- auth
Type string - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- auth_
type str - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- auth
Type String - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
ChannelNamespaceSubscribeAuthMode, ChannelNamespaceSubscribeAuthModeArgs
- Auth
Type string - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- Auth
Type string - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- auth
Type String - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- auth
Type string - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- auth_
type str - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
- auth
Type String - Type of authentication. Valid values:
API_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
,AWS_LAMBDA
.
Import
Using pulumi import
, import AppSync Channel Namespace using the api_id
and name
separated by a comma (,
). For example:
$ pulumi import aws:appsync/channelNamespace:ChannelNamespace example example-api-id,example-channel-namespace
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.