code: def _set_endpoint_configuration(self, rest_api, value):
          
  
          rest_api.EndpointConfiguration = {"Types": [value]}
          rest_api.Parameters = {"endpointConfigurationTypes": value}
docs: Sets endpoint configuration property of AWS::ApiGateway::RestApi resource
          :param rest_api: RestApi resource
          :param string/dict value: Value to be set