GoogleCloudfunctionsFunction constructor
GoogleCloudfunctionsFunction(
- String localName, {
- TfArg<
num> ? availableMemoryMb, - TfArg<
Map< ? buildEnvironmentVariables,String, String> > - TfArg<
String> ? buildServiceAccount, - TfArg<
String> ? buildWorkerPool, - TfArg<
String> ? deletionPolicy, - TfArg<
String> ? description, - CloudfunctionsFunctionDockerRegistry? dockerRegistry,
- TfArg<
String> ? dockerRepository, - TfArg<
String> ? entryPoint, - TfArg<
Map< ? environmentVariables,String, String> > - TfArg<
String> ? httpsTriggerSecurityLevel, - TfArg<
String> ? httpsTriggerUrl, - CloudfunctionsFunctionIngressSettings? ingressSettings,
- RefTo<
GoogleKmsCryptoKey> ? kmsKeyName, - TfArg<
Map< ? labels,String, String> > - TfArg<
num> ? maxInstances, - TfArg<
num> ? minInstances, - required TfArg<
String> name, - TfArg<
String> ? project, - TfArg<
String> ? region, - required TfArg<
String> runtime, - RefTo<
GoogleServiceAccount> ? serviceAccountEmail, - TfArg<
String> ? sourceArchiveBucket, - TfArg<
String> ? sourceArchiveObject, - TfArg<
num> ? timeout, - TfArg<
bool> ? triggerHttp, - TfArg<
String> ? vpcConnector, - CloudfunctionsFunctionVpcConnectorEgressSettings? vpcConnectorEgressSettings,
- CloudfunctionsFunctionAutomaticUpdatePolicy? automaticUpdatePolicy,
- CloudfunctionsFunctionEventTrigger? eventTrigger,
- CloudfunctionsFunctionOnDeployUpdatePolicy? onDeployUpdatePolicy,
- List<
CloudfunctionsFunctionSecretEnvironmentVariables> ? secretEnvironmentVariables, - List<
CloudfunctionsFunctionSecretVolumes> ? secretVolumes, - CloudfunctionsFunctionSourceRepository? sourceRepository,
- LifecycleOptions? lifecycle,
- List<
TfAddressed> ? dependsOn, - StackProvider? provider,
- TfTimeouts? timeouts,
Implementation
GoogleCloudfunctionsFunction(
super.localName, {
TfArg<num>? availableMemoryMb,
TfArg<Map<String, String>>? buildEnvironmentVariables,
TfArg<String>? buildServiceAccount,
TfArg<String>? buildWorkerPool,
TfArg<String>? deletionPolicy,
TfArg<String>? description,
CloudfunctionsFunctionDockerRegistry? dockerRegistry,
TfArg<String>? dockerRepository,
TfArg<String>? entryPoint,
TfArg<Map<String, String>>? environmentVariables,
TfArg<String>? httpsTriggerSecurityLevel,
TfArg<String>? httpsTriggerUrl,
CloudfunctionsFunctionIngressSettings? ingressSettings,
RefTo<GoogleKmsCryptoKey>? kmsKeyName,
TfArg<Map<String, String>>? labels,
TfArg<num>? maxInstances,
TfArg<num>? minInstances,
required TfArg<String> name,
TfArg<String>? project,
TfArg<String>? region,
required TfArg<String> runtime,
RefTo<GoogleServiceAccount>? serviceAccountEmail,
TfArg<String>? sourceArchiveBucket,
TfArg<String>? sourceArchiveObject,
TfArg<num>? timeout,
TfArg<bool>? triggerHttp,
TfArg<String>? vpcConnector,
CloudfunctionsFunctionVpcConnectorEgressSettings?
vpcConnectorEgressSettings,
CloudfunctionsFunctionAutomaticUpdatePolicy? automaticUpdatePolicy,
CloudfunctionsFunctionEventTrigger? eventTrigger,
CloudfunctionsFunctionOnDeployUpdatePolicy? onDeployUpdatePolicy,
List<CloudfunctionsFunctionSecretEnvironmentVariables>?
secretEnvironmentVariables,
List<CloudfunctionsFunctionSecretVolumes>? secretVolumes,
CloudfunctionsFunctionSourceRepository? sourceRepository,
super.lifecycle,
super.dependsOn,
super.provider,
super.timeouts,
}) : super(
terraformType: tfType,
argMap: {
'available_memory_mb': ?availableMemoryMb,
'build_environment_variables': ?buildEnvironmentVariables,
'build_service_account': ?buildServiceAccount,
'build_worker_pool': ?buildWorkerPool,
'deletion_policy': ?deletionPolicy,
'description': ?description,
'docker_registry': ?dockerRegistry,
'docker_repository': ?dockerRepository,
'entry_point': ?entryPoint,
'environment_variables': ?environmentVariables,
'https_trigger_security_level': ?httpsTriggerSecurityLevel,
'https_trigger_url': ?httpsTriggerUrl,
'ingress_settings': ?ingressSettings,
'kms_key_name': ?kmsKeyName?.encodeAs('id'),
'labels': ?labels,
'max_instances': ?maxInstances,
'min_instances': ?minInstances,
'name': name,
'project': ?project,
'region': ?region,
'runtime': runtime,
'service_account_email': ?serviceAccountEmail?.encodeAs('email'),
'source_archive_bucket': ?sourceArchiveBucket,
'source_archive_object': ?sourceArchiveObject,
'timeout': ?timeout,
'trigger_http': ?triggerHttp,
'vpc_connector': ?vpcConnector,
'vpc_connector_egress_settings': ?vpcConnectorEgressSettings,
if (automaticUpdatePolicy != null)
'automatic_update_policy': TfArg.literal(
automaticUpdatePolicy.encode(),
),
if (eventTrigger != null)
'event_trigger': TfArg.literal(eventTrigger.encode()),
if (onDeployUpdatePolicy != null)
'on_deploy_update_policy': TfArg.literal(
onDeployUpdatePolicy.encode(),
),
if (secretEnvironmentVariables != null)
'secret_environment_variables': TfArg.literal([
for (final e in secretEnvironmentVariables) e.encode(),
]),
if (secretVolumes != null)
'secret_volumes': TfArg.literal([
for (final e in secretVolumes) e.encode(),
]),
if (sourceRepository != null)
'source_repository': TfArg.literal(sourceRepository.encode()),
},
);