VpcOrigin constructor

VpcOrigin(
  1. String name, {
  2. VpcOriginArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

VpcOrigin(
  String name, {
  VpcOriginArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:cloudfront/vpcOrigin:VpcOrigin',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  etag = registerOutput<String>('etag');
  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>(); });
  timeouts = registerOutput<VpcOriginTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return VpcOriginTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  vpcOriginEndpointConfig = registerOutput<VpcOriginVpcOriginEndpointConfig>('vpcOriginEndpointConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return VpcOriginVpcOriginEndpointConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}