RestApiPut.reference constructor

RestApiPut.reference(
  1. String urn
)

Creates a typed reference to an existing RestApiPut resource.

Implementation

RestApiPut.reference(String urn)
  : super(
      'aws:apigateway/restApiPut:RestApiPut',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  body = registerOutput<String>('body');
  failOnWarnings = registerOutput<bool>('failOnWarnings');
  parameters = registerOutput<Map<String, String>?>('parameters', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  region = registerOutput<String>('region');
  restApiId = registerOutput<String>('restApiId');
  timeouts = registerOutput<RestApiPutTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return RestApiPutTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  triggers = registerOutput<Map<String, String>?>('triggers', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}