MethodResponse constructor
MethodResponse(
- String name, {
- MethodResponseArgs? args,
- CustomResourceOptions? options,
Creates a new MethodResponse.
name The Pulumi resource name.
args Arguments used to configure this MethodResponse. The set of arguments for MethodResponse.
options Resource options controlling this resource's behavior.
Implementation
MethodResponse(
String name, {
MethodResponseArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:apigateway/methodResponse:MethodResponse',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
httpMethod = registerOutput<String>('httpMethod');
region = registerOutput<String>('region');
resourceId = registerOutput<String>('resourceId');
responseModels = registerOutput<Map<String, String>?>('responseModels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
responseParameters = registerOutput<Map<String, bool>?>('responseParameters', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, bool>(); });
restApi = registerOutput<String>('restApi');
statusCode = registerOutput<String>('statusCode');
}