AwsAppsyncChannelNamespace constructor

AwsAppsyncChannelNamespace(
  1. String localName, {
  2. required TfArg<String> apiId,
  3. TfArg<String>? codeHandlers,
  4. required TfArg<String> name,
  5. TfArg<String>? region,
  6. TfArg<Map<String, String>>? tags,
  7. List<AppsyncChannelNamespaceHandlerConfigs>? handlerConfigs,
  8. List<AppsyncChannelNamespacePublishAuthMode>? publishAuthMode,
  9. List<AppsyncChannelNamespaceSubscribeAuthMode>? subscribeAuthMode,
  10. LifecycleOptions? lifecycle,
  11. List<TfAddressed>? dependsOn,
  12. StackProvider? provider,
  13. 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(),
           ]),
       },
     );