Method.reference constructor
Method.reference(
- String urn
Creates a typed reference to an existing Method resource.
Implementation
Method.reference(String urn)
: super(
'aws:apigateway/method:Method',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
isResourceReference: true,
) {
apiKeyRequired = registerOutput<bool?>('apiKeyRequired');
authorization = registerOutput<String>('authorization');
authorizationScopes = registerOutput<List<String>?>('authorizationScopes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
authorizerId = registerOutput<String?>('authorizerId');
httpMethod = registerOutput<String>('httpMethod');
operationName = registerOutput<String?>('operationName');
region = registerOutput<String>('region');
requestModels = registerOutput<Map<String, String>?>('requestModels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
requestParameters = registerOutput<Map<String, bool>?>('requestParameters', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, bool>(); });
requestValidatorId = registerOutput<String?>('requestValidatorId');
resourceId = registerOutput<String>('resourceId');
restApi = registerOutput<String>('restApi');
}