FunctionUrl constructor

FunctionUrl(
  1. String name, {
  2. FunctionUrlArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new FunctionUrl. name The Pulumi resource name. args Arguments used to configure this FunctionUrl. The set of arguments for FunctionUrl. options Resource options controlling this resource's behavior.

Implementation

FunctionUrl(
  String name, {
  FunctionUrlArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:lambda/functionUrl:FunctionUrl',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  authorizationType = registerOutput<String>('authorizationType');
  cors = registerOutput<FunctionUrlCors?>('cors', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return FunctionUrlCors.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  functionArn = registerOutput<String>('functionArn');
  functionName = registerOutput<String>('functionName');
  functionUrl = registerOutput<String>('functionUrl');
  invokeMode = registerOutput<String?>('invokeMode');
  qualifier = registerOutput<String?>('qualifier');
  region = registerOutput<String>('region');
  urlId = registerOutput<String>('urlId');
}