AwsAppsyncChannelNamespace constructor
AwsAppsyncChannelNamespace(
- String localName, {
- required TfArg<
String> apiId, - TfArg<
String> ? codeHandlers, - required TfArg<
String> name, - TfArg<
String> ? region, - TfArg<
Map< ? tags,String, String> > - List<
AppsyncChannelNamespaceHandlerConfigs> ? handlerConfigs, - List<
AppsyncChannelNamespacePublishAuthMode> ? publishAuthMode, - List<
AppsyncChannelNamespaceSubscribeAuthMode> ? subscribeAuthMode, - LifecycleOptions? lifecycle,
- List<
TfAddressed> ? dependsOn, - StackProvider? provider,
- TfTimeouts? timeouts,
Implementation
AwsAppsyncChannelNamespace(
super.localName, {
required TfArg<String> apiId,
TfArg<String>? codeHandlers,
required TfArg<String> name,
TfArg<String>? region,
TfArg<Map<String, String>>? tags,
List<AppsyncChannelNamespaceHandlerConfigs>? handlerConfigs,
List<AppsyncChannelNamespacePublishAuthMode>? publishAuthMode,
List<AppsyncChannelNamespaceSubscribeAuthMode>? subscribeAuthMode,
super.lifecycle,
super.dependsOn,
super.provider,
super.timeouts,
}) : super(
terraformType: tfType,
argMap: {
'api_id': apiId,
'code_handlers': ?codeHandlers,
'name': name,
'region': ?region,
'tags': ?tags,
if (handlerConfigs != null)
'handler_configs': TfArg.literal([
for (final e in handlerConfigs) e.encode(),
]),
if (publishAuthMode != null)
'publish_auth_mode': TfArg.literal([
for (final e in publishAuthMode) e.encode(),
]),
if (subscribeAuthMode != null)
'subscribe_auth_mode': TfArg.literal([
for (final e in subscribeAuthMode) e.encode(),
]),
},
);