ConnectionFunction constructor

ConnectionFunction(
  1. String name, {
  2. ConnectionFunctionArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

ConnectionFunction(
  String name, {
  ConnectionFunctionArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:cloudfront/connectionFunction:ConnectionFunction',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  connectionFunctionArn = registerOutput<String>('connectionFunctionArn');
  connectionFunctionCode = registerOutput<String>('connectionFunctionCode');
  connectionFunctionConfig = registerOutput<ConnectionFunctionConnectionFunctionConfig>('connectionFunctionConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionFunctionConnectionFunctionConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  etag = registerOutput<String>('etag');
  liveStageEtag = registerOutput<String>('liveStageEtag');
  this.name = registerOutput<String>('name');
  publish = registerOutput<bool>('publish');
  status = registerOutput<String>('status');
  tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}