Method constructor

Method(
  1. String name, {
  2. MethodArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

Method(
  String name, {
  MethodArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:apigateway/method:Method',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  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');
}